public class OWLAnnotationPropertyImpl extends OWLObjectImpl implements OWLAnnotationProperty
Type | Property and Description |
---|---|
OWLAnnotationProperty |
asOWLAnnotation
A convenience method that obtains this entity as an OWLAnnotationProperty
(in order to avoid explicit casting).
|
OWLDataProperty |
asOWLData
A convenience method that obtains this entity as an OWLDataProperty (in
order to avoid explicit casting).
|
OWLObjectProperty |
asOWLObject
A convenience method that obtains this entity as an OWLObjectProperty (in
order to avoid explicit casting).
|
boolean |
isOWLAnnotation
Gets the value of the property oWLAnnotationProperty.
|
boolean |
isOWLData
Gets the value of the property oWLDataProperty.
|
boolean |
isOWLObject
Gets the value of the property oWLObjectProperty.
|
Constructor and Description |
---|
OWLAnnotationPropertyImpl(IRI i) |
Modifier and Type | Method and Description |
---|---|
void |
accept(OWLEntityVisitor visitor)
Accepts a visitor
|
<O> O |
accept(OWLEntityVisitorEx<O> visitor)
Accepts a visitor
|
void |
accept(OWLNamedObjectVisitor visitor)
Accepts a visitor
|
void |
accept(OWLObjectVisitor visitor)
Accepts a visitor
|
<O> O |
accept(OWLObjectVisitorEx<O> visitor)
Accepts a 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).
|
boolean |
equals(Object obj) |
Set<OWLAnnotationAssertionAxiom> |
getAnnotationAssertionAxioms(OWLOntology ontology) |
Set<OWLAnnotation> |
getAnnotations(OWLOntology ontology)
Gets the annotations for this entity.
|
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.
|
Set<OWLAxiom> |
getReferencingAxioms(OWLOntology ontology)
Gets the axioms in the specified ontology that contain this entity in
their signature.
|
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.
|
Set<OWLAnnotationProperty> |
getSubProperties(OWLOntology ontology)
Gets the annotation properties which are asserted to be sub-properties of
this annotation property in the specified ontology.
|
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.
|
Set<OWLAnnotationProperty> |
getSubProperties(Set<OWLOntology> ontologies)
Gets the annotation properties which are asserted to be sub-properties of
this annotation property in the specified set of ontologies.
|
Set<OWLAnnotationProperty> |
getSuperProperties(OWLOntology ontology)
Gets the annotation properties which are asserted to be super-properties
of this annotation property in the specified ontology.
|
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.
|
Set<OWLAnnotationProperty> |
getSuperProperties(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 entity is a built in entity.
|
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()
Gets the value of the property oWLAnnotationProperty.
|
boolean |
isOWLClass()
A convenience method that determines if this entity is an OWLClass
|
boolean |
isOWLDataProperty()
Gets the value of the property 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()
Gets the value of the property oWLObjectProperty.
|
boolean |
isType(EntityType<?> entityType)
Tests to see if this entity is of the specified type
|
String |
toStringID()
Returns a string representation that can be used as the ID of this
entity.
|
compareTo, containsEntityInSignature, getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, hashCode, isBottomEntity, isTopEntity, toString
getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntity
compareTo
containsEntityInSignature
public OWLDataProperty asOWLDataProperty
asOWLDataProperty
in interface OWLEntity
public OWLObjectProperty asOWLObjectProperty
asOWLObjectProperty
in interface OWLEntity
public boolean isOWLDataProperty
isOWLDataProperty
in interface OWLEntity
public boolean isOWLObjectProperty
isOWLObjectProperty
in interface OWLEntity
public OWLAnnotationProperty asOWLAnnotationProperty
asOWLAnnotationProperty
in interface OWLEntity
public boolean isOWLAnnotationProperty
isOWLAnnotationProperty
in interface OWLEntity
public OWLAnnotationPropertyImpl(IRI i)
i
- iri for propertypublic IRI getIRI()
OWLNamedObject
getIRI
in interface HasIRI
getIRI
in interface OWLNamedObject
public EntityType<?> getEntityType()
OWLEntity
getEntityType
in interface OWLEntity
public <E extends OWLEntity> E getOWLEntity(EntityType<E> entityType)
OWLEntity
getOWLEntity
in interface OWLEntity
E
- entity typeentityType
- The type of the entity to obtain. This entity is not affected in
any way.public boolean isType(EntityType<?> entityType)
OWLEntity
public String toStringID()
OWLEntity
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 Section 5.5
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
.public void accept(OWLObjectVisitor visitor)
OWLObject
public <O> O accept(OWLObjectVisitorEx<O> visitor)
OWLObject
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)
OWLEntity
public <O> O accept(OWLEntityVisitorEx<O> visitor)
OWLEntity
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 Set<OWLAnnotationAssertionAxiom> getAnnotationAssertionAxioms(OWLOntology ontology)
getAnnotationAssertionAxioms
in interface OWLEntity
ontology
- the ontology to usepublic Set<OWLAnnotation> getAnnotations(OWLOntology ontology)
OWLEntity
getAnnotations
in interface OWLEntity
ontology
- The ontology to be examined for annotation assertion axiomspublic 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()
OWLEntity
public boolean isOWLClass()
OWLEntity
isOWLClass
in interface OWLEntity
true
if this entity is an OWLClass, otherwise
false
public boolean isOWLDataProperty()
isOWLDataProperty
in interface OWLEntity
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()
isOWLObjectProperty
in interface OWLEntity
public OWLAnnotationProperty asOWLAnnotationProperty()
OWLEntity
asOWLAnnotationProperty
in interface OWLEntity
public boolean isOWLAnnotationProperty()
isOWLAnnotationProperty
in interface OWLEntity
public void accept(OWLNamedObjectVisitor visitor)
OWLNamedObject
accept
in interface OWLNamedObject
visitor
- The visitorpublic Set<OWLAxiom> getReferencingAxioms(OWLOntology ontology)
OWLEntity
getReferencingAxioms
in interface OWLEntity
ontology
- The ontology that will be searched for axiomspublic 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 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 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 Set<OWLAnnotationProperty> getSubProperties(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 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 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 Set<OWLAnnotationProperty> getSuperProperties(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(Object obj)
equals
in class OWLObjectImpl
Copyright © 2017 The University of Manchester. All Rights Reserved.