|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.put.semintec.utils.IOUtils
public class IOUtils
Provides methods that perform I/O operations.
Constructor Summary | |
---|---|
IOUtils()
|
Method Summary | |
---|---|
java.util.ArrayList |
readPatternList(java.lang.String fileName,
org.semanticweb.kaon2.api.logic.Variable keyVar)
Reads a list of patterns (conjunctive queries) from file |
java.util.HashMap |
readXMLSetupFile(java.lang.String fileName)
Reads input arguments for the mining application, stored in XML file |
void |
savePatterns(java.util.HashMap params,
Trie trie,
java.lang.String fileName)
Saves patterns, discovered during data mining execution, into specified file |
void |
saveRules(java.util.HashMap params,
java.util.ArrayList rules,
java.lang.String fileName)
Saves rules, generated from discovered patterns, into specified file |
void |
saveStatistics(java.util.HashMap params,
Statistics statistics,
java.lang.String fileName)
Saves statistics about data mining execution into specified file |
void |
saveToGraphML(jdsl.core.api.Tree taxonomy,
java.lang.String fileName,
java.lang.String[] params)
Writes a given taxonomy of predicates or nodes to specified file in GraphML format. |
void |
saveToGraphML(Trie trie,
java.lang.String fileName,
java.lang.String[] params)
Writes a given trie data structure to specified file in GraphML format. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IOUtils()
Method Detail |
---|
public void saveStatistics(java.util.HashMap params, Statistics statistics, java.lang.String fileName)
params
- Parameters of data mining executionstatistics
- Collected statisticsfileName
- Name of the file to write statistics (with path)public void savePatterns(java.util.HashMap params, Trie trie, java.lang.String fileName)
params
- Parameters of data mining executiontrie
- Trie structure that stores frequent patternsfileName
- Name of the file to write statistics (with path)public void saveRules(java.util.HashMap params, java.util.ArrayList rules, java.lang.String fileName)
params
- Parameters of data mining executionrules
- List that stores frequent patternsfileName
- Name of the file to write statistics (with path)public void saveToGraphML(Trie trie, java.lang.String fileName, java.lang.String[] params) throws java.io.IOException
trie
- A given trie.Name
- of a file to write (with path)params
- Specify what information from a trie should be written to a file.
java.io.IOException
public void saveToGraphML(jdsl.core.api.Tree taxonomy, java.lang.String fileName, java.lang.String[] params) throws java.io.IOException
taxonomy
- A given taxonomyName
- of a file to write (with path)params
- Specify what information from a taxonomy should be written to a file.
java.io.IOException
public java.util.HashMap readXMLSetupFile(java.lang.String fileName)
fileName
- Name of the file to read (with path)
public java.util.ArrayList readPatternList(java.lang.String fileName, org.semanticweb.kaon2.api.logic.Variable keyVar)
fileName
- Name of the file to read (with path)keyVar
- Key variable (the one in reference concept)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |