|
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 | +--jtp.util.PropertyImporter | +--jtp.classifier.ClassifierTellingReasoner
A telling reasoner that processes triples with the properties rdfs:subClassOf, daml:subClassOf, daml:sameClassAs, daml:intersectionOf, daml:unionOf, and daml:disjointUnionOf. It returns daml:subClassOf and daml:sameClassAs inferences made through cycle detection and structural classification.
This reasoner primarily serves as an interface to
Kb
.
Field Summary |
Fields inherited from class java.beans.beancontext.BeanContextChildSupport |
beanContext, beanContextChildPeer, pcSupport, rejectedSetBCOnce, vcSupport |
Constructor Summary | |
ClassifierTellingReasoner()
|
Method Summary | |
boolean |
acceptable(Object o)
decides if the goal is suitable for being processed by this reasoner. |
void |
addConjunctiveRelation(Symbol relation)
|
void |
addDisjunctiveRelation(Symbol relation)
|
void |
addEquivalenceRelation(Symbol relation)
|
void |
addSubclassRelation(Symbol relation)
|
Reasoner |
getAskingReasoner()
|
protected Map |
getListItems(Object list)
Queries and returns items of list . |
ReasoningStepIterator |
process(Object o)
This method attempts to find proof for the goal. |
void |
setAskingReasoner(Reasoner r)
|
void |
setListItemRelation(Symbol relation)
|
void |
setPrimaryEquivalenceRelation(Symbol relation)
|
void |
setPrimarySubclassRelation(Symbol relation)
|
void |
setUndoManager(UndoManager undo)
|
Methods inherited from class jtp.util.PropertyImporter |
getImportedProperties, initializeBeanContextResources, setImportedProperties |
Methods inherited from class java.beans.beancontext.BeanContextChildSupport |
addPropertyChangeListener, addVetoableChangeListener, firePropertyChange, fireVetoableChange, getBeanContext, getBeanContextChildPeer, isDelegated, releaseBeanContextResources, removePropertyChangeListener, removeVetoableChangeListener, serviceAvailable, serviceRevoked, setBeanContext, validatePendingSetBeanContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassifierTellingReasoner()
Method Detail |
public void setPrimarySubclassRelation(Symbol relation)
public void addSubclassRelation(Symbol relation)
public void setPrimaryEquivalenceRelation(Symbol relation)
public void addEquivalenceRelation(Symbol relation)
public void addConjunctiveRelation(Symbol relation)
public void addDisjunctiveRelation(Symbol relation)
public void setListItemRelation(Symbol relation)
public Reasoner getAskingReasoner()
public void setAskingReasoner(Reasoner r)
public void setUndoManager(UndoManager undo)
public boolean acceptable(Object o)
Reasoner
Example. Many reasoners only process literals with certain predicates and arity. These reasoners will use those criteria to determine acceptability, for example a reasoner dealing with equality could accept goals that are:
acceptable
in interface Reasoner
public ReasoningStepIterator process(Object o) throws ReasoningException
Reasoner
Example. A reasoner that performs unification of the goal with facts in a
knowledge base can return the following enumeration for the goal (parent joe ?x)
:
(parent joe fred)
with variable assignment
?x=fred,(parent joe mary)
with variable assignment
?x=mary.
process
in interface Reasoner
o
- the goal: either a query or an assertion
ReasoningException
protected Map getListItems(Object list)
list
.
Assumes that all of the items that are in the list have been
asserted. The DAMLParser
attempts to enforce
this. If users are not exclusively using the DAMLParser, they have
to be careful.
|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |