public class RulesIntoDroolsRules extends java.lang.Object implements RulesInto
Modifier and Type | Field and Description |
---|---|
java.util.List<java.lang.String> |
droolsRules |
Constructor and Description |
---|
RulesIntoDroolsRules()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAtomToString(Atom atom)
Creates String representation of an Atom expressed in the language of the reasoning engine.
|
java.lang.String |
getAtomTypeMapping(AtomType atomType)
Maps AtomType to the appropriate type expressed in the language of the reasoning engine.
|
java.util.List<java.lang.String> |
getDataStructures()
Creates appropriate String representation of data structures expressed in the language of the reasoning engine.
|
java.lang.Object |
getQuery(java.util.List<Atom> atoms,
java.lang.String queryName)
Creates the query string for the appropriate reasoning engine.
|
java.lang.String |
getRuleFromQuery(java.util.List<Atom> atoms)
Creates the rule for the reasoning engine, this rule is used in 1st proposed query answering algorithm.
|
java.lang.String |
getTermToString(Term term)
Creates String representation of a Term expressed in the language of the reasoning engine.
|
java.lang.String |
getTermTypeMapping(TermType termType)
Maps TermType to the appropriate type expressed in the language of the reasoning engine.
|
java.util.List<Triple> |
getTransformatedData(java.util.List<Atom> atoms)
Transforms all Atom into appropriate representation of facts expressed in the language of the reasoning engine.
|
java.util.List<java.lang.String> |
getTransformatedRules(java.util.List<Rule> rules)
Transforms all Rule into appropriate representation of rules expressed in the language of the reasoning engine.
|
java.lang.String |
getValueTypeMapping(Term term)
Maps ValueType to the type expressed in the language of the reasoning engine.
|
boolean |
saveDataToFile(java.lang.String fileNamePath,
java.util.List<?> data)
Saves transformed data into given file appropriate to load by the reasoning engine.
|
boolean |
saveRulesToFile(java.lang.String fileNamePath,
java.util.List<?> rules)
Saves transformed rules into given file appropriate to load by the reasoning engine.
|
public java.lang.String getAtomToString(Atom atom)
RulesInto
getAtomToString
in interface RulesInto
public java.lang.String getAtomTypeMapping(AtomType atomType)
RulesInto
getAtomTypeMapping
in interface RulesInto
public java.util.List<java.lang.String> getDataStructures()
RulesInto
getDataStructures
in interface RulesInto
public java.lang.Object getQuery(java.util.List<Atom> atoms, java.lang.String queryName)
RulesInto
public java.lang.String getRuleFromQuery(java.util.List<Atom> atoms)
RulesInto
getRuleFromQuery
in interface RulesInto
public java.lang.String getTermToString(Term term)
RulesInto
getTermToString
in interface RulesInto
public java.lang.String getTermTypeMapping(TermType termType)
RulesInto
getTermTypeMapping
in interface RulesInto
public java.util.List<Triple> getTransformatedData(java.util.List<Atom> atoms)
RulesInto
getTransformatedData
in interface RulesInto
public java.util.List<java.lang.String> getTransformatedRules(java.util.List<Rule> rules)
RulesInto
getTransformatedRules
in interface RulesInto
public java.lang.String getValueTypeMapping(Term term)
RulesInto
getValueTypeMapping
in interface RulesInto
public boolean saveDataToFile(java.lang.String fileNamePath, java.util.List<?> data)
RulesInto
saveDataToFile
in interface RulesInto
public boolean saveRulesToFile(java.lang.String fileNamePath, java.util.List<?> rules)
RulesInto
saveRulesToFile
in interface RulesInto