|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
uk.ac.manchester.cs.owl.owlapi.OWLIndividualImpl
uk.ac.manchester.cs.owl.owlapi.OWLNamedIndividualImpl
public class OWLNamedIndividualImpl
Author: Matthew Horridge
The University of Manchester
Information Management Group
Date: 15-Jan-2009
Constructor Summary | |
---|---|
OWLNamedIndividualImpl(OWLDataFactory dataFactory,
IRI iri)
|
Method Summary | ||
---|---|---|
void |
accept(OWLEntityVisitor visitor)
|
|
|
accept(OWLEntityVisitorEx<O> visitor)
|
|
void |
accept(OWLIndividualVisitor visitor)
|
|
|
accept(OWLIndividualVisitorEx<O> visitor)
|
|
void |
accept(OWLNamedObjectVisitor visitor)
|
|
void |
accept(OWLObjectVisitor visitor)
|
|
|
accept(OWLObjectVisitorEx<O> visitor)
|
|
OWLAnonymousIndividual |
asAnonymousIndividual()
Obtains this individual an anonymous individual if it is indeed anonymous |
|
OWLNamedIndividual |
asNamedIndividual()
Obtains this individual as a named individual if it is indeed named. |
|
OWLAnnotationProperty |
asOWLAnnotationProperty()
A convenience method that obtains this entity as an OWLAnnotationProperty (in order to avoid explicit casting). |
|
OWLNamedIndividual |
asOWLNamedIndividual()
A convenience method that obtains this entity as an OWLNamedIndividual (in order to avoid explicit casting). |
|
protected int |
compareObjectOfSameType(OWLObject object)
|
|
boolean |
equals(java.lang.Object obj)
|
|
java.util.Set<OWLAnnotationAssertionAxiom> |
getAnnotationAssertionAxioms(OWLOntology ontology)
|
|
java.util.Set<OWLAnnotation> |
getAnnotations(OWLOntology ontology)
Gets the annotations for this entity. |
|
java.util.Set<OWLAnnotation> |
getAnnotations(OWLOntology ontology,
OWLAnnotationProperty annotationProperty)
Obtains the annotations on this entity where the annotation has the specified URI. |
|
EntityType |
getEntityType()
Gets the entity type for this entity |
|
IRI |
getIRI()
Gets the IRI of this object |
|
|
getOWLEntity(EntityType<E> entityType)
Gets an entity that has the same IRI as this entity but is of the specified type. |
|
java.net.URI |
getURI()
|
|
boolean |
isAnonymous()
Determines if this object represents an anonymous individual. |
|
boolean |
isBottomEntity()
|
|
boolean |
isOWLAnnotationProperty()
A convenience method that determines if this entity is an OWLAnnotationProperty |
|
boolean |
isOWLNamedIndividual()
A convenience method that determines if this entity is an OWLNamedIndividual |
|
boolean |
isTopEntity()
|
|
boolean |
isType(EntityType entityType)
Tests to see if this entity is of the specified type |
|
java.lang.String |
toStringID()
Returns a string representation that can be used as the ID of this entity. |
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl |
---|
compareSets, compareTo, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getObjectPropertiesInSignature, getOWLDataFactory, getSignature, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.semanticweb.owlapi.model.OWLIndividual |
---|
getDataPropertyValues, getDataPropertyValues, getDifferentIndividuals, getNegativeDataPropertyValues, getNegativeObjectPropertyValues, getObjectPropertyValues, getObjectPropertyValues, getSameIndividuals, getTypes, getTypes, hasNegativeDataPropertyValue, hasNegativeObjectPropertyValue, hasObjectPropertyValue |
Methods inherited from interface org.semanticweb.owlapi.model.OWLEntity |
---|
asOWLClass, asOWLDataProperty, asOWLDatatype, asOWLObjectProperty, isBuiltIn, isOWLClass, isOWLDataProperty, isOWLDatatype, isOWLObjectProperty |
Constructor Detail |
---|
public OWLNamedIndividualImpl(OWLDataFactory dataFactory, IRI iri)
Method Detail |
---|
public boolean isTopEntity()
isTopEntity
in interface OWLEntity
public boolean isBottomEntity()
isBottomEntity
in interface OWLEntity
public EntityType getEntityType()
getEntityType
in interface OWLEntity
public <E extends OWLEntity> E getOWLEntity(EntityType<E> entityType)
getOWLEntity
in interface OWLEntity
entityType
- The type of the entity to obtain. This entity is not affected in any way.
public boolean isType(EntityType entityType)
isType
in interface OWLEntity
entityType
- The entity type
true
if this entity is of the specified type, otherwise false
.public java.lang.String toStringID()
toStringID
in interface OWLEntity
toStringID
in interface OWLIndividual
public boolean isOWLNamedIndividual()
OWLEntity
isOWLNamedIndividual
in interface OWLEntity
true
if this entity is an OWLNamedIndividual, otherwise false
public IRI getIRI()
OWLNamedObject
getIRI
in interface OWLNamedObject
public java.net.URI getURI()
public boolean isAnonymous()
OWLIndividual
isAnonymous
in interface OWLIndividual
true
if this object represents an anonymous
individual (OWLAnonymousIndividual)
or false
if this object represents a named individual (OWLIndividual
)public OWLNamedIndividual asNamedIndividual()
OWLIndividual
asNamedIndividual
in interface OWLIndividual
public OWLNamedIndividual asOWLNamedIndividual()
OWLEntity
asOWLNamedIndividual
in interface OWLEntity
public OWLAnonymousIndividual asAnonymousIndividual()
OWLIndividual
asAnonymousIndividual
in interface OWLIndividual
public OWLAnnotationProperty asOWLAnnotationProperty()
OWLEntity
asOWLAnnotationProperty
in interface OWLEntity
public boolean isOWLAnnotationProperty()
OWLEntity
isOWLAnnotationProperty
in interface OWLEntity
true
if this entity is an OWLAnnotationProperty, otherwise false
public boolean equals(java.lang.Object obj)
equals
in class OWLIndividualImpl
public java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology)
OWLEntity
getAnnotations
in interface OWLEntity
ontology
- The ontology to be examined for annotation assertion axioms
public java.util.Set<OWLAnnotationAssertionAxiom> getAnnotationAssertionAxioms(OWLOntology ontology)
getAnnotationAssertionAxioms
in interface OWLEntity
public java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology, OWLAnnotationProperty annotationProperty)
OWLEntity
getAnnotations
in interface OWLEntity
ontology
- The ontology to examine for annotation axiomsannotationProperty
- The annotation property
OWLAnnotation
objects that have the specified
URI.protected int compareObjectOfSameType(OWLObject object)
compareObjectOfSameType
in class OWLObjectImpl
public void accept(OWLObjectVisitor visitor)
accept
in interface OWLObject
public <O> O accept(OWLObjectVisitorEx<O> visitor)
accept
in interface OWLObject
public void accept(OWLEntityVisitor visitor)
accept
in interface OWLEntity
public <O> O accept(OWLEntityVisitorEx<O> visitor)
accept
in interface OWLEntity
public void accept(OWLNamedObjectVisitor visitor)
accept
in interface OWLNamedObject
public void accept(OWLIndividualVisitor visitor)
accept
in interface OWLIndividual
public <O> O accept(OWLIndividualVisitorEx<O> visitor)
accept
in interface OWLIndividual
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |