org.semanticweb.kaon2.api.owl.elements
Interface OWLEntity

All Superinterfaces:
Entity
All Known Subinterfaces:
AnnotationProperty, DataProperty, Datatype, Individual, ObjectProperty, OWLClass

public interface OWLEntity
extends Entity

Represents a entity in an OWL ontology. An entity is an object with an URI.


Method Summary
 java.util.Set<Annotation> getAnnotations(Ontology ontology)
          Returns the set of annotations of this entity.
 java.lang.Object getAnnotationValue(Ontology ontology, AnnotationProperty annotationProperty)
          Returns the value of annotation for given annotation property.
 java.util.Map<AnnotationProperty,java.util.Set<java.lang.Object>> getAnnotationValues(Ontology ontology)
          Returns the set of annotations of this entity grouped by annotation properties.
 java.util.Set<java.lang.Object> getAnnotationValues(Ontology ontology, AnnotationProperty annotationProperty)
          Returns the set of annotation values of this entity for given annotation property.
 
Methods inherited from interface org.semanticweb.kaon2.api.Entity
accept, getURI, toString
 

Method Detail

getAnnotations

java.util.Set<Annotation> getAnnotations(Ontology ontology)
                                         throws KAON2Exception
Returns the set of annotations of this entity.

Parameters:
ontology - the ontology in which the search is perfromed
Returns:
the set of annotations
Throws:
KAON2Exception - thrown if there is an error

getAnnotationValues

java.util.Map<AnnotationProperty,java.util.Set<java.lang.Object>> getAnnotationValues(Ontology ontology)
                                                                                      throws KAON2Exception
Returns the set of annotations of this entity grouped by annotation properties.

Parameters:
ontology - the ontology in which the search is perfromed
Returns:
the value of annotations grouped by annotation properties
Throws:
KAON2Exception - thrown if there is an error

getAnnotationValues

java.util.Set<java.lang.Object> getAnnotationValues(Ontology ontology,
                                                    AnnotationProperty annotationProperty)
                                                    throws KAON2Exception
Returns the set of annotation values of this entity for given annotation property.

Parameters:
ontology - the ontology in which the search is perfromed
annotationProperty - the annotation property
Returns:
the values of annotations with given annotation property
Throws:
KAON2Exception - thrown if there is an error

getAnnotationValue

java.lang.Object getAnnotationValue(Ontology ontology,
                                    AnnotationProperty annotationProperty)
                                    throws KAON2Exception
Returns the value of annotation for given annotation property. If there are multiple values, one is returned arbitrarily. If there are no values, null is returned. Note that this method does allow for distinguishing "no value" from "null-value" situations.

Parameters:
ontology - the ontology in which the search is perfromed
annotationProperty - the annotation property
Returns:
the value of annotations with given annotation property
Throws:
KAON2Exception