|
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.daml.DamlReasoningContext
The context for accessing JTP's DAML reasoning mechanisms.
After creating an instance of DamlReasoningContext (or an instance
of a subclass of DamlReasoningContext), 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 |
DAML_AXIOMATIC_SEMANTICS
|
static URL |
DAML_RULES
|
static URL |
DAML_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 | |
DamlReasoningContext()
|
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 of a particular type for a particular property, but they violate this restriction. |
ClassifierTellingReasoner |
getClassifierTellingReasoner()
|
DAMLParser |
getDamlParser()
Deprecated. Use RDFReasoningContext.getRDFParser() instead. |
IntersectionTypeReasoner |
getIntersectionTypeReasoner()
|
ReasoningStepIterator |
inconsistencies()
Compiles all of the inconsistencies found by disjointnessInconsistencies() ,
equivalenceInconsistencies() ,
exceedsMaxCard0Inconsistencies() ,
nothingInconsistencies() ,
nilItemInconsistencies() , and
nilRestInconsistencies() . |
void |
loadDamlKB(com.hp.hpl.jena.rdf.model.Model model,
URL publicLocation)
Deprecated. Use RDFReasoningContext.loadRDFKB(Model, URL) . |
void |
loadDamlKB(URL url,
URL publicLocation)
Deprecated. Use RDFReasoningContext.loadRDFKB(URL, URL) . |
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 (daml:nil). |
ReasoningStepIterator |
nilRestInconsistencies()
Checks for objects in the knowledge base that are inconsistent because they have been asserted or inferred to be a continuation (daml:rest) of the empty list (daml: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 (daml:Nothing). |
void |
setClassifierTellingReasoner(ClassifierTellingReasoner r)
|
void |
setIntersectionTypeReasoner(IntersectionTypeReasoner r)
|
void |
setUp()
Sets up the DamlReasoningContext. |
void |
writeDaml(Writer writer,
Snapshot snap,
String baseUri,
Map prefixes)
Deprecated. Use RDFReasoningContext.writeRDF(Writer, Snapshot, String, Map) . |
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, 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 DAML_RULES
public static final URL DAML_TRIPLES
public static final String DAML_AXIOMATIC_SEMANTICS
Constructor Detail |
public DamlReasoningContext()
Method Detail |
public IntersectionTypeReasoner getIntersectionTypeReasoner()
public void setIntersectionTypeReasoner(IntersectionTypeReasoner r)
public ClassifierTellingReasoner getClassifierTellingReasoner()
public void setClassifierTellingReasoner(ClassifierTellingReasoner r)
public DAMLParser getDamlParser()
RDFReasoningContext.getRDFParser()
instead.
getDamlParser
in class Context
public void setUp()
You should call this before loading KBs from DAML or KIF files, telling sentences, or asking queries.
setUp
in class RDFReasoningContext
protected void createEmptyContentHolders()
createEmptyContentHolders
in class Context
public void loadDamlKB(URL url, URL publicLocation) throws ReasoningException, IOException
RDFReasoningContext.loadRDFKB(URL, URL)
.
ReasoningException
IOException
public void loadDamlKB(com.hp.hpl.jena.rdf.model.Model model, URL publicLocation) throws ReasoningException, IOException
RDFReasoningContext.loadRDFKB(Model, URL)
.
ReasoningException
IOException
public void writeDaml(Writer writer, Snapshot snap, String baseUri, Map prefixes)
RDFReasoningContext.writeRDF(Writer, Snapshot, String, Map)
.
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 (daml:disjointWith ?c1 ?c2) (rdf:type ?x ?c1)
(rdf:type ?x ?c2))
.
Warning: This will take several seconds.
ReasoningException
public ReasoningStepIterator equivalenceInconsistencies() throws ReasoningException
(and (daml:differentIndividualFrom ?x ?y)
(daml:equivalentTo ?x ?y))
.
ReasoningException
public ReasoningStepIterator exceedsMaxCard0Inconsistencies() throws ReasoningException
(and (daml:maxCardinalityQ ?r 0) (daml:onProperty ?r ?p)
(daml:hasClassQ ?r ?c) (rdf:type ?x ?r) (?p ?x ?v)
(rdf:type ?v ?c)
.
ReasoningException
public ReasoningStepIterator nothingInconsistencies() throws ReasoningException
(rdf:type ?x daml:Nothing)
.
ReasoningException
public ReasoningStepIterator nilItemInconsistencies() throws ReasoningException
(daml:item daml:nil ?x)
.
ReasoningException
public ReasoningStepIterator nilRestInconsistencies() throws ReasoningException
(daml:rest daml:nil ?l)
.
ReasoningException
|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |