public class OWLObjectPropertyImpl extends OWLObjectPropertyExpressionImpl implements OWLObjectProperty
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
If the property is a named object property then this method will obtain
the property as such.
|
boolean |
isOWLAnnotation
Gets the value of the property oWLAnnotationProperty.
|
boolean |
isOWLBottomData
Gets the value of the property oWLBottomDataProperty.
|
boolean |
isOWLBottomObject
Gets the value of the property oWLBottomObjectProperty.
|
boolean |
isOWLData
Gets the value of the property oWLDataProperty.
|
boolean |
isOWLObject
Gets the value of the property oWLObjectProperty.
|
boolean |
isOWLTopData
Gets the value of the property oWLTopDataProperty.
|
boolean |
isOWLTopObject
Gets the value of the property oWLTopObjectProperty.
|
Constructor and Description |
---|
OWLObjectPropertyImpl(IRI iri) |
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
|
void |
accept(OWLPropertyExpressionVisitor visitor) |
<O> O |
accept(OWLPropertyExpressionVisitorEx<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()
If the property is a named object property then this method will obtain
the property as such.
|
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.
|
boolean |
isAnonymous()
Determines if this property expression is anonymous.
|
boolean |
isBottomEntity()
Determines if this object is either, owl:Nothing (the bottom class),
owl:bottomObjectProperty (the bottom object property) ,
owl:bottomDataProperty (the bottom data property).
|
boolean |
isBuiltIn()
Determines if this entity is a built in entity.
|
boolean |
isOWLAnnotationProperty()
Gets the value of the property oWLAnnotationProperty.
|
boolean |
isOWLBottomDataProperty()
Gets the value of the property oWLBottomDataProperty.
|
boolean |
isOWLBottomObjectProperty()
Gets the value of the property oWLBottomObjectProperty.
|
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 |
isOWLTopDataProperty()
Gets the value of the property oWLTopDataProperty.
|
boolean |
isOWLTopObjectProperty()
Gets the value of the property oWLTopObjectProperty.
|
boolean |
isTopEntity()
Determines if this object is either, owl:Thing (the top class),
owl:topObjectProperty (the top object property) , owl:topDataProperty
(the top data property) or rdfs:Literal (the top datatype).
|
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.
|
getInverseProperty, getInverses, getInverses, getNamedProperty, getSimplified, isAsymmetric, isAsymmetric, isDataPropertyExpression, isFunctional, isFunctional, isInverseFunctional, isInverseFunctional, isIrreflexive, isIrreflexive, isObjectPropertyExpression, isReflexive, isReflexive, isSymmetric, isSymmetric, isTransitive, isTransitive
getDisjointProperties, getDisjointProperties, getDomains, getDomains, getEquivalentProperties, getEquivalentProperties, getRanges, getRanges, getSubProperties, getSubProperties, getSuperProperties, getSuperProperties
compareTo, containsEntityInSignature, getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, hashCode, toString
getInverseProperty, getInverses, getInverses, getNamedProperty, getSimplified, isAsymmetric, isAsymmetric, isInverseFunctional, isInverseFunctional, isIrreflexive, isIrreflexive, isReflexive, isReflexive, isSymmetric, isSymmetric, isTransitive, isTransitive
getDisjointProperties, getDisjointProperties, getDomains, getDomains, getEquivalentProperties, getEquivalentProperties, getRanges, getRanges, getSubProperties, getSubProperties, getSuperProperties, getSuperProperties, isDataPropertyExpression, isFunctional, isFunctional, isObjectPropertyExpression
getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature
compareTo
containsEntityInSignature
public OWLObjectProperty asOWLObjectProperty
asOWLObjectProperty
in interface OWLEntity
asOWLObjectProperty
in interface OWLObjectPropertyExpression
public OWLDataProperty asOWLDataProperty
asOWLDataProperty
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 boolean isOWLTopObjectProperty
isOWLTopObjectProperty
in interface OWLPropertyExpression<OWLClassExpression,OWLObjectPropertyExpression>
public boolean isOWLBottomObjectProperty
isOWLBottomObjectProperty
in interface OWLPropertyExpression<OWLClassExpression,OWLObjectPropertyExpression>
public boolean isOWLTopDataProperty
isOWLTopDataProperty
in interface OWLPropertyExpression<OWLClassExpression,OWLObjectPropertyExpression>
public boolean isOWLBottomDataProperty
isOWLBottomDataProperty
in interface OWLPropertyExpression<OWLClassExpression,OWLObjectPropertyExpression>
public OWLObjectPropertyImpl(IRI iri)
iri
- property iripublic boolean isTopEntity()
OWLObject
isTopEntity
in interface OWLObject
isTopEntity
in class OWLObjectImpl
true
if this object corresponds to one of the above
entities.public boolean isBottomEntity()
OWLObject
isBottomEntity
in interface OWLObject
isBottomEntity
in class OWLObjectImpl
true
if this object corresponds to one of the above
entities.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 IRI getIRI()
OWLNamedObject
getIRI
in interface HasIRI
getIRI
in interface OWLNamedObject
public boolean isBuiltIn()
OWLEntity
public boolean equals(Object obj)
equals
in class OWLObjectPropertyExpressionImpl
public void accept(OWLEntityVisitor visitor)
OWLEntity
public void accept(OWLPropertyExpressionVisitor visitor)
accept
in interface OWLPropertyExpression<OWLClassExpression,OWLObjectPropertyExpression>
visitor
- visitor to acceptpublic void accept(OWLObjectVisitor visitor)
OWLObject
public void accept(OWLNamedObjectVisitor visitor)
OWLNamedObject
accept
in interface OWLNamedObject
visitor
- The visitorpublic <O> O accept(OWLEntityVisitorEx<O> visitor)
OWLEntity
public <O> O accept(OWLPropertyExpressionVisitorEx<O> visitor)
accept
in interface OWLPropertyExpression<OWLClassExpression,OWLObjectPropertyExpression>
O
- visitor return typevisitor
- visitor to acceptpublic <O> O accept(OWLObjectVisitorEx<O> visitor)
OWLObject
public boolean isAnonymous()
OWLPropertyExpression
isAnonymous
in interface OWLPropertyExpression<OWLClassExpression,OWLObjectPropertyExpression>
true
if the property expression is anonymous (because it
is the inverse of a property). false
if this property is
a named object property or named data property.public OWLObjectProperty asOWLObjectProperty()
OWLObjectPropertyExpression
isAnonymous
method should first be used to determine if the
property is named (i.e. not an object property expression such as
inv(p)). If the property is named then this method may be used to obtain
the property as a named property without casting.asOWLObjectProperty
in interface OWLEntity
asOWLObjectProperty
in interface OWLObjectPropertyExpression
public Set<OWLAnnotation> getAnnotations(OWLOntology ontology)
OWLEntity
getAnnotations
in interface OWLEntity
ontology
- The ontology to be examined for annotation assertion axiomspublic Set<OWLAnnotationAssertionAxiom> getAnnotationAssertionAxioms(OWLOntology ontology)
getAnnotationAssertionAxioms
in interface OWLEntity
ontology
- the ontology to usepublic 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 OWLDataProperty asOWLDataProperty()
OWLEntity
asOWLDataProperty
in interface OWLEntity
public OWLDatatype asOWLDatatype()
OWLEntity
asOWLDatatype
in interface OWLEntity
public OWLNamedIndividual asOWLNamedIndividual()
OWLEntity
asOWLNamedIndividual
in interface OWLEntity
public OWLClass asOWLClass()
OWLEntity
asOWLClass
in interface 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 boolean isOWLTopObjectProperty()
isOWLTopObjectProperty
in interface OWLPropertyExpression<OWLClassExpression,OWLObjectPropertyExpression>
public boolean isOWLBottomObjectProperty()
isOWLBottomObjectProperty
in interface OWLPropertyExpression<OWLClassExpression,OWLObjectPropertyExpression>
public boolean isOWLTopDataProperty()
isOWLTopDataProperty
in interface OWLPropertyExpression<OWLClassExpression,OWLObjectPropertyExpression>
public boolean isOWLBottomDataProperty()
isOWLBottomDataProperty
in interface OWLPropertyExpression<OWLClassExpression,OWLObjectPropertyExpression>
public 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.Copyright © 2017 The University of Manchester. All Rights Reserved.