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) |
<O> O |
accept(OWLEntityVisitorEx<O> visitor) |
void |
accept(OWLNamedObjectVisitor visitor)
Accepts a visitor
|
<O> O |
accept(OWLNamedObjectVisitorEx<O> 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) |
void |
addAnonymousIndividualsToSet(Set<OWLAnonymousIndividual> anons) |
void |
addSignatureEntitiesToSet(Set<OWLEntity> entities) |
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) |
EntityType<?> |
getEntityType()
Gets the entity type for this entity
|
OWLObjectInverseOf |
getInverseProperty()
Obtains the property that corresponds to the inverse of this property.
|
IRI |
getIRI()
Gets the IRI of this object
|
OWLObjectProperty |
getNamedProperty()
Get the named object property used in this property expression.
|
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() |
getSimplified, isDataPropertyExpression, isObjectPropertyExpression
compareTo, containsEntityInSignature, getAnnotationPropertiesInSignature, getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, hashCode, toString
getSimplified
isDataPropertyExpression, isObjectPropertyExpression
isAnonymous
getNestedClassExpressions, isIndividual, isIRI, toString
compareTo
getSignature
containsEntityInSignature
getAnonymousIndividuals
getClassesInSignature
getObjectPropertiesInSignature
getDataPropertiesInSignature
getIndividualsInSignature
getDatatypesInSignature
getAnnotationPropertiesInSignature
isNamed
public OWLObjectProperty asOWLObjectProperty
asOWLObjectProperty
in interface OWLEntity
asOWLObjectProperty
in interface OWLObjectPropertyExpression
OWLObjectProperty
if possible.public OWLDataProperty asOWLDataProperty
asOWLDataProperty
in interface OWLEntity
public boolean isOWLDataProperty
isOWLDataProperty
in interface OWLEntity
true
if this entity is an OWLDataProperty, otherwise false
public boolean isOWLObjectProperty
isOWLObjectProperty
in interface OWLEntity
true
if this entity is an OWLObjectProperty, otherwise false
public OWLAnnotationProperty asOWLAnnotationProperty
asOWLAnnotationProperty
in interface OWLEntity
public boolean isOWLAnnotationProperty
isOWLAnnotationProperty
in interface OWLEntity
true
if this entity is an OWLAnnotationProperty, otherwise false
public boolean isOWLTopObjectProperty
isOWLTopObjectProperty
in interface OWLPropertyExpression
true
if this property is the owl:topObjectProperty otherwise false
public boolean isOWLBottomObjectProperty
isOWLBottomObjectProperty
in interface OWLPropertyExpression
true
if this property is the owl:bottomObjectProperty otherwise false
public boolean isOWLTopDataProperty
isOWLTopDataProperty
in interface OWLPropertyExpression
true
if this property is the owl:topDataProperty otherwise false
public boolean isOWLBottomDataProperty
isOWLBottomDataProperty
in interface OWLPropertyExpression
true
if this property is the owl:bottomDataProperty otherwise false
@Nonnull public OWLObjectInverseOf getInverseProperty()
OWLObjectPropertyExpression
getInverseProperty
in interface OWLObjectPropertyExpression
@Nonnull public OWLObjectProperty getNamedProperty()
OWLObjectPropertyExpression
getNamedProperty
in interface OWLObjectPropertyExpression
public void addSignatureEntitiesToSet(Set<OWLEntity> entities)
addSignatureEntitiesToSet
in interface HasIncrementalSignatureGenerationSupport
entities
- entity set where entities will be addedpublic void addAnonymousIndividualsToSet(Set<OWLAnonymousIndividual> anons)
addAnonymousIndividualsToSet
in interface HasIncrementalSignatureGenerationSupport
anons
- anonymous individuals set where individuals will be addedpublic boolean isTopEntity()
OWLObject
isTopEntity
in interface OWLObject
isTopEntity
in class OWLObjectImplWithoutEntityAndAnonCaching
true
if this object corresponds to one of the above entities.public boolean isBottomEntity()
OWLObject
isBottomEntity
in interface OWLObject
isBottomEntity
in class OWLObjectImplWithoutEntityAndAnonCaching
true
if this object corresponds to one of the above entities.public EntityType<?> getEntityType()
OWLEntity
getEntityType
in interface OWLEntity
public boolean isType(EntityType<?> entityType)
OWLEntity
public String toStringID()
toStringID
in interface OWLEntity
#toString()
representation of the IRIpublic 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)
public void accept(OWLPropertyExpressionVisitor visitor)
accept
in interface OWLPropertyExpression
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(OWLNamedObjectVisitorEx<O> visitor)
OWLNamedObject
accept
in interface OWLNamedObject
O
- visitor return typevisitor
- The visitorpublic <O> O accept(OWLEntityVisitorEx<O> visitor)
public <O> O accept(OWLPropertyExpressionVisitorEx<O> visitor)
accept
in interface OWLPropertyExpression
O
- visitor return typevisitor
- visitor to acceptpublic <O> O accept(OWLObjectVisitorEx<O> visitor)
OWLObject
public OWLObjectProperty asOWLObjectProperty()
OWLObjectPropertyExpression
isAnonymous
or isNamed
methods 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
OWLObjectProperty
if possible.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
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()
isOWLObjectProperty
in interface OWLEntity
true
if this entity is an OWLObjectProperty, otherwise false
public OWLAnnotationProperty asOWLAnnotationProperty()
OWLEntity
asOWLAnnotationProperty
in interface OWLEntity
public boolean isOWLAnnotationProperty()
isOWLAnnotationProperty
in interface OWLEntity
true
if this entity is an OWLAnnotationProperty, otherwise false
public boolean isOWLTopObjectProperty()
isOWLTopObjectProperty
in interface OWLPropertyExpression
true
if this property is the owl:topObjectProperty otherwise false
public boolean isOWLBottomObjectProperty()
isOWLBottomObjectProperty
in interface OWLPropertyExpression
true
if this property is the owl:bottomObjectProperty otherwise false
public boolean isOWLTopDataProperty()
isOWLTopDataProperty
in interface OWLPropertyExpression
true
if this property is the owl:topDataProperty otherwise false
public boolean isOWLBottomDataProperty()
isOWLBottomDataProperty
in interface OWLPropertyExpression
true
if this property is the owl:bottomDataProperty otherwise false
Copyright © 2020 The University of Manchester. All rights reserved.