|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.beans.beancontext.BeanContextChildSupport | +--java.beans.beancontext.BeanContextSupport | +--jtp.context.BasicReasoningContext | +--jtp.frame.listen.Context | +--jtp.context.rdf.RDFReasoningContext | +--jtp.context.owl.OWLReasoningContext
The context for accessing JTP's OWL reasoning mechanisms.
After creating an instance of OWLReasoningContext (or an instance
of a subclass of OWLReasoningContext), you should call
setUp()
.
After setup, the various loading, asking, and telling methods can be used to load KBs and query them.
Field Summary | |
static String |
OWL_REF
|
static URL |
OWL_RULES
|
static URL |
OWL_TRIPLES
|
Fields inherited from class jtp.context.rdf.RDFReasoningContext |
idr, RDF_REF, RDF_RULES, RDF_TRIPLES |
Fields inherited from class jtp.frame.listen.Context |
ONE_VALUE, TRIPLE, VALUE_LINK, VC |
Fields inherited from class jtp.context.BasicReasoningContext |
tracer |
Fields inherited from class java.beans.beancontext.BeanContextSupport |
bcmListeners, children, designTime, locale, okToUseGui |
Fields inherited from class java.beans.beancontext.BeanContextChildSupport |
beanContext, beanContextChildPeer, pcSupport, rejectedSetBCOnce, vcSupport |
Fields inherited from interface java.beans.beancontext.BeanContext |
globalHierarchyLock |
Fields inherited from interface java.beans.DesignMode |
PROPERTYNAME |
Constructor Summary | |
OWLReasoningContext()
|
Method Summary | |
protected void |
createEmptyContentHolders()
|
ReasoningStepIterator |
disjointnessInconsistencies()
Checks for objects in the knowledge base that are inconsistent because they are instances of disjoint classes. |
ReasoningStepIterator |
equivalenceInconsistencies()
Checks for pairs of objects in the knowledge base that are inconsistent because they are asserted or inferred to be both equivalent to and distinct from each other. |
ReasoningStepIterator |
exceedsMaxCard0Inconsistencies()
Checks for objects in the knowledge base that are inconsistent because they are restricted to have zero values for a particular property, but they violate this restriction. |
ClassifierTellingReasoner |
getClassifierTellingReasoner()
|
IntersectionTypeReasoner |
getIntersectionTypeReasoner()
|
ReasoningStepIterator |
inconsistencies()
Compiles all of the inconsistencies found by disjointnessInconsistencies() ,
equivalenceInconsistencies() ,
exceedsMaxCard0Inconsistencies() ,
nothingInconsistencies() ,
nilItemInconsistencies() , and
nilRestInconsistencies() . |
ReasoningStepIterator |
nilItemInconsistencies()
Checks for objects in the knowledge base that are inconsistent because they have been asserted or inferred to be an item in the empty list (rdf:nil). |
ReasoningStepIterator |
nilRestInconsistencies()
Checks for objects in the knowledge base that are inconsistent because they have been asserted or inferred to be a continuation (rdf:rest) of the empty list (rdf:nil). |
ReasoningStepIterator |
nothingInconsistencies()
Checks for objects in the knowledge base that are inconsistent because they have been asserted or inferred to be a member of the empty class (owl:Nothing). |
void |
setClassifierTellingReasoner(ClassifierTellingReasoner r)
|
void |
setIntersectionTypeReasoner(IntersectionTypeReasoner r)
|
void |
setUp()
Sets up the OWLReasoningContext. |
Methods inherited from class jtp.context.rdf.RDFReasoningContext |
ask, ask, assertKifString, assertString, getKifParser, getModelForAssertions, getRDFParser, loadKB, loadKB, loadKB, loadKifKB, loadRDFKB, loadRDFKB, setMaxDepth, tell, tellKifString, tellString, tellString, tellString, tellString, untell, untellString, writeRDF |
Methods inherited from class jtp.frame.listen.Context |
addLink, addListener, addRule, addRule, createContentHolders, getDamlParser, getFrameKB, loadSpecs, loadSpecs, orderLiterals, setFrameKB |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.beans.beancontext.BeanContextChild |
addPropertyChangeListener, addVetoableChangeListener, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext |
Methods inherited from interface java.util.Collection |
equals, hashCode |
Field Detail |
public static final URL OWL_RULES
public static final URL OWL_TRIPLES
public static final String OWL_REF
Constructor Detail |
public OWLReasoningContext()
Method Detail |
public IntersectionTypeReasoner getIntersectionTypeReasoner()
public void setIntersectionTypeReasoner(IntersectionTypeReasoner r)
public ClassifierTellingReasoner getClassifierTellingReasoner()
public void setClassifierTellingReasoner(ClassifierTellingReasoner r)
public void setUp()
You should call this before loading KBs from OWL or KIF files, telling sentences, or asking queries.
setUp
in class RDFReasoningContext
protected void createEmptyContentHolders()
createEmptyContentHolders
in class Context
public ReasoningStepIterator inconsistencies()
disjointnessInconsistencies()
,
equivalenceInconsistencies()
,
exceedsMaxCard0Inconsistencies()
,
nothingInconsistencies()
,
nilItemInconsistencies()
, and
nilRestInconsistencies()
.
Warning: This will take several seconds.
inconsistencies
in class RDFReasoningContext
public ReasoningStepIterator disjointnessInconsistencies() throws ReasoningException
(and (owl:disjointWith ?c1 ?c2) (rdf:type ?x ?c1)
(rdf:type ?x ?c2))
.
Warning: This will take several seconds.
ReasoningException
public ReasoningStepIterator equivalenceInconsistencies() throws ReasoningException
(and (owl:differentFrom ?x ?y) (owl:sameAs ?x ?y))
.
ReasoningException
public ReasoningStepIterator exceedsMaxCard0Inconsistencies() throws ReasoningException
(and (owl:maxCardinality ?r 0) (owl:onProperty ?r ?p)
(rdf:type ?x ?r) (?p ?x ?v))
.
ReasoningException
public ReasoningStepIterator nothingInconsistencies() throws ReasoningException
(rdf:type ?x owl:Nothing)
.
ReasoningException
public ReasoningStepIterator nilItemInconsistencies() throws ReasoningException
(rdf:item rdf:nil ?x)
.
ReasoningException
public ReasoningStepIterator nilRestInconsistencies() throws ReasoningException
(rdf:rest rdf:nil ?l)
.
ReasoningException
|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |