|
Protégé-OWL 3.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngineBridge
public abstract class AbstractSWRLRuleEngineBridge
This class provides an implementation of some of the core functionality required by a SWRL rule engine bridge. Implementations for a target rule engine should subclass this class. Detailed documentation for this process can be found here.
Field Summary | |
---|---|
protected OWLModel |
owlModel
|
Constructor Summary | |
---|---|
protected |
AbstractSWRLRuleEngineBridge(OWLModel owlModel)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.stanford.smi.protegex.owl.swrl.bridge.SWRLRuleEngineBridge |
---|
defineAxiom, defineClass, defineIndividual, defineRestriction, defineRule, generateBuiltInBinding, resetRuleEngine, runRuleEngine |
Field Detail |
---|
protected OWLModel owlModel
Constructor Detail |
---|
protected AbstractSWRLRuleEngineBridge(OWLModel owlModel) throws SWRLRuleEngineBridgeException
SWRLRuleEngineBridgeException
Method Detail |
---|
public void importSWRLRulesAndOWLKnowledge() throws SWRLRuleEngineBridgeException
importSWRLRulesAndOWLKnowledge
in interface SWRLRuleEngine
SWRLRuleEngineBridgeException
public void importSWRLRulesAndOWLKnowledge(String ruleGroupName) throws SWRLRuleEngineBridgeException
importSWRLRulesAndOWLKnowledge
in interface SWRLRuleEngine
SWRLRuleEngineBridgeException
public void importSWRLRulesAndOWLKnowledge(Set<String> ruleGroupNames) throws SWRLRuleEngineBridgeException
importSWRLRulesAndOWLKnowledge
in interface SWRLRuleEngine
SWRLRuleEngineBridgeException
public void run() throws SWRLRuleEngineBridgeException
run
in interface SWRLRuleEngine
SWRLRuleEngineBridgeException
public void writeInferredKnowledge2OWL() throws SWRLRuleEngineBridgeException
writeInferredKnowledge2OWL
in interface SWRLRuleEngine
SWRLRuleEngineBridgeException
public void reset() throws SWRLRuleEngineBridgeException
reset
in interface SWRLRuleEngine
SWRLRuleEngineBridgeException
public void infer(Set<String> ruleGroupNames) throws SWRLRuleEngineBridgeException
infer
in interface SWRLRuleEngine
SWRLRuleEngineBridgeException
public void infer(String ruleGroupName) throws SWRLRuleEngineBridgeException
infer
in interface SWRLRuleEngine
SWRLRuleEngineBridgeException
public void infer() throws SWRLRuleEngineBridgeException
SWRLRuleEngine
infer
in interface SWRLRuleEngine
SWRLRuleEngineBridgeException
public void runSQWRLQueries() throws SQWRLException
SQWRLQueryEngine
runSQWRLQueries
in interface SQWRLQueryEngine
SQWRLException
public SQWRLResult getSQWRLResult(String queryName) throws SQWRLException
getSQWRLResult
in interface SQWRLQueryEngine
SQWRLException
public SWRLRule getRule(String ruleName) throws InvalidRuleNameException
getRule
in interface SWRLRuleEngine
InvalidRuleNameException
public OWLModel getOWLModel()
getOWLModel
in interface SWRLRuleEngineBridge
public int getNumberOfImportedSWRLRules()
getNumberOfImportedSWRLRules
in interface SWRLRuleEngineBridge
public int getNumberOfImportedClasses()
getNumberOfImportedClasses
in interface SWRLRuleEngineBridge
public int getNumberOfImportedIndividuals()
getNumberOfImportedIndividuals
in interface SWRLRuleEngineBridge
public int getNumberOfImportedAxioms()
getNumberOfImportedAxioms
in interface SWRLRuleEngineBridge
public int getNumberOfInferredIndividuals()
getNumberOfInferredIndividuals
in interface SWRLRuleEngineBridge
getNumberOfInferredIndividuals
in interface SWRLRuleEngine
public int getNumberOfInferredAxioms()
getNumberOfInferredAxioms
in interface SWRLRuleEngineBridge
getNumberOfInferredAxioms
in interface SWRLRuleEngine
public int getNumberOfCreatedClasses()
getNumberOfCreatedClasses
in interface SWRLRuleEngineBridge
public int getNumberOfCreatedIndividuals()
getNumberOfCreatedIndividuals
in interface SWRLRuleEngineBridge
public int getNumberOfCreatedAxioms()
getNumberOfCreatedAxioms
in interface SWRLRuleEngineBridge
public int getNumberOfCreatedRestrictions()
getNumberOfCreatedRestrictions
in interface SWRLRuleEngineBridge
public boolean isClass(String className)
isClass
in interface SWRLRuleEngineBridge
public boolean isProperty(String propertyName)
public boolean isIndividual(String individualName)
public boolean isCreatedClass(String className)
isCreatedClass
in interface SWRLRuleEngineBridge
public boolean isCreatedAnonymousClass(String className)
isCreatedAnonymousClass
in interface SWRLRuleEngineBridge
public boolean isCreatedIndividual(String individualName)
isCreatedIndividual
in interface SWRLRuleEngineBridge
public boolean isCreatedAxiom(OWLAxiom axiom)
isCreatedAxiom
in interface SWRLRuleEngineBridge
public boolean isCreatedRestriction(OWLRestriction restriction)
public Set<SWRLRule> getImportedSWRLRules()
getImportedSWRLRules
in interface SWRLRuleEngineBridge
public Set<OWLClass> getImportedClasses()
getImportedClasses
in interface SWRLRuleEngineBridge
public Set<OWLIndividual> getImportedIndividuals()
getImportedIndividuals
in interface SWRLRuleEngineBridge
public Set<OWLAxiom> getImportedAxioms()
getImportedAxioms
in interface SWRLRuleEngineBridge
public Set<OWLIndividual> getInferredIndividuals()
getInferredIndividuals
in interface SWRLRuleEngineBridge
getInferredIndividuals
in interface SWRLRuleEngine
public Set<OWLAxiom> getInferredAxioms()
getInferredAxioms
in interface SWRLRuleEngineBridge
getInferredAxioms
in interface SWRLRuleEngine
public Set<OWLClass> getCreatedClasses()
getCreatedClasses
in interface SWRLRuleEngineBridge
public Set<OWLClass> getCreatedAnonymousClasses()
public Set<OWLIndividual> getCreatedIndividuals()
getCreatedIndividuals
in interface SWRLRuleEngineBridge
public Set<OWLAxiom> getCreatedAxioms()
getCreatedAxioms
in interface SWRLRuleEngineBridge
public Set<OWLRestriction> getCreatedRestrictions()
getCreatedRestrictions
in interface SWRLRuleEngineBridge
public void inferPropertyAssertionAxiom(OWLPropertyAssertionAxiom owlPropertyAssertionAxiom) throws SWRLRuleEngineBridgeException
inferPropertyAssertionAxiom
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public void inferIndividual(OWLIndividual owlIndividual) throws SWRLRuleEngineBridgeException
inferIndividual
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public boolean invokeSWRLBuiltIn(String ruleName, String builtInName, int builtInIndex, boolean isInConsequent, List<BuiltInArgument> arguments) throws BuiltInException
See here for documentaton.
invokeSWRLBuiltIn
in interface SWRLRuleEngineBridge
BuiltInException
public void setMapper(Mapper mapper)
setMapper
in interface SWRLRuleEngineBridge
public boolean hasMapper()
hasMapper
in interface SWRLRuleEngineBridge
public Mapper getMapper()
getMapper
in interface SWRLRuleEngineBridge
public OWLClass createOWLAnonymousClass() throws SWRLRuleEngineBridgeException
createOWLAnonymousClass
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public void createOWLClass(String className) throws SWRLRuleEngineBridgeException
createOWLClass
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public void createOWLClass(String className, String superclassName) throws SWRLRuleEngineBridgeException
createOWLClass
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public OWLIndividual createOWLIndividual() throws SWRLRuleEngineBridgeException
createOWLIndividual
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public void createOWLIndividual(OWLIndividual owlIndividual) throws SWRLRuleEngineBridgeException
createOWLIndividual
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public OWLIndividual createOWLIndividual(OWLClass owlClass) throws SWRLRuleEngineBridgeException
createOWLIndividual
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public void createOWLIndividuals(Set<OWLIndividual> individuals) throws SWRLRuleEngineBridgeException
createOWLIndividuals
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public OWLDatatypePropertyAssertionAxiom createOWLDatatypePropertyAssertionAxiom(OWLIndividual subject, OWLProperty property, OWLDatatypeValue object) throws SWRLRuleEngineBridgeException
createOWLDatatypePropertyAssertionAxiom
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public OWLDatatypePropertyAssertionAxiom createOWLDatatypePropertyAssertionAxiom(OWLDatatypePropertyAssertionAxiom axiom) throws SWRLRuleEngineBridgeException
createOWLDatatypePropertyAssertionAxiom
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public void createOWLDatatypePropertyAssertionAxioms(Set<OWLDatatypePropertyAssertionAxiom> axioms) throws SWRLRuleEngineBridgeException
createOWLDatatypePropertyAssertionAxioms
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public OWLObjectPropertyAssertionAxiom createOWLObjectPropertyAssertionAxiom(OWLIndividual subject, OWLProperty property, OWLIndividual object) throws SWRLRuleEngineBridgeException
createOWLObjectPropertyAssertionAxiom
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public OWLObjectPropertyAssertionAxiom createOWLObjectPropertyAssertionAxiom(OWLObjectPropertyAssertionAxiom axiom) throws SWRLRuleEngineBridgeException
createOWLObjectPropertyAssertionAxiom
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public void createOWLAxiom(OWLAxiom axiom) throws SWRLRuleEngineBridgeException
createOWLAxiom
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public void createOWLRestriction(OWLRestriction restriction) throws SWRLRuleEngineBridgeException
createOWLRestriction
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public void createOWLObjectPropertyAssertionAxioms(Set<OWLObjectPropertyAssertionAxiom> axioms) throws SWRLRuleEngineBridgeException
createOWLObjectPropertyAssertionAxioms
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
|
Protégé-OWL 3.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |