|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.acewiki.core.Ontology
public class Ontology
This class represents an AceWiki ontology which consists of ontology element definitions and of ontological statements. Each ontology element has its own article that consists of ontological statements.
Method Summary | |
---|---|
void |
change(OntologyElement element,
java.lang.String serializedWords)
Changes the word forms of the given ontology element. |
protected void |
commitSentence(Sentence sentence)
Commits the sentence. |
boolean |
contains(OntologyElement ontologyElement)
Returns true if the given ontology element is contained by the ontology (identity check). |
OntologyElement |
get(long id)
Returns the ontology element with the given id, or null if there is no such element. |
OntologyElement |
getElement(java.lang.String name)
Returns the ontology element with the given name, or null if there is no such element. |
AceWikiEngine |
getEngine()
Returns the AceWiki engine. |
java.lang.String |
getName()
Returns the name of the ontology. |
java.util.List<OntologyElement> |
getOntologyElements()
Returns all ontology elements. |
java.lang.String |
getParameter(java.lang.String name)
Returns a parameter value. |
CachingReasoner |
getReasoner()
Returns the reasoner object in the form of a caching reasoner. |
java.util.List<Sentence> |
getReferences(OntologyElement element)
Returns all the sentences that use the given ontology element. |
long |
getStateID()
Returns the state id of the ontology. |
StatementFactory |
getStatementFactory()
Returns the statement factory. |
AceWikiStorage |
getStorage()
Returns the storage object. |
java.lang.String |
getURI()
Returns the URI of the ontology (baseURI + name). |
void |
log(java.lang.String text)
Writes a log entry. |
void |
reassert(Sentence sentence)
This method tries to reassert a sentence that is not yet integrated. |
void |
register(OntologyElement element)
Registers the given ontology element. |
void |
remove(OntologyElement element)
Removes the given ontology element from the ontology. |
void |
retract(Sentence sentence)
This method retracts an integrated sentence so that it is still part of the wiki article but does not participate in reasoning anymore. |
protected void |
retractSentence(Sentence sentence)
Retracts the sentence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public AceWikiEngine getEngine()
public CachingReasoner getReasoner()
public StatementFactory getStatementFactory()
public AceWikiStorage getStorage()
public void register(OntologyElement element)
element
- The ontology element to register.public void remove(OntologyElement element)
element
- The ontology element to be removed.public void change(OntologyElement element, java.lang.String serializedWords)
element
- The ontology element to be changed.serializedWords
- The serialized word forms.public java.util.List<Sentence> getReferences(OntologyElement element)
element
- The ontology element.
public OntologyElement getElement(java.lang.String name)
name
- The name of the ontology element.
public OntologyElement get(long id)
id
- The id of the ontology element.
public java.util.List<OntologyElement> getOntologyElements()
public boolean contains(OntologyElement ontologyElement)
ontologyElement
- The ontology element.
public java.lang.String getName()
public java.lang.String getURI()
protected void commitSentence(Sentence sentence) throws InconsistencyException
sentence
- The sentence to be commited.
InconsistencyException
- if the sentence is inconsistent with the existing sentences.public void reassert(Sentence sentence) throws InconsistencyException
sentence
- The sentence to be reasserted.
InconsistencyException
- if the sentence is inconsistent with the existing sentences.protected void retractSentence(Sentence sentence)
sentence
- The sentence to be retracted.public void retract(Sentence sentence)
sentence
- The sentence to be retracted.public void log(java.lang.String text)
text
- Log text.public long getStateID()
public java.lang.String getParameter(java.lang.String name)
name
- The parameter name.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |