public class OWLAnnotationPropertyImpl extends OWLObjectImpl implements OWLAnnotationProperty
Constructor and Description |
---|
OWLAnnotationPropertyImpl(IRI i) |
Modifier and Type | Method and Description |
---|---|
void |
accept(OWLEntityVisitor visitor) |
<O> O |
accept(OWLEntityVisitorEx<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).
|
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).
|
OWLNamedIndividual |
asOWLNamedIndividual()
A convenience method that obtains this entity as an OWLNamedIndividual (in order to
avoid explicit casting).
|
OWLObjectProperty |
asOWLObjectProperty()
A convenience method that obtains this entity as an OWLObjectProperty (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
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.
|
java.util.Set<OWLAnnotationProperty> |
getSubProperties(OWLOntology ontology)
Gets the annotation properties which are asserted to be sub-properties of this annotation property in
the specified ontology.
|
java.util.Set<OWLAnnotationProperty> |
getSubProperties(OWLOntology ontology,
boolean includeImportsClosure)
Gets the annotation properties which are asserted to be sub-properties of this annotation property in
the specified ontology and potentially its imports closure.
|
java.util.Set<OWLAnnotationProperty> |
getSubProperties(java.util.Set<OWLOntology> ontologies)
Gets the annotation properties which are asserted to be sub-properties of this annotation property in
the specified set of ontologies.
|
java.util.Set<OWLAnnotationProperty> |
getSuperProperties(OWLOntology ontology)
Gets the annotation properties which are asserted to be super-properties of this annotation property in
the specified ontology.
|
java.util.Set<OWLAnnotationProperty> |
getSuperProperties(OWLOntology ontology,
boolean includeImportsClosure)
Gets the annotation properties which are asserted to be super-properties of this annotation property in
the specified ontology and potentially its imports closure.
|
java.util.Set<OWLAnnotationProperty> |
getSuperProperties(java.util.Set<OWLOntology> ontologies)
Gets the annotation properties which are asserted to be super-properties of this annotation property in
the specified set of ontologies.
|
boolean |
isBuiltIn()
Determines if this property is a built in annotation property.
|
boolean |
isComment()
Determines if this annotation property has an IRI corresponding to
rdfs:comment . |
boolean |
isDeprecated()
Determines if this annotation property has an IRI corresponding to
owl:deprecated . |
boolean |
isLabel()
Determines if this annotation property has an IRI corresponding to
rdfs:label . |
boolean |
isOWLAnnotationProperty()
A convenience method that determines if this entity is an OWLAnnotationProperty
|
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 |
isOWLNamedIndividual()
A convenience method that determines if this entity is an OWLNamedIndividual
|
boolean |
isOWLObjectProperty()
A convenience method that determines if this entity is an OWLObjectProperty
|
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.
|
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
getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntity
public OWLAnnotationPropertyImpl(IRI i)
public IRI getIRI()
OWLNamedObject
getIRI
in interface OWLNamedObject
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
public boolean isDeprecated()
OWLAnnotationProperty
owl:deprecated
. An annotation
along the owl:deprecated
property which has a value of "true"^^xsd:boolean
can be
used to deprecate IRIs. (See http://www.w3.org/TR/2009/REC-owl2-syntax-20091027/#Annotation_Properties
of the OWL 2 specification.isDeprecated
in interface OWLAnnotationProperty
true
if the IRI of this annotation property is
owl:deprecated
, where owl:
expands to the usual prefix, otherwise false
.protected int compareObjectOfSameType(OWLObject object)
compareObjectOfSameType
in class OWLObjectImpl
public void accept(OWLObjectVisitor visitor)
public <O> O accept(OWLObjectVisitorEx<O> visitor)
public boolean isComment()
OWLAnnotationProperty
rdfs:comment
.isComment
in interface OWLAnnotationProperty
true
if the IRI of this annotation property is
rdfs:comment
, where rdfs:
expands to the usual prefix, otherwise false
.public boolean isLabel()
OWLAnnotationProperty
rdfs:label
.isLabel
in interface OWLAnnotationProperty
true
if the IRI of this annotation property is
rdfs:label
, where rdfs:
expands to the usual prefix, otherwise false
.public void accept(OWLEntityVisitor visitor)
public <O> O accept(OWLEntityVisitorEx<O> visitor)
public OWLClass asOWLClass()
OWLEntity
asOWLClass
in interface OWLEntity
public OWLDataProperty asOWLDataProperty()
OWLEntity
asOWLDataProperty
in interface OWLEntity
public OWLDatatype asOWLDatatype()
OWLEntity
asOWLDatatype
in interface OWLEntity
public OWLNamedIndividual asOWLNamedIndividual()
OWLEntity
asOWLNamedIndividual
in interface OWLEntity
public OWLObjectProperty asOWLObjectProperty()
OWLEntity
asOWLObjectProperty
in interface OWLEntity
public java.util.Set<OWLAnnotationAssertionAxiom> getAnnotationAssertionAxioms(OWLOntology ontology)
getAnnotationAssertionAxioms
in interface OWLEntity
ontology
- the ontology to usepublic 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<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 boolean isBuiltIn()
OWLAnnotationProperty
isBuiltIn
in interface OWLAnnotationProperty
isBuiltIn
in interface OWLEntity
true
if the property is a built in annotation property, otherwise false
public boolean isOWLClass()
OWLEntity
isOWLClass
in interface OWLEntity
true
if this entity is an OWLClass, otherwise false
public boolean isOWLDataProperty()
OWLEntity
isOWLDataProperty
in interface OWLEntity
true
if this entity is an OWLDataProperty, otherwise false
public boolean isOWLDatatype()
OWLEntity
isOWLDatatype
in interface OWLEntity
true
if this entity is an OWLDatatype, otherwise false
public boolean isOWLNamedIndividual()
OWLEntity
isOWLNamedIndividual
in interface OWLEntity
true
if this entity is an OWLNamedIndividual, otherwise false
public boolean isOWLObjectProperty()
OWLEntity
isOWLObjectProperty
in interface OWLEntity
true
if this entity is an OWLObjectProperty, otherwise false
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 void accept(OWLNamedObjectVisitor visitor)
accept
in interface OWLNamedObject
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.public java.util.Set<OWLAnnotationProperty> getSubProperties(OWLOntology ontology)
OWLAnnotationProperty
getSubProperties
in interface OWLAnnotationProperty
ontology
- The ontology to be examined for SubAnnotationPropertyOf
axioms.p
in the set, it is
the case that ontology
contains an SubAnnotationPropertyOf(p, this)
axiom
where this
refers to this annotation property.public java.util.Set<OWLAnnotationProperty> getSubProperties(OWLOntology ontology, boolean includeImportsClosure)
OWLAnnotationProperty
getSubProperties
in interface OWLAnnotationProperty
ontology
- The ontology to be examined for SubAnnotationPropertyOf
axioms.includeImportsClosure
- if true
then the imports closure of this ontology is searched
for SubAnnotationPropertyOf
axioms that assert this property is the super property of some
other annotation property. If false
then only ontology
is searched.includeImportsClosure
is true
, a set of annotation properties such that for
each property p
in the set, it is
the case that at least one ontology
in the imports closure contains a
SubAnnotationPropertyOf(p, this)
axiom
where this
refers to this annotation property.
If includeImportsClosure
is false
, a set of annotation properties such that for
each property p
in the set, it is
the case that ontology
contains a
SubAnnotationPropertyOf(p, this)
axiom
where this
refers to this annotation property.public java.util.Set<OWLAnnotationProperty> getSubProperties(java.util.Set<OWLOntology> ontologies)
OWLAnnotationProperty
getSubProperties
in interface OWLAnnotationProperty
ontologies
- The set of ontologies to be examined for SubAnnotationPropertyOf
axioms.p
in the set, it is
the case that at least one ontology
in ontologies
contains a
SubAnnotationPropertyOf(p, this)
axiom
where this
refers to this annotation property.public java.util.Set<OWLAnnotationProperty> getSuperProperties(OWLOntology ontology)
OWLAnnotationProperty
getSuperProperties
in interface OWLAnnotationProperty
ontology
- The ontology to be examined for SubAnnotationPropertyOf
axioms.p
in the set, it is
the case that ontology
contains an SubAnnotationPropertyOf(this, p)
axiom
where this
refers to this annotation property.public java.util.Set<OWLAnnotationProperty> getSuperProperties(OWLOntology ontology, boolean includeImportsClosure)
OWLAnnotationProperty
getSuperProperties
in interface OWLAnnotationProperty
ontology
- The ontology to be examined for SubAnnotationPropertyOf
axioms.includeImportsClosure
- if true
then the imports closure of this ontology is searched
for SubAnnotationPropertyOf
axioms that assert this property is the super property of some
other annotation property. If false
then only ontology
is searched.includeImportsClosure
is true
, a set of annotation properties such that for
each property p
in the set, it is
the case that at least one ontology
in the imports closure contains a
SuperAnnotationPropertyOf(this, p)
axiom
where this
refers to this annotation property.
If includeImportsClosure
is false
, a set of annotation properties such that for
each property p
in the set, it is
the case that ontology
contains a
SuperAnnotationPropertyOf(this, p)
axiom
where this
refers to this annotation property.public java.util.Set<OWLAnnotationProperty> getSuperProperties(java.util.Set<OWLOntology> ontologies)
OWLAnnotationProperty
getSuperProperties
in interface OWLAnnotationProperty
ontologies
- The set of ontologies to be examined for SubAnnotationPropertyOf
axioms.p
in the set, it is
the case that at least one ontology
in ontologies
contains a
SubAnnotationPropertyOf(this, p)
axiom
where this
refers to this annotation property.public boolean equals(java.lang.Object obj)
equals
in class OWLObjectImpl