public interface OWLEntity extends OWLObject, OWLNamedObject, OWLPrimitive
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(OWLEntityVisitor visitor) |
<O> O |
accept(OWLEntityVisitorEx<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).
|
EntityType<?> |
getEntityType()
Gets the entity type for this entity
|
default boolean |
isAnonymous() |
boolean |
isBuiltIn()
Determines if this entity is a built in entity.
|
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() |
accept, accept, getIRIaccept, accept, getNestedClassExpressions, isBottomEntity, isIndividual, isIRI, isTopEntity, toStringcompareTogetSignaturecontainsEntityInSignaturegetAnonymousIndividualsgetClassesInSignaturegetObjectPropertiesInSignaturegetDataPropertiesInSignaturegetIndividualsInSignaturegetDatatypesInSignaturegetAnnotationPropertiesInSignatureisNamedboolean isOWLObjectProperty
@Nonnull OWLObjectProperty asOWLObjectProperty
boolean isOWLDataProperty
@Nonnull OWLDataProperty asOWLDataProperty
boolean isOWLAnnotationProperty
@Nonnull OWLAnnotationProperty asOWLAnnotationProperty
@Nonnull EntityType<?> getEntityType()
boolean isType(@Nonnull EntityType<?> entityType)
entityType - The entity typetrue if this entity is of the specified type, otherwise false.boolean isBuiltIn()
true if this entity is a built in entity, or false if this entity is
not a builtin entity.boolean isOWLClass()
true if this entity is an OWLClass, otherwise false@Nonnull OWLClass asOWLClass()
OWLRuntimeException - if this entity is not an OWLClass (check with
isOWLClass() first).boolean isOWLObjectProperty()
@Nonnull OWLObjectProperty asOWLObjectProperty()
boolean isOWLDataProperty()
@Nonnull OWLDataProperty asOWLDataProperty()
boolean isOWLNamedIndividual()
true if this entity is an OWLNamedIndividual, otherwise false@Nonnull OWLNamedIndividual asOWLNamedIndividual()
OWLRuntimeException - if this entity is not an OWLIndividual (check with the
isOWLIndividual method first).boolean isOWLDatatype()
true if this entity is an OWLDatatype, otherwise false@Nonnull OWLDatatype asOWLDatatype()
OWLRuntimeException - if this entity is not an OWLDatatype (check with the
isOWLDatatype method first).boolean isOWLAnnotationProperty()
@Nonnull OWLAnnotationProperty asOWLAnnotationProperty()
@Nonnull String toStringID()
#toString() representation of the IRIvoid accept(@Nonnull OWLEntityVisitor visitor)
visitor - visitor@Nonnull <O> O accept(@Nonnull OWLEntityVisitorEx<O> visitor)
O - visitor return typevisitor - visitordefault boolean isAnonymous()
isAnonymous in interface IsAnonymoustrue if this object is anonymous, false otherwise. For example, class
expressions are anonymous while class entities are not (they have an IRI);
OWLNamedIndividual instances are named, OWLAnonymousIndividual
instances are anonymous. An ontology is anonymous if it does not have an ontology
IRI. In this case, getOntologyID().getOntologyIRI() will return an empty optional.Copyright © 2021 The University of Manchester. All rights reserved.