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

All Superinterfaces:
Constant, Entity, OWLEntity, Term

public interface Individual
extends OWLEntity, Constant

Represents an individual in an ontology.


Method Summary
 java.util.Set<DataPropertyMember> getDataPropertyMembersFrom(Ontology ontology)
          Returns the members in a data property where this individual is the origin.
 java.lang.Object getDataPropertyValue(Ontology ontology, DataProperty dataProperty)
          Returns the value of the data property for this individual.
 java.util.Map<DataProperty,java.util.Set<java.lang.Object>> getDataPropertyValues(Ontology ontology)
          Returns the values of data properties sorted by properties.
 java.util.Set<Description> getDescriptionsMemberOf(Ontology ontology)
          Returns the set of descriptions that occur in a ClassMember axiom, where this individual is the individual.
 java.util.Set<Individual> getDifferentIndividuals(Ontology ontology)
          Returns all individuals which are explicitly asserted in a DifferentIndividuals axiom as being different from this individual.
 java.util.Set<ObjectPropertyMember> getObjectPropertyMembersFrom(Ontology ontology)
          Returns the members in an object property where this individual is the origin.
 java.util.Set<ObjectPropertyMember> getObjectPropertyMembersTo(Ontology ontology)
          Returns the members in an object property where this individual is the target.
 Individual getObjectPropertyValue(Ontology ontology, ObjectProperty objectProperty)
          Returns the value of the object property for this individual.
 java.util.Map<ObjectProperty,java.util.Set<Individual>> getObjectPropertyValues(Ontology ontology)
          Returns the values of object properties sorted by properties.
 java.util.Set<Individual> getSameIndividuals(Ontology ontology)
          Returns all individuals which are explicitly asserted in a SameIndividual axiom as being same as this individual.
 
Methods inherited from interface org.semanticweb.kaon2.api.owl.elements.OWLEntity
getAnnotations, getAnnotationValue, getAnnotationValues, getAnnotationValues
 
Methods inherited from interface org.semanticweb.kaon2.api.Entity
accept, getURI, toString
 
Methods inherited from interface org.semanticweb.kaon2.api.rules.Constant
getValue
 
Methods inherited from interface org.semanticweb.kaon2.api.rules.Term
accept, toString
 

Method Detail

getDescriptionsMemberOf

java.util.Set<Description> getDescriptionsMemberOf(Ontology ontology)
                                                   throws KAON2Exception
Returns the set of descriptions that occur in a ClassMember axiom, where this individual is the individual.

Parameters:
ontology - the ontology in which the search is perfromed
Returns:
the set of descriptions which this individual is a member of
Throws:
KAON2Exception - thrown if there is an error

getSameIndividuals

java.util.Set<Individual> getSameIndividuals(Ontology ontology)
                                             throws KAON2Exception
Returns all individuals which are explicitly asserted in a SameIndividual axiom as being same as this individual.

Parameters:
ontology - the ontology in which the search is perfromed
Returns:
the set of individuals which are same to this individual
Throws:
KAON2Exception - thrown if there is an error

getDifferentIndividuals

java.util.Set<Individual> getDifferentIndividuals(Ontology ontology)
                                                  throws KAON2Exception
Returns all individuals which are explicitly asserted in a DifferentIndividuals axiom as being different from this individual.

Parameters:
ontology - the ontology in which the search is perfromed
Returns:
the set of individuals which are different from this individual
Throws:
KAON2Exception - thrown if there is an error

getDataPropertyMembersFrom

java.util.Set<DataPropertyMember> getDataPropertyMembersFrom(Ontology ontology)
                                                             throws KAON2Exception
Returns the members in a data property where this individual is the origin.

Parameters:
ontology - the ontology in which the search is perfromed
Returns:
the set of members in a data property where this individual is the origin
Throws:
KAON2Exception - thrown if there is an error

getObjectPropertyMembersFrom

java.util.Set<ObjectPropertyMember> getObjectPropertyMembersFrom(Ontology ontology)
                                                                 throws KAON2Exception
Returns the members in an object property where this individual is the origin.

Parameters:
ontology - the ontology in which the search is perfromed
Returns:
the set of members in an object property where this individual is the origin
Throws:
KAON2Exception - thrown if there is an error

getObjectPropertyMembersTo

java.util.Set<ObjectPropertyMember> getObjectPropertyMembersTo(Ontology ontology)
                                                               throws KAON2Exception
Returns the members in an object property where this individual is the target.

Parameters:
ontology - the ontology in which the search is perfromed
Returns:
the set of members in an object property where this individual is the target
Throws:
KAON2Exception - thrown if there is an error

getDataPropertyValues

java.util.Map<DataProperty,java.util.Set<java.lang.Object>> getDataPropertyValues(Ontology ontology)
                                                                                  throws KAON2Exception
Returns the values of data properties sorted by properties.

Parameters:
ontology - the ontology in which the search is perfromed
Returns:
the values of data properties sorted by properties
Throws:
KAON2Exception - thrown if there is an error

getObjectPropertyValues

java.util.Map<ObjectProperty,java.util.Set<Individual>> getObjectPropertyValues(Ontology ontology)
                                                                                throws KAON2Exception
Returns the values of object properties sorted by properties.

Parameters:
ontology - the ontology in which the search is perfromed
Returns:
the values of object properties sorted by properties
Throws:
KAON2Exception - thrown if there is an error

getDataPropertyValue

java.lang.Object getDataPropertyValue(Ontology ontology,
                                      DataProperty dataProperty)
                                      throws KAON2Exception
Returns the value of the data property for this individual. If there are several values, one is picked arbitrarily and returned. If there is no value, null is returned. (Note that this method cannot be used to distinguish "no value" from "null value" situaions.)

Parameters:
ontology - the ontology in which the search is perfromed
dataProperty - the data property for which the value is selected
Returns:
the value of the object property (or null)
Throws:
KAON2Exception - thrown if there is an error

getObjectPropertyValue

Individual getObjectPropertyValue(Ontology ontology,
                                  ObjectProperty objectProperty)
                                  throws KAON2Exception
Returns the value of the object property for this individual. If there are several values, one is picked arbitrarily and returned. If there is no value, null is returned.

Parameters:
ontology - the ontology in which the search is perfromed
objectProperty - the object property for which the value is selected
Returns:
the value of the object property (or null)
Throws:
KAON2Exception - thrown if there is an error