uk.ac.manchester.cs.owl
Class OWLIndividualImpl

java.lang.Object
  extended by uk.ac.manchester.cs.owl.OWLObjectImpl
      extended by uk.ac.manchester.cs.owl.OWLIndividualImpl
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLEntity, OWLIndividual, OWLNamedObject, OWLObject

public class OWLIndividualImpl
extends OWLObjectImpl
implements OWLIndividual

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 25-Oct-2006


Method Summary
 void accept(OWLEntityVisitor visitor)
           
<O> O
accept(OWLEntityVisitorEx<O> visitor)
           
 void accept(OWLNamedObjectVisitor visitor)
           
 void accept(OWLObjectVisitor visitor)
           
<O> O
accept(OWLObjectVisitorEx<O> visitor)
           
 OWLClass asOWLClass()
          A convenience method that obtains this entity as an OWLClass (in order to avoid explicit casting).
 OWLDataProperty asOWLDataProperty()
          A convenience method that obtains this entity as an OWLDataProperty (in order to avoid explicit casting).
 OWLDataType asOWLDataType()
          A convenience method that obtains this entity as an OWLDataType (in order to avoid explicit casting).
 OWLIndividual asOWLIndividual()
          A convenience method that obtains this entity as an OWLIndividual (in order to avoid explicit casting).
 OWLObjectProperty asOWLObjectProperty()
          A convenience method that obtains this entity as an OWLObjectProperty (in order to avoid explicit casting).
 boolean equals(java.lang.Object obj)
           
 java.util.Set<OWLAnnotationAxiom> getAnnotationAxioms(OWLOntology ontology)
           
 java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology)
          Obtains annotations on this entity where the annotation have been asserted on the specified entity.
 java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology, java.net.URI annotationURI)
          Obtains the annotations on this entity where the annotation has the specified URI.
 java.util.Map<OWLDataPropertyExpression,java.util.Set<OWLConstant>> getDataPropertyValues(OWLOntology ontology)
          Gets the data property values for this individual
 java.util.Set<OWLIndividual> getDifferentIndividuals(OWLOntology ontology)
          A convenience method that examines axioms in the specified ontology to determine the individuals that are asserted to be different to this individual.
 java.util.Set<OWLDataPropertyAssertionAxiom> getIndividualDataRelationshipAxioms(OWLOntology ontology)
           
 java.util.Set<OWLNegativeDataPropertyAssertionAxiom> getIndividualNotDataRelationshipAxioms(OWLOntology ontology)
           
 java.util.Set<OWLNegativeObjectPropertyAssertionAxiom> getIndividualNotObjectRelationshipAxioms(OWLOntology ontology)
           
 java.util.Set<OWLObjectPropertyAssertionAxiom> getIndividualObjectRelationshipAxioms(OWLOntology ontology)
           
 java.util.Set<OWLClassAssertionAxiom> getIndividualTypeAxioms(OWLOntology ontology)
           
 java.util.Map<OWLDataPropertyExpression,java.util.Set<OWLConstant>> getNegativeDataPropertyValues(OWLOntology ontology)
          Gets the data property values that are explicitly asserted NOT to hold for this individual
 java.util.Map<OWLObjectPropertyExpression,java.util.Set<OWLIndividual>> getNegativeObjectPropertyValues(OWLOntology ontology)
          Gets the object property values that are explicitly asserted NOT to hold for this individual
 java.util.Map<OWLProperty,java.util.Set<OWLObject>> getNPropertyValues(OWLOntology ontology)
           
 java.util.Map<OWLObjectPropertyExpression,java.util.Set<OWLIndividual>> getObjectPropertyValues(OWLOntology ontology)
          Gets the object property values for this individual.
 java.util.Map<OWLProperty,java.util.Set<OWLObject>> getPropertyValues(OWLOntology ontology)
           
 java.util.Set<OWLIndividual> getSameIndividuals(OWLOntology ontology)
          A convenience method that examines axioms in the specified ontology to determine the individuals that are asserted to be the same as this individual.
 java.util.Set<OWLDescription> getTypes(OWLOntology ontology)
          A convenience method, which gets the types of this individual, that correspond to the types asserted with axioms in the specified ontology.
 java.util.Set<OWLDescription> getTypes(java.util.Set<OWLOntology> ontologies)
          A convenience method that gets the types of this individual by examining the specified ontologies.
 java.net.URI getURI()
          Gets the URI
 boolean isAnonymous()
          Determines if this object represents an anonymous individual.
 boolean isOWLClass()
          A convenience method that determines if this entity is an OWLClass
 boolean isOWLDataProperty()
          A convenience method that determines if this entity is an OWLDataProperty
 boolean isOWLDataType()
          A convenience method that determines if this entity is an OWLDataType
 boolean isOWLIndividual()
          A convenience method that determines if this entity is an OWLIndividual
 boolean isOWLObjectProperty()
          A convenience method that determines if this entity is an OWLObjectProperty
 
