|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cgp.runtime.Type | +--cgp.runtime.KBase
Field Summary | |
private java.util.TreeSet |
conceptTypeNames
|
private notio.ConceptTypeHierarchy |
conceptTypes
|
private Namespace |
corefVars
|
private java.util.LinkedList |
graphs
|
private notio.KnowledgeBase |
kb
|
private static java.lang.String |
KBASE_NAME
|
private java.util.TreeSet |
relationTypeNames
|
private notio.RelationTypeHierarchy |
relationTypes
|
Fields inherited from class cgp.runtime.Type |
kbStack,
scopeStack,
type |
Constructor Summary | |
KBase()
|
|
KBase(KBase otherKBase)
|
Method Summary | |
void |
addConceptType(java.lang.String typeName)
Add a single concept type to the hierarchy if it has not already been added. |
void |
addCorefVarMapping(java.lang.String name,
Type value)
Add a coreferent variable mapping. |
void |
addRelationType(java.lang.String typeName)
Add a single relation type to the hierarchy if it has not already been added. |
void |
assert(GraphType g)
Assert a graph, first binding coreference variables. |
void |
assert(GraphType g,
boolean bindVars)
Assert a graph in this knowledge base unless a structurally equivalent graph has already been asserted. |
void |
bindCorefVars(GraphType g)
Bind coreference variables in the specified graph, if possible, by reference to the current knowledge base. |
private java.lang.String |
describeConceptTypes()
|
private java.lang.String |
describeRelationTypes()
|
boolean |
exactMatch(GraphType g)
Does the specified graph exactly match a graph in the set? |
java.util.LinkedList |
getAssertedGraphs()
|
java.util.TreeSet |
getConceptTypeNames()
|
StringType |
getConcepttypes()
|
ListType |
getCorefvars()
|
Namespace |
getCorefVars()
|
Type |
getCorefVarValue(java.lang.String name)
Get a coreferent variable's value. |
ListType |
getGraphs()
Getter and setter methods for attributes. |
notio.KnowledgeBase |
getKB()
|
java.util.TreeSet |
getRelationTypeNames()
|
StringType |
getRelationtypes()
|
private int |
graphLocation(GraphType g)
Return the specified graph's index in the list or -1 if it is not present. |
void |
linkConceptTypes(java.lang.String superTypeName,
java.lang.String typeName)
Add a concept type to the hierarchy if it has not already been added, and add an immediate supertype. |
void |
linkRelationTypes(java.lang.String superTypeName,
java.lang.String typeName)
Add a relation type to the hierarchy if it has not already been added, and add an immediate supertype. |
GraphType |
projectionMatch(GraphType g)
Does the specified graph project onto a graph in the set? |
void |
retract(GraphType g)
Retract a graph, first binding coreference variables. |
void |
retract(GraphType g,
boolean bindVars)
Retract a graph from this knowledge base based upon structural equivalence. |
java.lang.String |
toString()
|
Methods inherited from class cgp.runtime.Type |
addOp,
andOp,
divideOp,
eqOp,
geOp,
getAttr,
getKBStack,
getNthOp,
getScopeStack,
getType,
gtOp,
invokeMemberFunc,
isOp,
leOp,
ltOp,
modulusOp,
multiplyOp,
negateOp,
neOp,
notOp,
operationError,
orOp,
setAttr,
setKBStack,
setNthOp,
setScopeStack,
setType,
subtractOp |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static java.lang.String KBASE_NAME
private notio.KnowledgeBase kb
private notio.ConceptTypeHierarchy conceptTypes
private notio.RelationTypeHierarchy relationTypes
private java.util.TreeSet conceptTypeNames
private java.util.TreeSet relationTypeNames
private java.util.LinkedList graphs
private Namespace corefVars
Constructor Detail |
public KBase()
public KBase(KBase otherKBase)
Method Detail |
private java.lang.String describeConceptTypes()
private java.lang.String describeRelationTypes()
private int graphLocation(GraphType g)
public notio.KnowledgeBase getKB()
public java.util.LinkedList getAssertedGraphs()
public Namespace getCorefVars()
public java.util.TreeSet getConceptTypeNames()
public java.util.TreeSet getRelationTypeNames()
public java.lang.String toString()
public void addConceptType(java.lang.String typeName)
public void linkConceptTypes(java.lang.String superTypeName, java.lang.String typeName)
public void addRelationType(java.lang.String typeName)
public void linkRelationTypes(java.lang.String superTypeName, java.lang.String typeName)
public void bindCorefVars(GraphType g)
public void assert(GraphType g, boolean bindVars)
public void retract(GraphType g, boolean bindVars)
public void assert(GraphType g)
public void retract(GraphType g)
public boolean exactMatch(GraphType g)
public GraphType projectionMatch(GraphType g)
public void addCorefVarMapping(java.lang.String name, Type value)
public Type getCorefVarValue(java.lang.String name)
public ListType getGraphs()
public StringType getConcepttypes()
public StringType getRelationtypes()
public ListType getCorefvars()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |