|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Sentence
This interface represents a sentence in the given controlled natural language. It includes declarative sentences as well as questions.
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(java.lang.String language)
Returns a list of sentence details in the given language. |
java.util.List<TextElement> |
getTextElements(java.lang.String language)
Returns a list of text elements that represent the tokens of this sentence in the given language. |
boolean |
isImmutable()
Returns whether the sentence can be changed or is immutable. |
boolean |
isIntegrated()
Returns true if the sentence is integrated into the ontology. |
boolean |
isReasonable()
Returns true if this sentence can participate in reasoning. |
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 interface ch.uzh.ifi.attempto.acewiki.core.Statement |
---|
getArticle, getOntology, getText, init, serialize |
Method Detail |
---|
java.util.List<TextElement> getTextElements(java.lang.String language)
language
- The language.
boolean isReasonable()
boolean isIntegrated()
void setIntegrated(boolean integrated)
integrated
- true if the sentence is integrated into the ontology.boolean contains(OntologyElement e)
e
- The ontology element.
void update()
boolean isImmutable()
java.util.List<SentenceDetail> getDetails(java.lang.String language)
language
- The language.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |