ch.uzh.ifi.attempto.acewiki.aceowl
Class ACEQuestion

java.lang.Object
  extended by ch.uzh.ifi.attempto.acewiki.core.AbstractStatement
      extended by ch.uzh.ifi.attempto.acewiki.core.AbstractSentence
          extended by ch.uzh.ifi.attempto.acewiki.core.MonolingualSentence
              extended by ch.uzh.ifi.attempto.acewiki.aceowl.ACESentence
                  extended by ch.uzh.ifi.attempto.acewiki.aceowl.ACEQuestion
All Implemented Interfaces:
Question, Sentence, Statement, OWLQuestion, OWLSentence

public class ACEQuestion
extends ACESentence
implements OWLQuestion

This class represents ACE questions.

Author:
Tobias Kuhn

Constructor Summary
ACEQuestion(java.lang.String serialized)
          Creates a new ACE question.
ACEQuestion(TextContainer textContainer)
          Creates a new ACE question
 
Method Summary
 org.semanticweb.owlapi.model.OWLClassExpression getQuestionOWLClass()
          Returns the OWL class expression for this question.
 org.semanticweb.owlapi.model.OWLNamedIndividual getQuestionOWLIndividual()
          Returns the OWL individual for this question.
 boolean isReasonable()
          Returns true if this sentence can participate in reasoning.
 void update()
          This method is called whenever some words of the sentence are modified.
 
Methods inherited from class ch.uzh.ifi.attempto.acewiki.aceowl.ACESentence
contains, getDetails, getOWLAxioms, getParserResult, getPrettyOWL, getTextContainer, getTextElements, isOWL, isOWLSWRL, serialize, setIntegrated
 
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.owl.OWLSentence
getOWLAxioms, getPrettyOWL, isOWL, isOWLSWRL
 
Methods inherited from interface ch.uzh.ifi.attempto.acewiki.core.Sentence
contains, getDetails, getTextElements, isImmutable, isIntegrated, setIntegrated
 
Methods inherited from interface ch.uzh.ifi.attempto.acewiki.core.Statement
getArticle, getOntology, getText, init, serialize
 

Constructor Detail

ACEQuestion

public ACEQuestion(java.lang.String serialized)
Creates a new ACE question.

Parameters:
serialized - The serialized representation of the question.

ACEQuestion

public ACEQuestion(TextContainer textContainer)
Creates a new ACE question

Parameters:
textContainer - The text container with the question text.
Method Detail

getQuestionOWLClass

public org.semanticweb.owlapi.model.OWLClassExpression getQuestionOWLClass()
Description copied from interface: OWLQuestion
Returns the OWL class expression for this question. All individuals that belong to this class expression can be considered answers to the question.

Specified by:
getQuestionOWLClass in interface OWLQuestion
Returns:
The OWL class expression.

getQuestionOWLIndividual

public org.semanticweb.owlapi.model.OWLNamedIndividual getQuestionOWLIndividual()
Description copied from interface: OWLQuestion
Returns the OWL individual for this question. For questions like "What is Switzerland?", the respective individual ("Switzerland") is returned. In all other cases, null is returned.

Specified by:
getQuestionOWLIndividual in interface OWLQuestion
Returns:
The OWL individual.

update

public void update()
Description copied from interface: Sentence
This method is called whenever some words of the sentence are modified.

Specified by:
update in interface Sentence
Overrides:
update in class ACESentence

isReasonable

public boolean isReasonable()
Description copied from interface: Sentence
Returns true if this sentence can participate in reasoning.

Specified by:
isReasonable in interface Sentence
Overrides:
isReasonable in class ACESentence
Returns:
true if this sentence can participate in reasoning.


Copyright 2008-2012, AceWiki developers