ch.uzh.ifi.attempto.acewiki.core
Interface Sentence

All Superinterfaces:
Statement
All Known Subinterfaces:
Declaration, OWLDeclaration, OWLQuestion, OWLSentence, Question
All Known Implementing Classes:
AbstractSentence, ACEDeclaration, ACEQuestion, ACESentence, GFDeclaration, MonolingualSentence

public interface Sentence
extends Statement

This interface represents a sentence in the given controlled natural language. It includes declarative sentences as well as questions.

Author:
Tobias Kuhn

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

getTextElements

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.

Parameters:
language - The language.
Returns:
A token list.

isReasonable

boolean isReasonable()
Returns true if this sentence can participate in reasoning.

Returns:
true if this sentence can participate in reasoning.

isIntegrated

boolean isIntegrated()
Returns true if the sentence is integrated into the ontology.

Returns:
true if the sentence is integrated into the ontology.

setIntegrated

void setIntegrated(boolean integrated)
Informs the sentence object whether it is integrated into the ontology or not. This method should only be called from the ontology or an ontology loader.

Parameters:
integrated - true if the sentence is integrated into the ontology.

contains

boolean contains(OntologyElement e)
Checks whether the sentence contains the given ontology element (no matter which word form).

Parameters:
e - The ontology element.
Returns:
true if the ontology element occurs in this sentence.

update

void update()
This method is called whenever some words of the sentence are modified.


isImmutable

boolean isImmutable()
Returns whether the sentence can be changed or is immutable.

Returns:
true if the sentence cannot be changed.

getDetails

java.util.List<SentenceDetail> getDetails(java.lang.String language)
Returns a list of sentence details in the given language.

Parameters:
language - The language.
Returns:
A list of sentence details.


Copyright 2008-2012, AceWiki developers