Package | Description |
---|---|
org.semanticweb.ruqar.db | |
org.semanticweb.ruqar.qa | |
org.semanticweb.ruqar.rules | |
org.semanticweb.ruqar.transformations |
Modifier and Type | Field and Description |
---|---|
Atom |
DBMapping.mappingAtom |
Modifier and Type | Method and Description |
---|---|
java.util.List<Atom> |
DBSessionManager.executeAndGetAtoms()
Executes SQL queries and return results as List
|
Constructor and Description |
---|
DBMapping(java.lang.String name,
Atom mappingAtom,
java.lang.String sqlCommand,
DBMappingTerm col1)
Constructor.
|
DBMapping(java.lang.String name,
Atom mappingAtom,
java.lang.String sqlCommand,
DBMappingTerm col1,
DBMappingTerm col2)
Constructor.
|
DBMapping(java.lang.String name,
Atom mappingAtom,
java.lang.String sqlCommand,
DBMappingTerm col1,
DBMappingTerm col2,
DBMappingTerm col3)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
QueryAnswering.answerQueryAlgorithm1(java.util.List<Atom> query)
Implementation of the first proposed query answering algorithm.
|
void |
QueryAnswering.answerQueryAlgorithm2(java.util.List<Atom> query)
Implementation of the second proposed query answering algorithm.
|
void |
QueryAnswering.workWithPredicates(java.util.Collection<Atom> query)
Common step of both query answering algorithms, iterates through predicates and colects results
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Atom> |
Rule.getBody()
Returns the body of a rule.
|
java.util.List<Atom> |
Rule.getHead()
Returns the head of a rule.
|
Constructor and Description |
---|
Atom(Atom atom)
Creates a copy of a given
|
Rule(java.lang.String name,
Atom body,
Atom head)
Constructor - requires the name, the body and the head of a rule.
|
Rule(java.lang.String name,
Atom body,
Atom head,
org.semanticweb.owlapi.model.OWLAxiom axiom)
Constructor - requires the name, the body and the head of a rule.
|
Constructor and Description |
---|
Rule(java.lang.String name,
java.util.List<Atom> body,
java.util.List<Atom> head)
Constructor - requires the name, the body and the head of a rule.
|
Rule(java.lang.String name,
java.util.List<Atom> body,
java.util.List<Atom> head)
Constructor - requires the name, the body and the head of a rule.
|
Rule(java.lang.String name,
java.util.List<Atom> body,
java.util.List<Atom> head,
org.semanticweb.owlapi.model.OWLAxiom axiom)
Constructor - requires the name, the body and the head of a rule.
|
Rule(java.lang.String name,
java.util.List<Atom> body,
java.util.List<Atom> head,
org.semanticweb.owlapi.model.OWLAxiom axiom)
Constructor - requires the name, the body and the head of a rule.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Atom> |
OWLIntoRules.getAllAssertionsAsAtoms()
Gets all class and property assertions from a given ontology.
|
java.util.List<Atom> |
OWLIntoRules.getClassAssertionsAsAtoms()
Gets class assertions (data) from a given ontology.
|
java.util.List<Atom> |
OWLIntoRules.getPropertyAssertionsAsAtoms()
Gets object property and datatype property assertions (facts) from a given ontology.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
DBMappingRuleIntoJessRule.createFieldsAndValues(java.lang.String type,
Atom mappingAtom)
Creates the values of the fields according to the Jess rule syntax
|
java.lang.String |
DBMappingRuleIntoDroolsRule.createFieldsAndValues(java.lang.String type,
Atom mappingAtom)
Creates the values of the fields according to the Drools syntax
|
java.lang.String |
DBMappingRuleInto.createFieldsAndValues(java.lang.String type,
Atom mappingAtom)
Creates the values of the fields according to the implemented rule syntax
|
java.lang.String |
RulesIntoJessRules.getAtomToString(Atom atom) |
java.lang.String |
RulesIntoDroolsRules.getAtomToString(Atom atom) |
java.lang.String |
RulesInto.getAtomToString(Atom atom)
Creates String representation of an Atom expressed in the language of the reasoning engine.
|
Modifier and Type | Method and Description |
---|---|
void |
DBMappingRuleIntoJessRule.addResultsToEngine(java.util.List<Atom> atoms)
Translates set of Atoms into the Jess syntax, and adds them as asserts to the engine.
|
void |
DBMappingRuleIntoDroolsRule.addResultsToEngine(java.util.List<Atom> atoms)
Translates a set of Atoms into the Drools syntax, and inserts them to the session.
|
void |
DBMappingRuleInto.addResultsToEngine(java.util.List<Atom> results)
Translates a set of Atoms into the implemented syntax, and adds them to the engine.
|
java.lang.String |
RulesIntoJessRules.getQuery(java.util.List<Atom> atoms,
java.lang.String queryName) |
java.lang.Object |
RulesIntoDroolsRules.getQuery(java.util.List<Atom> atoms,
java.lang.String queryName) |
java.lang.Object |
RulesInto.getQuery(java.util.List<Atom> atoms,
java.lang.String queryName)
Creates the query string for the appropriate reasoning engine.
|
java.lang.String |
RulesIntoJessRules.getRuleFromQuery(java.util.List<Atom> atoms) |
java.lang.String |
RulesIntoDroolsRules.getRuleFromQuery(java.util.List<Atom> atoms) |
java.lang.String |
RulesInto.getRuleFromQuery(java.util.List<Atom> atoms)
Creates the rule for the reasoning engine, this rule is used in 1st proposed query answering algorithm.
|
java.util.List<java.lang.String> |
RulesIntoJessRules.getTransformatedData(java.util.List<Atom> atoms) |
java.util.List<Triple> |
RulesIntoDroolsRules.getTransformatedData(java.util.List<Atom> atoms) |
java.util.List<?> |
RulesInto.getTransformatedData(java.util.List<Atom> atoms)
Transforms all Atom into appropriate representation of facts expressed in the language of the reasoning engine.
|