ch.uzh.ifi.attempto.acewiki.aceowl
Class ACEQuestion
java.lang.Object
ch.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
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
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