|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface OntologyElement
This class represents an ontology element. Such ontology elements include individuals, concepts and relations. Each ontology element corresponds to a word which has one or more word forms. Word forms are identified by a number (the word form id).
| Method Summary | |
|---|---|
Article |
getArticle()
Returns the article of this ontology element. |
java.lang.String[] |
getHeadwords()
Returns the headwords that are used in the GUI (title, index, etc) to refer to this ontology element. |
long |
getId()
Returns the numerical id of this ontology element. |
java.lang.String |
getInternalType()
Returns the word type as it is used internally. |
Ontology |
getOntology()
Returns the ontology of this ontology element. |
java.lang.String |
getType()
Returns the word type as it is shown to the user. |
java.lang.String |
getWord()
Returns the main word form. |
java.lang.String |
getWord(int wordFormID)
Returns the word form for the given word form id. |
java.lang.String[] |
getWords()
Returns an array of all word forms. |
void |
initArticle(Article article)
Initializes the article of this ontology element. |
void |
initId(long id)
Initializes the id of this ontology element. |
void |
initOntology(Ontology ontology)
Initializes the ontology of this ontology element. |
java.lang.String |
serializeWords()
Returns the word forms of this ontology element in a serialized form. |
void |
setWords(java.lang.String serializedWords)
Sets the word forms. |
| Method Detail |
|---|
void initId(long id)
id - The id.void initOntology(Ontology ontology)
ontology - The ontology.void initArticle(Article article)
article - The article.long getId()
Ontology getOntology()
Article getArticle()
java.lang.String[] getWords()
java.lang.String getWord(int wordFormID)
wordFormID - The word form id.
java.lang.String getWord()
java.lang.String[] getHeadwords()
java.lang.String getInternalType()
void setWords(java.lang.String serializedWords)
serializedWords - The serialized word forms to be set.java.lang.String serializeWords()
java.lang.String getType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||