public class KnowledgeBase
extends Object
Modifier and Type | Field and Description |
---|---|
private TypeHierarchy |
conceptHierarchy |
private MarkerSet |
markerSet |
private String |
name |
private TypeHierarchy |
relationHierarchy |
Constructor and Description |
---|
KnowledgeBase(String newname)
Creates an "empty" knowledge base.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
commit(Object go)
Method to "add" an object to this KnowledgeBase.
|
TypeHierarchy |
getConceptTypeHierarchy() |
MarkerSet |
getMarkerSet() |
String |
getName() |
TypeHierarchy |
getRelationTypeHierarchy() |
protected void |
init(String n) |
void |
setName(String name) |
String |
showConceptTypeHierarchy() |
String |
showRelationTypeHierarchy() |
void |
unCommit(Object go)
Method to "delete" an object from this KnowledgeBase.
|
private String name
private TypeHierarchy conceptHierarchy
private TypeHierarchy relationHierarchy
private MarkerSet markerSet
public KnowledgeBase(String newname)
TypeHierarchy#setTop(kb.hierarchy.TypeHierarchyNode)
,
TypeHierarchy#setBottom(kb.hierarchy.TypeHierarchyNode)
protected void init(String n)
public String showConceptTypeHierarchy()
public String showRelationTypeHierarchy()
public TypeHierarchy getRelationTypeHierarchy()
public TypeHierarchy getConceptTypeHierarchy()
public MarkerSet getMarkerSet()
public String getName()
public void setName(String name)
public void clear()
public void commit(Object go) throws KBException
go
- KBException
public void unCommit(Object go) throws KBException
go
- KBException