ch.uzh.ifi.attempto.acewiki.core.ontology
Class NounConcept

java.lang.Object
  extended by ch.uzh.ifi.attempto.acewiki.core.ontology.OntologyElement
      extended by ch.uzh.ifi.attempto.acewiki.core.ontology.Concept
          extended by ch.uzh.ifi.attempto.acewiki.core.ontology.NounConcept
All Implemented Interfaces:
java.lang.Comparable<OntologyElement>

public class NounConcept
extends Concept

This class stands for concepts that are represented by nouns. This is the only way how concepts can be represented at the moment, but it is planned to support also adjectives. Noun concepts have two word forms.

0: singular form. 1: plural form.

Examples: ["country", "countries"]; ["woman", "women"].

Author:
Tobias Kuhn

Constructor Summary
NounConcept()
          Creates a new noun concept.
 
Method Summary
protected  void changeWords(java.lang.String... words)
          Changes the word forms without updating the ontology indexes.
 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[] getWords()
          Returns the word forms.
 
Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.ontology.Concept
areIndividualsCached, areSubConceptsCached, areSuperConceptsCached, getCachedIndividuals, getCachedSubConcepts, getCachedSuperConcepts, getIndividuals, getSubConcepts, getSuperConcepts
 
Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.ontology.OntologyElement
add, add, compareTo, edit, edit, getHeadword, getIndexEntries, getOntology, getPrettyWord, getSentences, getStatements, getURI, getURISuffix, 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

NounConcept

public NounConcept()
Creates a new noun concept.

Method Detail

getWords

public java.lang.String[] getWords()
Description copied from class: OntologyElement
Returns the word forms. The position in the array corresponds to the word form id.

Specified by:
getWords in class OntologyElement
Returns:
An array containing the word forms.

changeWords

protected void changeWords(java.lang.String... words)
Description copied from class: OntologyElement
Changes the word forms without updating the ontology indexes. The order reflects the word form ids.

Specified by:
changeWords in class OntologyElement
Parameters:
words - The word forms.

getType

public java.lang.String getType()
Description copied from class: OntologyElement
Returns the word type as it is shown to the user. Newer versions of AceWiki can savely change this value.

Specified by:
getType in class OntologyElement
Returns:
The word type.

getInternalType

public java.lang.String getInternalType()
Description copied from class: OntologyElement
Returns the word type as it is used internally. Changing this value in newer versions of AceWiki breaks backwards compatibility for loading ontologies.

Specified by:
getInternalType in class OntologyElement
Returns:
The internal word type.


Copyright 2008-2009, Attempto Group, University of Zurich (see http://attempto.ifi.uzh.ch)