Methods inherited from class uk.ac.manchester.cs.owl.OWLObjectImpl
compareTo, getOWLDataFactory, getSignature, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.semanticweb.owl.model.OWLObject
getSignature
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getURI

public java.net.URI getURI()
Gets the URI

Specified by:
getURI in interface OWLNamedObject
Returns:
A URI that represents the name of the object

isAnonymous

public boolean isAnonymous()
Determines if this object represents an anonymous individual.

Specified by:
isAnonymous in interface OWLIndividual
Returns:
true if this object represents an anonymous individual (OWLAnonymousIndividual) or false if this object represents a named individual (OWLIndividual)

getTypes

public java.util.Set<OWLDescription> getTypes(OWLOntology ontology)
Description copied from interface: OWLIndividual
A convenience method, which gets the types of this individual, that correspond to the types asserted with axioms in the specified ontology.

Specified by:
getTypes in interface OWLIndividual
Parameters:
ontology - The ontology that should be examined for class assertion axioms in order to get the types for this individual.
Returns:
A set of descriptions that correspond the asserted types of this individual in the specified ontology.

getTypes

public java.util.Set<OWLDescription> getTypes(java.util.Set<OWLOntology> ontologies)
Description copied from interface: OWLIndividual
A convenience method that gets the types of this individual by examining the specified ontologies.

Specified by:
getTypes in interface OWLIndividual
Parameters:
ontologies - The ontologies to be examined for class assertions
Returns:
A set of descriptions that represent the types of this individual as asserted in the specified ontologies.

getPropertyValues

public java.util.Map<OWLProperty,java.util.Set<OWLObject>> getPropertyValues(OWLOntology ontology)

getNPropertyValues

public java.util.Map<OWLProperty,java.util.Set<OWLObject>> getNPropertyValues(OWLOntology ontology)

getObjectPropertyValues

public java.util.Map<OWLObjectPropertyExpression,java.util.Set<OWLIndividual>> getObjectPropertyValues(OWLOntology ontology)
Description copied from interface: OWLIndividual
Gets the object property values for this individual.

Specified by:
getObjectPropertyValues in interface OWLIndividual
Returns:
A map, which maps object properties to sets of individuals.

getNegativeObjectPropertyValues

public java.util.Map<OWLObjectPropertyExpression,java.util.Set<OWLIndividual>> getNegativeObjectPropertyValues(OWLOntology ontology)
Description copied from interface: OWLIndividual
Gets the object property values that are explicitly asserted NOT to hold for this individual

Specified by:
getNegativeObjectPropertyValues in interface OWLIndividual
Parameters:
ontology - The ontology that should be examined for axioms
Returns:
A map containing the negative object property values

getDataPropertyValues

public java.util.Map<OWLDataPropertyExpression,java.util.Set<OWLConstant>> getDataPropertyValues(OWLOntology ontology)
Description copied from interface: OWLIndividual
Gets the data property values for this individual

Specified by:
getDataPropertyValues in interface OWLIndividual

getNegativeDataPropertyValues

public java.util.Map<OWLDataPropertyExpression,java.util.Set<OWLConstant>> getNegativeDataPropertyValues(OWLOntology ontology)
Description copied from interface: OWLIndividual
Gets the data property values that are explicitly asserted NOT to hold for this individual

Specified by:
getNegativeDataPropertyValues in interface OWLIndividual
Parameters:
ontology - The ontology that should be examined for axioms
Returns:
A map containing the negative data property values

getAnnotations

public java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology)
Description copied from interface: OWLEntity
Obtains annotations on this entity where the annotation have been asserted on the specified entity.

Specified by:
getAnnotations in interface OWLEntity

getAnnotationAxioms

public java.util.Set<OWLAnnotationAxiom> getAnnotationAxioms(OWLOntology ontology)
Specified by:
getAnnotationAxioms in interface OWLEntity

getAnnotations

public java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology,
                                                   java.net.URI annotationURI)
Description copied from interface: OWLEntity
Obtains the annotations on this entity where the annotation has the specified URI.

Specified by:
getAnnotations in interface OWLEntity
Parameters:
ontology - The ontology to examine for annotation axioms
annotationURI - The annotation URI
Returns:
A set of OWLAnnotation objects that have the specified URI.

getIndividualTypeAxioms

public java.util.Set<OWLClassAssertionAxiom> getIndividualTypeAxioms(OWLOntology ontology)

getIndividualObjectRelationshipAxioms

public java.util.Set<OWLObjectPropertyAssertionAxiom> getIndividualObjectRelationshipAxioms(OWLOntology ontology)

getIndividualDataRelationshipAxioms

