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

All Known Subinterfaces:
ACEOWLOntoElement, AnswerElement, Concept, Individual, Relation
All Known Implementing Classes:
AbstractOntologyElement, AbstractOWLOntoElement, DummyOntologyElement, NounConcept, OfRelation, OWLConcept, OWLIndividual, OWLRelation, ProperNameIndividual, TrAdjRelation, VerbRelation

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).

Author:
Tobias Kuhn

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

initId

void initId(long id)
Initializes the id of this ontology element.

Parameters:
id - The id.

initOntology

void initOntology(Ontology ontology)
Initializes the ontology of this ontology element.

Parameters:
ontology - The ontology.

initArticle

void initArticle(Article article)
Initializes the article of this ontology element.

Parameters:
article - The article.

getId

long getId()
Returns the numerical id of this ontology element.

Returns:
The id.

getOntology

Ontology getOntology()
Returns the ontology of this ontology element.

Returns:
The ontology.

getArticle

Article getArticle()
Returns the article of this ontology element.

Returns:
The article.

getWords

java.lang.String[] getWords()
Returns an array of all word forms.

Returns:
An array containing all word forms.

getWord

java.lang.String getWord(int wordFormID)
Returns the word form for the given word form id.

Parameters:
wordFormID - The word form id.
Returns:
The word form.

getWord

java.lang.String getWord()
Returns the main word form.

Returns:
The word form.

getHeadwords

java.lang.String[] getHeadwords()
Returns the headwords that are used in the GUI (title, index, etc) to refer to this ontology element. At least one headword is required.

Returns:
The headwords.

getInternalType

java.lang.String getInternalType()
Returns the word type as it is used internally.

Returns:
The internal word type.

setWords

void setWords(java.lang.String serializedWords)
Sets the word forms.

Parameters:
serializedWords - The serialized word forms to be set.

serializeWords

java.lang.String serializeWords()
Returns the word forms of this ontology element in a serialized form.

Returns:
The serialized word forms.

getType

java.lang.String getType()
Returns the word type as it is shown to the user.

Returns:
The word type.


Copyright 2008-2012, AceWiki developers