|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.uzh.ifi.attempto.acewiki.core.ontology.OntologyElement
ch.uzh.ifi.attempto.acewiki.core.ontology.Individual
public class Individual
This class represents an individual (in logic called "constant"). AceWiki supports only proper names to represent individuals (and no extensions are planned in this respect). For that reason, this class is proper name specific.
Proper names can be used with a definite article (e.g. "the Nile") or without (e.g. "Egypt").
Proper names have two word forms. The first one is the proper name with the definite article if there is one. The second one is just the bare proper name. In the case of proper names that do not use a definite article, both word forms are identical.
0: proper name, preceded by "the" if used with definite article. 1: bare proper name.
Examples: ["the Nile", "Nile"]; ["Egypt", "Egypt"].
Constructor Summary | |
---|---|
Individual()
Creates a new individual that has no name yet and is not registered to an ontology. |
Method Summary | |
---|---|
boolean |
areConceptsCached()
Returns true if the concepts of this individual are cached and do not have to be recalculated. |
protected void |
changeWords(java.lang.String... words)
Changes the word forms without updating the ontology indexes. |
java.util.List<Concept> |
getConcepts()
Returns all concepts this individual belongs to. |
java.lang.String |
getHeadword()
Returns the headword that is used in the GUI to refer to this ontology element. |
java.lang.String |
getInternalType()
Returns the word type as it is used internally. |
java.lang.String |
getType()
Returns the word type as it is shown to the user. |
java.lang.String |
getURISuffix()
Returns the URI suffix of this ontology element. |
java.lang.String[] |
getWords()
Returns the word forms. |
boolean |
hasDefiniteArticle()
Returns true if the proper name has to be used with the definite article "the". |
Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.ontology.OntologyElement |
---|
add, compareTo, edit, getOntology, getPrettyWord, getSentences, getURI, getWord, getWord, log, registerAt, remove, setWords, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Individual()
Method Detail |
---|
public java.lang.String[] getWords()
OntologyElement
getWords
in class OntologyElement
public java.lang.String getHeadword()
OntologyElement
getHeadword
in class OntologyElement
protected void changeWords(java.lang.String... words)
OntologyElement
changeWords
in class OntologyElement
words
- The word forms.public java.lang.String getType()
OntologyElement
getType
in class OntologyElement
public java.lang.String getInternalType()
OntologyElement
getInternalType
in class OntologyElement
public boolean hasDefiniteArticle()
public java.lang.String getURISuffix()
OntologyElement
getURISuffix
in class OntologyElement
OntologyElement.getURI()
public java.util.List<Concept> getConcepts()
Ontology.getConcepts(Individual)
public boolean areConceptsCached()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |