aminePlatform.knowledgeBase
Class KnowledgeBase
java.lang.Object
aminePlatform.kernel.ontology.Ontology
aminePlatform.knowledgeBase.KnowledgeBase
- All Implemented Interfaces:
- Graph, java.io.Serializable, SynergyTypeConstants
- public class KnowledgeBase
- extends Ontology
Title: KnowledgeBase Class
Description: KnowledgeBase has an Ontology support/foundation. We implement this fact
by considering a KnowledgeBase as a specialization of an Ontology. Knowledge could be
a graph of Situations and/or Rules. The root of such a KnowledgeBase is kbRoot.
Copyright : Copyright (c) Adil KABBAJ 2004-2009
- See Also:
- Serialized Form
Fields inherited from interface aminePlatform.kernel.SynergyTypeConstants |
ADD_IDENT, ADD_TYPE, AND_IDENT, AND_TYPE, ARITHMETIC_IDENT, ARITHMETIC_OPERS, ARITHMETIC_TYPE, ASSIGN_IDENT, ASSIGN_TYPE, BOOLEAN_IDENT, BOOLEAN_OPER_IDENT, BOOLEAN_OPER_TYPE, BOOLEAN_OPERS, BOOLEAN_TYPE, CG_IDENT, CG_TYPE, DATA_IDENT, DATA_TREATMENT, DATA_TYPE, DIF_IDENT, DIF_TYPE, DIV_IDENT, DIV_TYPE, DIVD_IDENT, EQUAL_IDENT, EQUAL_TYPE, FUNC_TYPE, FUNCTION_IDENT, GRD_IDENT, GRD_RELTYPE, GRD1_IDENT, GRD1_RELTYPE, GRTEQ_IDENT, GRTTHAN_IDENT, IN_IDENT, IN_OUT_IDENT, IN_OUT_OPERS, IN_OUT_TYPE, IN_RELTYPE, INF_IDENT, INF_TYPE, INFEQ_IDENT, INFEQ_TYPE, INT_IDENT, INT_TYPE, LAZY_IDENT, LAZY_TYPE, LESSEQ_IDENT, LESSTHAN_IDENT, LIST_IDENT, LIST_TYPE, MINUS_IDENT, MUL_IDENT, MUL_TYPE, MULT_IDENT, NEXT_IDENT, NEXT_RELTYPE, NOT_IDENT, NOT_TYPE, NOTEQ_IDENT, NOTEQ_TYPE, NOTEQL_IDENT, NUMBER_DATA, NUMBER_IDENT, NUMBER_TYPE, OBJECT_IDENT, OBJECT_TYPE, OPER_TYPE, OPERATION_IDENT, OR_IDENT, OR_TYPE, OUT_IDENT, OUT_RELTYPE, PLUS_IDENT, PRIMITIVE_FUNCTIONS, PROC_TYPE, PROCEDURE_IDENT, PROCESS_IDENT, PROCS_TYPE, READ_IDENT, READ_TYPE, REAL_IDENT, REAL_TYPE, RELATIONAL_IDENT, RELATIONAL_OPERS, RELATIONAL_TYPE, RELATIONS, SQRT_IDENT, SQRT_TYPE, STRING_IDENT, STRING_TYPE, SUB_IDENT, SUB_TYPE, SUP_IDENT, SUP_TYPE, SUPEQ_IDENT, SUPEQ_TYPE, SYN_REL_RELTYPE, SYN_TYP_RELTYPE, SYNERGY_DATA, SYNERGY_IDENTIFIERS, SYNERGY_OPERATIONS, SYNERGY_REL_IDENT, SYNERGY_TREATMENT, SYNERGY_TYPE_IDENT, TREATMENT_IDENT, TREATMENT_TYPE, TYPE_ARITHMETIC_OPERS, TYPE_BOOLEAN_OPERS, TYPE_IN_OUT_OPERS, TYPE_PRIMITIVE_FUNCTIONS, TYPE_RELATIONAL_OPERS, WRITE_IDENT, WRITE_TYPE |
Methods inherited from class aminePlatform.kernel.ontology.Ontology |
addEdge, addLexicon, addNode, destroyOntologyGraph, getArrayLexicons, getEdges, getLanguages, getLanguagesInArray, getLexicon, getLexicons, getMainLanguage, getMainLexicon, getMixedLanguage, getName, getNbrLexicons, getNodesAndNbr, getPath, getRelationRoot, getRoot, getSynergyRelIdent, getSynergyRelType, hasIdentifiers, importOntology, isASynergyIdent, isEmpty, isKnownLanguage, isMainLanguage, isMainLexicon, isMixedLanguage, isNewLanguage, isNewLanguageName, isRoot, isSynergyRelation, isSynergyRelation, load, loadOntologyFromXML, loadSynergyOntology, makeEmpty, newNode, newNode, open, openOntologyFromXML, outputDocumentToFile, parseOntologyFromXML, parseXMLSynonyms, populate, removeCS, removeEdge, removeLexicon, removeNode, save, saveInXML, setLexicons, setMainLexicon, setMixedLanguage, setName, setPath, setRelationRoot, setRoot, store, storeInXML, toXMLWithIndepthTraversal |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KnowledgeBase
public KnowledgeBase()
throws OntologyException
KnowledgeBase
public KnowledgeBase(Ontology ontology)
throws OntologyException
KnowledgeBase
public KnowledgeBase(Type ontologyRoot)
throws OntologyException
KnowledgeBase
public KnowledgeBase(Type ontologyRoot,
RelationType relationRoot)
throws OntologyException
KnowledgeBase
public KnowledgeBase(Identifier ontologyRootIdentifier,
Identifier relationRootIdentifier,
Identifier mainLanguage)
throws OntologyException
KnowledgeBase
public KnowledgeBase(Identifier ontologyRootIdentifier,
Identifier relationRootIdentifier,
Identifier mainLanguage,
java.lang.Object[] languages)
throws java.lang.Exception
getKBRoot
public IndexedType getKBRoot()
setKBRoot
public void setKBRoot(IndexedType kbRoot)
getKBFilePath
public java.lang.String getKBFilePath()
setKBFilePath
public void setKBFilePath(java.lang.String kbFilePath)
getShowKBPart
public boolean getShowKBPart()
setShowKBPart
public void setShowKBPart(boolean showKBPart)
showKBPart
public boolean showKBPart()
getIndexedType
public IndexedType getIndexedType(Type type)
finalize
public void finalize()
- Description copied from class:
Ontology
- destroy the whole ontology
- Overrides:
finalize
in class Ontology
clear
public void clear()
- Description copied from class:
Ontology
- Clear will destroy the content of the current ontology, including their lexicons,
and it calls the garbage collector System.gc()
- Specified by:
clear
in interface Graph
- Overrides:
clear
in class Ontology
getNodes
public java.util.Enumeration getNodes()
- Specified by:
getNodes
in interface Graph
- Overrides:
getNodes
in class Ontology
getSize
public int getSize()
- Specified by:
getSize
in interface Graph
- Overrides:
getSize
in class Ontology
getEdges
public java.util.Enumeration getEdges()
- Specified by:
getEdges
in interface Graph
- Overrides:
getEdges
in class Ontology
loadKBFromXML
public static KnowledgeBase loadKBFromXML(java.lang.String filePath,
ParseCSDescription parseCSDescr)
throws java.lang.Exception
- Throws:
java.lang.Exception
openKBFromXML
public static KnowledgeBase openKBFromXML(java.lang.String filePath,
ParseCSDescription parseCSDescr)
throws java.lang.Exception
- Throws:
java.lang.Exception
parseKBFromXML
public static KnowledgeBase parseKBFromXML(java.lang.String filePath,
ParseCSDescription parseCSDescr)
save
public void save()
throws java.lang.Exception
- Overrides:
save
in class Ontology
- Throws:
java.lang.Exception
toXML
protected void toXML(java.lang.String filePath)
- Overrides:
toXML
in class Ontology