|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lirmm.graphik.cogui.core.model.KnowledgeBase
public class KnowledgeBase
The Class KnowledgeBase.
| Constructor Summary | |
|---|---|
KnowledgeBase(Vocabulary voc)
Instantiates a new knowledge base. |
|
| Method Summary | |
|---|---|
void |
addDefaultRule(Rule rule)
|
void |
addGraph(CGraph graph)
Adds the graph. |
void |
addPConstraint(Rule pconst)
|
void |
addRTScript(Script script)
|
void |
addRule(Rule rule)
Adds the rule. |
void |
addScript(Script script)
Adds the script. |
void |
cleanUndefTypes()
resolve undefined types and remove all undefined types that are not used |
void |
clear()
Clear. |
boolean |
delete(CgObject cog)
Delete. |
Rule |
getDefaultRule(java.lang.String idr)
|
RuleSet |
getDefaultRuleSet()
|
CGraph |
getFactGraph(java.lang.String idg)
Gets the fact graph. |
GraphSet |
getFactGraphSet()
Gets the fact graph set. |
GraphSet |
getGraphSetOf(CGraph graph)
Gets the graph set of. |
CGraph |
getIndividualGraph(java.lang.String idg)
Gets the individual graph. |
GraphSet |
getIndividualGraphSet()
Gets the individual graph set. |
GraphSet |
getNConstraintGraphSet()
|
CGraph |
getNegativeConstraint(java.lang.String idg)
|
java.lang.String |
getNS(java.lang.String prefix)
|
CGraph |
getOtherGraph(java.lang.String idg)
Gets the other graph. |
GraphSet |
getOtherGraphSet()
Gets the other graph set. |
CGraph |
getPatternGraph(java.lang.String idg)
Gets the pattern graph. |
GraphSet |
getPatternGraphSet()
Gets the pattern graph set. |
java.util.ArrayList<CGraph> |
getPatterns(java.lang.String type)
Gets the patterns. |
RuleSet |
getPConstraintGraphSet()
|
Rule |
getPositiveConstraint(java.lang.String idg)
|
java.lang.String |
getPrefixOf(java.lang.String id)
|
CGraph |
getPrototypicGraph(java.lang.String idg)
Gets the prototypic graph. |
GraphSet |
getPrototypicGraphSet()
Gets the prototypic graph set. |
CGraph |
getQueryGraph(java.lang.String idg)
Gets the query graph. |
GraphSet |
getQueryGraphSet()
Gets the query graph set. |
Script |
getRTScript(java.lang.String id)
|
java.util.Map<java.lang.String,Script> |
getRTScriptMap()
|
java.util.Collection<Script> |
getRTScripts()
|
Rule |
getRule(java.lang.String idr)
Gets the rule. |
RuleSet |
getRuleSet()
Gets the rule set. |
Script |
getScript(java.lang.String id)
Gets the script. |
java.util.Collection<Script> |
getScripts()
Gets the collection of all scripts. |
Vocabulary |
getVocabulary()
Gets the vocabulary. |
java.util.Iterator<CGraph> |
IteratorDefaultRules()
|
java.util.Iterator<CGraph> |
iteratorFacts()
Iterator for facts. |
java.util.Iterator<GraphSet> |
iteratorGraphSet()
|
java.util.Iterator<CGraph> |
IteratorNConstraints()
|
java.util.Iterator<java.lang.String> |
iteratorNSPrefix()
a sorted iterator for declared prefixes |
java.util.Iterator<CGraph> |
iteratorPatterns()
Iterator patterns. |
java.util.Iterator<CGraph> |
IteratorPConstraints()
|
java.util.Iterator<CGraph> |
iteratorQueries()
Iterator for queries. |
java.util.Iterator<CGraph> |
IteratorRules()
Iterator rules. |
void |
removeAllNS()
|
void |
removeNS(java.lang.String prefix)
|
void |
removeRTScript(java.lang.String id)
|
void |
removeScript(java.lang.String id)
|
int |
removeUnusedIndividuals()
|
Rule |
searchDefaultRuleByLabel(java.lang.String ruleLabel)
|
GraphSet |
searchGraphSetByLabel(java.lang.String graphLabel)
|
GraphSet |
searchGraphSetOf(java.lang.String graphId)
Search graph set of. |
Rule |
searchRuleByLabel(java.lang.String ruleLabel)
|
Script |
searchScriptByLabel(java.lang.String name)
|
Script |
searchScriptByLabel(java.lang.String name,
java.lang.String setName)
|
void |
setNameSpace(java.lang.String prefix,
java.lang.String ns)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KnowledgeBase(Vocabulary voc)
voc - the voc| Method Detail |
|---|
public java.lang.String getNS(java.lang.String prefix)
public java.lang.String getPrefixOf(java.lang.String id)
public void setNameSpace(java.lang.String prefix,
java.lang.String ns)
public java.util.Iterator<java.lang.String> iteratorNSPrefix()
public void removeNS(java.lang.String prefix)
public void removeAllNS()
public Vocabulary getVocabulary()
public void clear()
public void addGraph(CGraph graph)
graph - the graphpublic GraphSet getGraphSetOf(CGraph graph)
graph - the graph
public Rule searchRuleByLabel(java.lang.String ruleLabel)
public Rule searchDefaultRuleByLabel(java.lang.String ruleLabel)
public Script searchScriptByLabel(java.lang.String name)
public Script searchScriptByLabel(java.lang.String name,
java.lang.String setName)
public GraphSet searchGraphSetOf(java.lang.String graphId)
graphId - the graph id
public GraphSet searchGraphSetByLabel(java.lang.String graphLabel)
public void addRule(Rule rule)
rule - the rulepublic void addDefaultRule(Rule rule)
public void addPConstraint(Rule pconst)
public CGraph getFactGraph(java.lang.String idg)
idg - the idg
public CGraph getQueryGraph(java.lang.String idg)
idg - the idg
public CGraph getPrototypicGraph(java.lang.String idg)
idg - the idg
public CGraph getPatternGraph(java.lang.String idg)
idg - the idg
public CGraph getIndividualGraph(java.lang.String idg)
idg - the idg
public CGraph getOtherGraph(java.lang.String idg)
idg - the idg
public CGraph getNegativeConstraint(java.lang.String idg)
public Rule getPositiveConstraint(java.lang.String idg)
public Rule getRule(java.lang.String idr)
idr - the idr
public Rule getDefaultRule(java.lang.String idr)
public java.util.Iterator<CGraph> iteratorFacts()
public java.util.Iterator<CGraph> iteratorQueries()
public java.util.Iterator<CGraph> iteratorPatterns()
public java.util.Iterator<CGraph> IteratorRules()
public java.util.Iterator<CGraph> IteratorDefaultRules()
public java.util.Iterator<CGraph> IteratorPConstraints()
public java.util.Iterator<CGraph> IteratorNConstraints()
public GraphSet getIndividualGraphSet()
public GraphSet getFactGraphSet()
public GraphSet getQueryGraphSet()
public GraphSet getPrototypicGraphSet()
public GraphSet getPatternGraphSet()
public GraphSet getNConstraintGraphSet()
public RuleSet getPConstraintGraphSet()
public GraphSet getOtherGraphSet()
public RuleSet getRuleSet()
public RuleSet getDefaultRuleSet()
public boolean delete(CgObject cog)
cog - the cog
public java.util.ArrayList<CGraph> getPatterns(java.lang.String type)
type - the type
public java.util.Iterator<GraphSet> iteratorGraphSet()
public int removeUnusedIndividuals()
public void cleanUndefTypes()
public java.util.Collection<Script> getScripts()
public java.util.Collection<Script> getRTScripts()
public java.util.Map<java.lang.String,Script> getRTScriptMap()
public Script getScript(java.lang.String id)
id - the id
public Script getRTScript(java.lang.String id)
public void addScript(Script script)
script - the scriptpublic void removeScript(java.lang.String id)
public void removeRTScript(java.lang.String id)
public void addRTScript(Script script)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||