public interface OWLEntity extends OWLObject, OWLNamedObject, OWLPrimitive, AsOWLClass, AsOWLDataProperty, AsOWLDatatype, AsOWLAnnotationProperty, AsOWLNamedIndividual, AsOWLObjectProperty
asOWLDataProperty, isOWLDataProperty
asOWLAnnotationProperty, isOWLAnnotationProperty
asOWLObjectProperty, isOWLObjectProperty
Modifier and Type | Method and Description |
---|---|
void |
accept(OWLEntityVisitor visitor) |
<O> O |
accept(OWLEntityVisitorEx<O> visitor) |
EntityType<?> |
getEntityType()
Gets the entity type for this entity.
|
default boolean |
isAnonymous() |
default boolean |
isBuiltIn()
Determines if this entity is a built in entity.
|
default boolean |
isType(EntityType<?> entityType)
Tests to see if this entity is of the specified type.
|
String |
toStringID() |
accept, accept
accept, accept, getNestedClassExpressions, hashIteration, hasSharedStructure, initHashCode, isAnonymousExpression, isAxiom, isBottomEntity, isIndividual, isIRI, isOntology, isTopEntity, nestedClassExpressions
compareTo
getSignature, signature, unsortedSignature
containsEntityInSignature
anonymousIndividuals, getAnonymousIndividuals
classesInSignature, getClassesInSignature
getObjectPropertiesInSignature, objectPropertiesInSignature
dataPropertiesInSignature, getDataPropertiesInSignature
getIndividualsInSignature, individualsInSignature
datatypesInSignature, getDatatypesInSignature
annotationPropertiesInSignature, getAnnotationPropertiesInSignature
hashIndex
components, componentsAnnotationsFirst, componentsWithoutAnnotations
isNamed
asOWLClass, isOWLClass
asOWLDataProperty, isOWLDataProperty
asOWLDatatype, isOWLDatatype
asOWLAnnotationProperty, isOWLAnnotationProperty
asOWLNamedIndividual, isOWLNamedIndividual
asOWLObjectProperty, isOWLObjectProperty
EntityType<?> getEntityType()
default boolean isType(EntityType<?> entityType)
entityType
- The entity typetrue
if this entity is of the specified type, otherwise false
.default boolean isBuiltIn()
true
if this entity is a built in entity, or false
if this entity is
not a builtin entity.String toStringID()
toString()
representation of the IRIvoid accept(OWLEntityVisitor visitor)
visitor
- visitor<O> O accept(OWLEntityVisitorEx<O> visitor)
O
- visitor return typevisitor
- visitordefault boolean isAnonymous()
isAnonymous
in interface IsAnonymous
true
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 © 2020 The University of Manchester. All rights reserved.