|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jtp.classifier.Kb
KB and interface for structural classification system. See http://ksl.stanford.edu/abstracts_by_author/Sanner,S..papers.html for more information about this sytem.
Field Summary | |
static int |
_A_LINK
|
protected static int |
_A_TABLE
|
protected static int |
_ALL
|
static int |
_C_LINK
|
protected static int |
_C_TABLE
|
static int |
_D_LINK
|
protected static int |
_D_TABLE
|
protected static int |
_EMPTY
|
protected static int |
_NKB_MARKER_SET
|
protected static int |
_NUM_TABLES
|
static int |
_S_LINK
|
protected static int |
_S_TABLE
|
protected static int |
_VISITED
|
Constructor Summary | |
Kb()
|
|
Kb(Classifier cl)
|
Method Summary | |
Collection |
addConjunct(Object conjunct,
Collection constituents)
Adds and classifies conjunctively defined concept. |
Collection |
addDisjunct(Object disjunct,
Collection constituents)
Adds and classifies disjunctively defined concept. |
Collection |
addEquivalence(Object c1,
Object c2)
Collapses c1 and c2. |
protected void |
addResourceAlias(Object alias,
Resource r)
|
Collection |
addSubclassLink(Object csub,
Object csuper)
Adds a _SUBSUMED_BY link from csub to csuper. |
protected void |
addTripleLink(Resource o,
Relation r,
Resource v,
int link_type)
|
protected void |
addTripleLink(Resource o,
Relation r,
Resource v,
int link_type,
boolean add_inv)
|
protected Collection |
classifyConjunctsWithMGSOnly(Collection conjuncts)
|
protected Collection |
classifyDisjunctsWithMSSOnly(Collection disjuncts)
|
protected void |
clearMarks(int default_pattern)
|
protected Resource |
collapseCycle(Collection cycle)
There should be no duplicates in the cycle. |
protected Modifier |
createModifier(Object name,
Relation r,
Resource c,
Resource t,
int card_val)
|
protected Relation |
createRelation(Object name,
Relation inv,
Relation parent)
|
protected Resource |
createResource(Object name)
|
protected void |
deleteResource(Resource r)
|
protected Resource |
detectAndCollapseCycle(Resource c,
Relation rel)
If Resource c is involved in a Relation rel cycle, c is collapsed with the other Resources in the cycle, and a new canonical Resource is returned. |
protected void |
findCycle(Resource r,
Relation rel,
LinkedList curPath,
Collection cycle)
|
protected static int |
GetLink(int table)
|
protected Modifier |
getOrCreateModifier(Object name,
Relation r,
Resource c,
Resource t,
int card_val)
|
protected Relation |
getOrCreateRelation(Object name,
Relation inv,
Relation parent)
|
protected Resource |
getOrCreateResource(Object name)
|
protected Resource |
getResource(Object name)
|
protected static int |
GetTable(int link)
|
protected Set |
getTripleLinkSet(Resource o,
int link_type)
|
protected Set |
getTripleLinkSet(Resource o,
Resource r,
int link_type)
|
UndoManager |
getUndoManager()
|
protected boolean |
isTripleLink(Resource o,
Relation r,
Resource v,
int link_type)
|
protected void |
maintainBottomLinks(Resource c)
|
protected void |
maintainTopLinks(Resource c)
|
protected Collection |
reClassifyDefinedConceptsAbove(Collection starts)
|
protected Collection |
reClassifyDefinedConceptsAbove(Resource start)
|
protected Collection |
reClassifyDefinedConceptsAboveAndBelow(Resource rsub,
Resource rsuper)
|
protected Collection |
reClassifyDefinedConceptsBelow(Collection starts)
|
protected Collection |
reClassifyDefinedConceptsBelow(Resource start)
|
protected void |
removeTripleLink(Resource o,
Relation r,
Resource v,
int link_type)
|
protected Collection |
replaceConstituents(Resource r,
Collection constituents,
Relation rel,
int link_type)
If any constituents is itself a conjunct or disjunct (depending on rel and link_type), in the return collection, it's replaced by its constituents. |
protected Collection |
replaceReferences(Resource referent,
Collection constituents,
Relation rel,
int link_type)
For all defined concepts that refer to referent as a constitent via link_type rel, replace the reference to referent with references to referent's constituents. |
protected Collection |
searchDownForDisjClasses(Collection starts)
|
protected Collection |
searchDownForDisjClasses(Resource start)
|
protected Collection |
searchUpForConjClasses(Collection starts)
|
protected Collection |
searchUpForConjClasses(Resource start)
|
void |
setUndoManager(UndoManager u)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int _A_TABLE
protected static final int _C_TABLE
protected static final int _S_TABLE
protected static final int _D_TABLE
protected static final int _NUM_TABLES
public static final int _A_LINK
public static final int _C_LINK
public static final int _S_LINK
public static final int _D_LINK
protected static final int _NKB_MARKER_SET
protected static final int _EMPTY
protected static final int _VISITED
protected static final int _ALL
Constructor Detail |
public Kb()
public Kb(Classifier cl)
Method Detail |
public UndoManager getUndoManager()
public void setUndoManager(UndoManager u)
public Collection addSubclassLink(Object csub, Object csuper) throws ReasoningException
ReasoningException
public Collection addEquivalence(Object c1, Object c2) throws ReasoningException
ReasoningException
public Collection addConjunct(Object conjunct, Collection constituents) throws ReasoningException
ReasoningException
public Collection addDisjunct(Object disjunct, Collection constituents) throws ReasoningException
ReasoningException
protected Collection classifyConjunctsWithMGSOnly(Collection conjuncts) throws ReasoningException
ReasoningException
protected Collection classifyDisjunctsWithMSSOnly(Collection disjuncts) throws ReasoningException
ReasoningException
protected Collection reClassifyDefinedConceptsAbove(Resource start) throws ReasoningException
ReasoningException
protected Collection reClassifyDefinedConceptsBelow(Resource start) throws ReasoningException
ReasoningException
protected Collection reClassifyDefinedConceptsAbove(Collection starts) throws ReasoningException
ReasoningException
protected Collection reClassifyDefinedConceptsBelow(Collection starts) throws ReasoningException
ReasoningException
protected Collection reClassifyDefinedConceptsAboveAndBelow(Resource rsub, Resource rsuper) throws ReasoningException
ReasoningException
protected Resource getResource(Object name)
protected Resource createResource(Object name) throws ReasoningException
ReasoningException
protected Resource getOrCreateResource(Object name)
protected void deleteResource(Resource r) throws ReasoningException
ReasoningException
protected void addResourceAlias(Object alias, Resource r) throws ReasoningException
ReasoningException
protected Modifier createModifier(Object name, Relation r, Resource c, Resource t, int card_val) throws ReasoningException
ReasoningException
protected Modifier getOrCreateModifier(Object name, Relation r, Resource c, Resource t, int card_val) throws ReasoningException
ReasoningException
protected Relation createRelation(Object name, Relation inv, Relation parent) throws ReasoningException
ReasoningException
protected Relation getOrCreateRelation(Object name, Relation inv, Relation parent) throws ReasoningException
ReasoningException
protected static int GetTable(int link)
protected static int GetLink(int table)
protected void maintainTopLinks(Resource c)
protected void maintainBottomLinks(Resource c)
protected Resource detectAndCollapseCycle(Resource c, Relation rel) throws ReasoningException
ReasoningException
protected void findCycle(Resource r, Relation rel, LinkedList curPath, Collection cycle)
protected Resource collapseCycle(Collection cycle) throws ReasoningException
ReasoningException
protected void addTripleLink(Resource o, Relation r, Resource v, int link_type)
protected void addTripleLink(Resource o, Relation r, Resource v, int link_type, boolean add_inv)
protected Set getTripleLinkSet(Resource o, int link_type)
protected Set getTripleLinkSet(Resource o, Resource r, int link_type)
protected boolean isTripleLink(Resource o, Relation r, Resource v, int link_type)
protected void removeTripleLink(Resource o, Relation r, Resource v, int link_type)
protected Collection replaceConstituents(Resource r, Collection constituents, Relation rel, int link_type)
protected Collection replaceReferences(Resource referent, Collection constituents, Relation rel, int link_type)
protected Collection searchUpForConjClasses(Collection starts)
protected Collection searchUpForConjClasses(Resource start)
protected Collection searchDownForDisjClasses(Collection starts)
protected Collection searchDownForDisjClasses(Resource start)
protected void clearMarks(int default_pattern)
|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |