public class OWLNamedIndividualImpl extends OWLIndividualImpl implements OWLNamedIndividual
Constructor and Description |
---|
OWLNamedIndividualImpl(IRI iri) |
Modifier and Type | Method and Description |
---|---|
void |
accept(OWLEntityVisitor visitor) |
<O> O |
accept(OWLEntityVisitorEx<O> visitor) |
void |
accept(OWLIndividualVisitor visitor) |
<O> O |
accept(OWLIndividualVisitorEx<O> visitor) |
void |
accept(OWLNamedObjectVisitor visitor) |
void |
accept(OWLObjectVisitor visitor) |
<O> O |
accept(OWLObjectVisitorEx<O> visitor) |
OWLAnnotationProperty |
asOWLAnnotationProperty()
A convenience method that obtains this entity as an OWLAnnotationProperty (in order to
avoid explicit casting).
|
OWLAnonymousIndividual |
asOWLAnonymousIndividual()
Obtains this individual an anonymous individual if it is indeed anonymous
|
OWLNamedIndividual |
asOWLNamedIndividual()
Obtains this individual as a named individual if it is indeed named.
|
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
annotation property.
|
EntityType<?> |
getEntityType()
Gets the entity type for this entity
|
IRI |
getIRI()
Gets the IRI of this object
|
<E extends OWLEntity> |
getOWLEntity(EntityType<E> entityType)
Gets an entity that has the same IRI as this entity but is of the specified type.
|
java.util.Set<OWLAxiom> |
getReferencingAxioms(OWLOntology ontology)
Gets the axioms in the specified ontology that contain this entity in their signature.
|
java.util.Set<OWLAxiom> |
getReferencingAxioms(OWLOntology ontology,
boolean includeImports)
Gets the axioms in the specified ontology and possibly its imports closure that contain this entity in their
signature.
|
boolean |
isAnonymous()
Determines if this object is an instance of
OWLAnonymousIndividual
Note that this method is the dual of OWLIndividual.isNamed() . |
boolean |
isNamed()
Determines if this individual is an instance of
OWLNamedIndividual . |
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 |
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.
|
asOWLClass, asOWLDataProperty, asOWLDatatype, asOWLObjectProperty, getDataPropertyValues, getDataPropertyValues, getDifferentIndividuals, getNegativeDataPropertyValues, getNegativeObjectPropertyValues, getObjectPropertyValues, getObjectPropertyValues, getSameIndividuals, getTypes, getTypes, hasNegativeDataPropertyValue, hasNegativeObjectPropertyValue, hasObjectPropertyValue, isBuiltIn, isOWLClass, isOWLDataProperty, isOWLDatatype, isOWLObjectProperty
compareLists, compareSets, compareTo, getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getOWLDataFactory, getSignature, hashCode, isBottomEntity, isTopEntity, setOWLDataFactory, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDataPropertyValues, getDataPropertyValues, getDifferentIndividuals, getNegativeDataPropertyValues, getNegativeObjectPropertyValues, getObjectPropertyValues, getObjectPropertyValues, getSameIndividuals, getTypes, getTypes, hasNegativeDataPropertyValue, hasNegativeObjectPropertyValue, hasObjectPropertyValue
asOWLClass, asOWLDataProperty, asOWLDatatype, asOWLObjectProperty, isBuiltIn, isOWLClass, isOWLDataProperty, isOWLDatatype, isOWLObjectProperty
getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntity
public OWLNamedIndividualImpl(IRI iri)
iri
- the iripublic boolean isNamed()
OWLIndividual
OWLNamedIndividual
.
Note that this method is the dual of OWLIndividual.isAnonymous()
.isNamed
in interface OWLIndividual
true
if this individual is an instance of OWLNamedIndividual
because it is a named individuals, otherwise false
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)
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 boolean isAnonymous()
OWLIndividual
OWLAnonymousIndividual
Note that this method is the dual of OWLIndividual.isNamed()
.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 asOWLNamedIndividual()
OWLIndividual
asOWLNamedIndividual
in interface OWLEntity
asOWLNamedIndividual
in interface OWLIndividual
public OWLAnonymousIndividual asOWLAnonymousIndividual()
OWLIndividual
asOWLAnonymousIndividual
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 axiomspublic java.util.Set<OWLAnnotationAssertionAxiom> getAnnotationAssertionAxioms(OWLOntology ontology)
getAnnotationAssertionAxioms
in interface OWLEntity
ontology
- the ontology to usepublic java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology, OWLAnnotationProperty annotationProperty)
OWLEntity
getAnnotations
in interface OWLEntity
ontology
- The ontology to examine for annotation axiomsannotationProperty
- The annotation propertyOWLAnnotation
objects that have the specified
URI.public java.util.Set<OWLAxiom> getReferencingAxioms(OWLOntology ontology)
OWLEntity
getReferencingAxioms
in interface OWLEntity
ontology
- The ontology that will be searched for axiomspublic java.util.Set<OWLAxiom> getReferencingAxioms(OWLOntology ontology, boolean includeImports)
OWLEntity
getReferencingAxioms
in interface OWLEntity
ontology
- The ontology that will be searched for axiomsincludeImports
- If true
then axioms in the imports closure will also be returned, if
false
then only the axioms in the specified ontology will be returned.protected int compareObjectOfSameType(OWLObject object)
compareObjectOfSameType
in class OWLObjectImpl
public void accept(OWLObjectVisitor visitor)
public <O> O accept(OWLObjectVisitorEx<O> visitor)
public void accept(OWLEntityVisitor visitor)
public <O> O accept(OWLEntityVisitorEx<O> visitor)
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