public java.util.Set<OWLDataPropertyAssertionAxiom> getIndividualDataRelationshipAxioms(OWLOntology ontology)

getSameIndividuals

public java.util.Set<OWLIndividual> getSameIndividuals(OWLOntology ontology)
Description copied from interface: OWLIndividual
A convenience method that examines axioms in the specified ontology to determine the individuals that are asserted to be the same as this individual.

Specified by:
getSameIndividuals in interface OWLIndividual
Returns:
Individuals that have been asserted to be the same as this individual.

getDifferentIndividuals

public java.util.Set<OWLIndividual> getDifferentIndividuals(OWLOntology ontology)
Description copied from interface: OWLIndividual
A convenience method that examines axioms in the specified ontology to determine the individuals that are asserted to be different to this individual.

Specified by:
getDifferentIndividuals in interface OWLIndividual
Returns:

getIndividualNotObjectRelationshipAxioms

public java.util.Set<OWLNegativeObjectPropertyAssertionAxiom> getIndividualNotObjectRelationshipAxioms(OWLOntology ontology)
                                                                                                throws OWLException
Throws:
OWLException

getIndividualNotDataRelationshipAxioms

public java.util.Set<OWLNegativeDataPropertyAssertionAxiom> getIndividualNotDataRelationshipAxioms(OWLOntology ontology)
                                                                                            throws OWLException
Throws:
OWLException

asOWLClass

public OWLClass asOWLClass()
Description copied from interface: OWLEntity
A convenience method that obtains this entity as an OWLClass (in order to avoid explicit casting).

Specified by:
asOWLClass in interface OWLEntity
Returns:
The entity as an OWLClass.

asOWLDataProperty

public OWLDataProperty asOWLDataProperty()
Description copied from interface: OWLEntity
A convenience method that obtains this entity as an OWLDataProperty (in order to avoid explicit casting).

Specified by:
asOWLDataProperty in interface OWLEntity
Returns:
The entity as an OWLDataProperty.

asOWLDataType

public OWLDataType asOWLDataType()
Description copied from interface: OWLEntity
A convenience method that obtains this entity as an OWLDataType (in order to avoid explicit casting).

Specified by:
asOWLDataType in interface OWLEntity
Returns:
The entity as an OWLDataType.

asOWLIndividual

public OWLIndividual asOWLIndividual()
Description copied from interface: OWLEntity
A convenience method that obtains this entity as an OWLIndividual (in order to avoid explicit casting).

Specified by:
asOWLIndividual in interface OWLEntity
Returns:
The entity as an OWLIndividual.

asOWLObjectProperty

public OWLObjectProperty asOWLObjectProperty()
Description copied from interface: OWLEntity
A convenience method that obtains this entity as an OWLObjectProperty (in order to avoid explicit casting).

Specified by:
asOWLObjectProperty in interface OWLEntity
Returns:
The entity as an OWLObjectProperty.

isOWLClass

public boolean isOWLClass()
Description copied from interface: OWLEntity
A convenience method that determines if this entity is an OWLClass

Specified by:
isOWLClass in interface OWLEntity
Returns:
true if this entity is an OWLClass, otherwise false

isOWLDataProperty

public boolean isOWLDataProperty()
Description copied from interface: OWLEntity
A convenience method that determines if this entity is an OWLDataProperty

Specified by:
isOWLDataProperty in interface OWLEntity
Returns:
true if this entity is an OWLDataProperty, otherwise false

isOWLDataType

public boolean isOWLDataType()
Description copied from interface: OWLEntity
A convenience method that determines if this entity is an OWLDataType

Specified by:
isOWLDataType in interface OWLEntity
Returns:
true if this entity is an OWLDataType, otherwise false

isOWLIndividual

public boolean isOWLIndividual()
Description copied from interface: OWLEntity
A convenience method that determines if this entity is an OWLIndividual

Specified by:
isOWLIndividual in interface OWLEntity
Returns:
true if this entity is an OWLIndividual, otherwise false

isOWLObjectProperty

public boolean isOWLObjectProperty()
Description copied from interface: OWLEntity
A convenience method that determines if this entity is an OWLObjectProperty

Specified by:
isOWLObjectProperty in interface OWLEntity
Returns:
true if this entity is an OWLObjectProperty, otherwise false

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class OWLObjectImpl

accept

public void accept(OWLEntityVisitor visitor)
Specified by:
accept in interface OWLEntity

accept

public void accept(OWLObjectVisitor visitor)
Specified by:
accept in interface OWLObject

accept

public void accept(OWLNamedObjectVisitor visitor)
Specified by:
accept in interface OWLNamedObject

accept

public <O> O accept(OWLEntityVisitorEx<O> visitor)
Specified by:
accept in interface OWLEntity

accept

public <O> O accept(OWLObjectVisitorEx<O> visitor)
Specified by:
accept in interface OWLObject