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

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

public abstract class Concept
extends OntologyElement

This abstract class represents a concept (other terminologies call it "unary relation", "class", or "type").

Author:
Tobias Kuhn

Constructor Summary
protected Concept()
          Initializes the concept.
 
Method Summary
 boolean areIndividualsCached()
          Returns true if the individuals of this concept are cached and up-to-date and thus do not have to be recalculated.
 boolean areSubConceptsCached()
          Returns true if the sub-concepts of this concept are cached and up-to-date and thus do not have to be recalculated.
 boolean areSuperConceptsCached()
          Returns true if the suber-concepts of this concept are cached and up-to-date and thus do not have to be recalculated.
 java.util.List<Individual> getCachedIndividuals()
          Returns the cached individuals or null if there are no cached individuals.
 java.util.List<Concept> getCachedSubConcepts()
          Returns the cached sub-concepts or null if there are no cached sub-concepts.
 java.util.List<Concept> getCachedSuperConcepts()
          Returns the cached super-concepts or null if there are no cached super-concepts.
 java.util.List<Individual> getIndividuals()
          Calculates all individuals that belong to this concept.
 java.util.List<Concept> getSubConcepts()
          Calculates all sub-concepts of this concept.
 java.util.List<Concept> getSuperConcepts()
          Calculates all super-concepts of this concept.
 
Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.ontology.OntologyElement
add, add, changeWords, compareTo, edit, edit, getHeadword, getIndexEntries, getInternalType, getOntology, getPrettyWord, getSentences, getStatements, getType, getURI, getURISuffix, getWord, getWord, getWords, log, registerAt, remove, setWords, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Concept

protected Concept()
Initializes the concept.

Method Detail

getIndividuals

public java.util.List<Individual> getIndividuals()
Calculates all individuals that belong to this concept.

Returns:
A list of all individuals of this concept.
See Also:
Ontology.getIndividuals(Concept)

getCachedIndividuals

public java.util.List<Individual> getCachedIndividuals()
Returns the cached individuals or null if there are no cached individuals. The returned individuals might not be up-to-date.

Returns:
A list of the cached individuals of this concept.

areIndividualsCached

public boolean areIndividualsCached()
Returns true if the individuals of this concept are cached and up-to-date and thus do not have to be recalculated.

Returns:
true if the individuals are cached.

getSuperConcepts

public java.util.List<Concept> getSuperConcepts()
Calculates all super-concepts of this concept.

Returns:
A list of all super-concepts.
See Also:
Ontology.getSuperConcepts(Concept)

getCachedSuperConcepts

public java.util.List<Concept> getCachedSuperConcepts()
Returns the cached super-concepts or null if there are no cached super-concepts. The returned super-concepts might not be up-to-date.

Returns:
A list of the cached super-concepts of this concept.

areSuperConceptsCached

public boolean areSuperConceptsCached()
Returns true if the suber-concepts of this concept are cached and up-to-date and thus do not have to be recalculated.

Returns:
true if the super-concepts are cached.

getSubConcepts

public java.util.List<Concept> getSubConcepts()
Calculates all sub-concepts of this concept.

Returns:
A list of all sub-concepts.
See Also:
Ontology.getSubConcepts(Concept)

getCachedSubConcepts

public java.util.List<Concept> getCachedSubConcepts()
Returns the cached sub-concepts or null if there are no cached sub-concepts. The returned sub-concepts might not be up-to-date.

Returns:
A list of the cached sub-concepts of this concept.

areSubConceptsCached

public boolean areSubConceptsCached()
Returns true if the sub-concepts of this concept are cached and up-to-date and thus do not have to be recalculated.

Returns:
true if the sub-concepts are cached.


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