public class ibifFactory
extends java.lang.Object
Constructor | Description |
---|---|
ibifFactory() |
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
bifConverter(BNGraph g) |
Converts a graph into a .bif string
|
static java.util.ArrayList<java.lang.String[]> |
createKBfromStr(java.lang.String content) |
Create a knowledgebase of implications from a string.
|
static java.lang.String |
fileReader(java.lang.String path) |
reads a string from a file
|
static void |
fileWriter(java.lang.String content,
java.lang.String path) |
writes a string to a file
|
static java.lang.String |
getBIFfromIBIF(java.lang.String content) |
Get the .bif section of an ibif file
|
static java.lang.String |
getKBfromIBIF(java.lang.String content) |
Get a the knowledge base section of an .ibif
|
static java.lang.String |
ibifConverter(BNGraph g) |
Converts a graph with a KB into an .ibif string
|
static java.lang.String |
kbToIBIF(java.util.ArrayList<Implication> knowledgeBase) |
creates the KB section for a .ibif file
|
static java.util.ArrayList<java.lang.String[]> |
load(java.lang.String path) |
load an IBN from the file path
|
static void |
save(BNGraph g,
java.lang.String path) |
Save a BNGraph to the output file
|
public static java.lang.String bifConverter(BNGraph g)
g
- public static java.lang.String kbToIBIF(java.util.ArrayList<Implication> knowledgeBase)
public static java.lang.String ibifConverter(BNGraph g)
g
- public static void save(BNGraph g, java.lang.String path)
g
- path
- public static void fileWriter(java.lang.String content, java.lang.String path)
content
- path
- public static java.lang.String fileReader(java.lang.String path)
path
- public static java.lang.String getBIFfromIBIF(java.lang.String content)
content
- public static java.lang.String getKBfromIBIF(java.lang.String content)
content
- public static java.util.ArrayList<java.lang.String[]> createKBfromStr(java.lang.String content)
content
- public static java.util.ArrayList<java.lang.String[]> load(java.lang.String path)
path
-