|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.uzh.ifi.attempto.acewiki.core.AbstractStatement
ch.uzh.ifi.attempto.acewiki.core.AbstractSentence
ch.uzh.ifi.attempto.acewiki.core.MonolingualSentence
ch.uzh.ifi.attempto.acewiki.aceowl.ACESentence
public abstract class ACESentence
This class represents an ACE sentence, which can be either a declarative sentence or a question.
| Constructor Summary | |
|---|---|
protected |
ACESentence(java.lang.String serialized)
Initializes a new ACE sentence. |
protected |
ACESentence(TextContainer textContainer)
Initializes a new ACE sentence. |
| Method Summary | |
|---|---|
boolean |
contains(OntologyElement e)
Checks whether the sentence contains the given ontology element (no matter which word form). |
java.util.List<SentenceDetail> |
getDetails()
Returns a list of sentence details to be shown to the user. |
java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> |
getOWLAxioms()
Returns a set of OWL axioms that represent this sentence. |
ch.uzh.ifi.attempto.ape.ACEParserResult |
getParserResult()
Returns the parser result object. |
java.lang.String |
getPrettyOWL()
Returns a pretty-printed OWL representation of this sentence. |
protected TextContainer |
getTextContainer()
Returns a text container with the text of this sentence in the only available language. |
java.util.List<TextElement> |
getTextElements()
Returns a list of text elements that represent the tokens of this sentence. |
boolean |
isOWL()
Returns true if this sentence has an OWL representation. |
boolean |
isOWLSWRL()
Returns true if this sentence has an OWL or SWRL representation. |
boolean |
isReasonable()
Returns true if this sentence can participate in reasoning. |
java.lang.String |
serialize()
Returns a serialization of the statement. |
void |
setIntegrated(boolean integrated)
Informs the sentence object whether it is integrated into the ontology or not. |
void |
update()
This method is called whenever some words of the sentence are modified. |
| Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.MonolingualSentence |
|---|
getDetails, getText, getTextContainer, getTextElements, getTextOperator |
| Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.AbstractSentence |
|---|
getText, isImmutable, isIntegrated |
| Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.AbstractStatement |
|---|
getArticle, getDefaultLanguage, getEngine, getLanguageHandler, getOntology, getTextOperator, init, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ch.uzh.ifi.attempto.acewiki.core.Sentence |
|---|
getDetails, getTextElements, isImmutable, isIntegrated |
| Methods inherited from interface ch.uzh.ifi.attempto.acewiki.core.Statement |
|---|
getArticle, getOntology, getText, init |
| Constructor Detail |
|---|
protected ACESentence(java.lang.String serialized)
serialized - The serialized representation of the sentence.protected ACESentence(TextContainer textContainer)
textContainer - The text container with the sentence text.| Method Detail |
|---|
public java.util.List<TextElement> getTextElements()
MonolingualSentence
getTextElements in class MonolingualSentenceprotected TextContainer getTextContainer()
MonolingualSentence
getTextContainer in class MonolingualSentencepublic ch.uzh.ifi.attempto.ape.ACEParserResult getParserResult()
public java.lang.String getPrettyOWL()
OWLSentence
getPrettyOWL in interface OWLSentencepublic boolean isReasonable()
Sentence
isReasonable in interface Sentencepublic boolean isOWL()
OWLSentence
isOWL in interface OWLSentencepublic boolean isOWLSWRL()
OWLSentence
isOWLSWRL in interface OWLSentencepublic java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> getOWLAxioms()
OWLSentence
getOWLAxioms in interface OWLSentencepublic void update()
Sentence
update in interface Sentencepublic void setIntegrated(boolean integrated)
Sentence
setIntegrated in interface SentencesetIntegrated in class AbstractSentenceintegrated - true if the sentence is integrated into the ontology.public boolean contains(OntologyElement e)
Sentence
contains in interface Sentencee - The ontology element.
public java.lang.String serialize()
Statement
serialize in interface Statementpublic java.util.List<SentenceDetail> getDetails()
MonolingualSentence
getDetails in class MonolingualSentence
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||