|
Protégé-OWL 3.4.1 | ||||||||
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
SWRLRuleEngineBridgeException
public void importSWRLRulesAndOWLKnowledge(Set<String> ruleGroupNames) throws SWRLRuleEngineBridgeException
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
SWRLRuleEngineBridgeException
public void infer(String ruleGroupName) throws SWRLRuleEngineBridgeException
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
getNumberOfImportedAxioms
in interface SWRLRuleEngine
public int getNumberOfInferredIndividuals()
getNumberOfInferredIndividuals
in interface SWRLRuleEngineBridge
public int getNumberOfInferredAxioms()
getNumberOfInferredAxioms
in interface SWRLRuleEngineBridge
getNumberOfInferredAxioms
in interface SWRLRuleEngine
public int getNumberOfInjectedClasses()
getNumberOfInjectedClasses
in interface SWRLRuleEngineBridge
public int getNumberOfInjectedIndividuals()
getNumberOfInjectedIndividuals
in interface SWRLRuleEngineBridge
public int getNumberOfInjectedAxioms()
getNumberOfInjectedAxioms
in interface SWRLRuleEngineBridge
getNumberOfInjectedAxioms
in interface SWRLRuleEngine
public boolean isClass(String className)
isClass
in interface SWRLRuleEngineBridge
public boolean isProperty(String propertyName)
public boolean isIndividual(String individualName)
public boolean isInjectedClass(String className)
isInjectedClass
in interface SWRLRuleEngineBridge
public boolean isInjectedAnonymousClass(String className)
isInjectedAnonymousClass
in interface SWRLRuleEngineBridge
public boolean isInjectedIndividual(String individualName)
isInjectedIndividual
in interface SWRLRuleEngineBridge
public boolean isInjectedAxiom(OWLAxiom axiom)
isInjectedAxiom
in interface SWRLRuleEngineBridge
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
getImportedAxioms
in interface SWRLRuleEngine
public Set<OWLIndividual> getInferredIndividuals()
getInferredIndividuals
in interface SWRLRuleEngineBridge
public Set<OWLAxiom> getInferredAxioms()
getInferredAxioms
in interface SWRLRuleEngineBridge
getInferredAxioms
in interface SWRLRuleEngine
public Set<OWLClass> getInjectedClasses()
getInjectedClasses
in interface SWRLRuleEngineBridge
public Set<OWLClass> getInjectedAnonymousClasses()
public Set<OWLIndividual> getInjectedIndividuals()
getInjectedIndividuals
in interface SWRLRuleEngineBridge
public Set<OWLAxiom> getInjectedAxioms()
getInjectedAxioms
in interface SWRLRuleEngineBridge
getInjectedAxioms
in interface SWRLRuleEngine
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 OWLClassAssertionAxiom createOWLClassAssertionAxiom(OWLIndividual individual, OWLClass description) throws SWRLRuleEngineBridgeException
createOWLClassAssertionAxiom
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public void createOWLClassPropertyAssertionAxiom(OWLIndividual subject, OWLProperty property, OWLClass object) throws SWRLRuleEngineBridgeException
createOWLClassPropertyAssertionAxiom
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
public void createOWLSubClassAxiom(OWLClass subClass, OWLClass superClass) throws SWRLRuleEngineBridgeException
createOWLSubClassAxiom
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 createOWLObjectPropertyAssertionAxioms(Set<OWLObjectPropertyAssertionAxiom> axioms) throws SWRLRuleEngineBridgeException
createOWLObjectPropertyAssertionAxioms
in interface SWRLRuleEngineBridge
SWRLRuleEngineBridgeException
|
Protégé-OWL 3.4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |