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)
Accepts a visitor
|
<O> O |
accept(OWLEntityVisitorEx<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).
|
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
|
<E extends OWLEntity> |
getOWLEntity(EntityType<E> entityType)
Deprecated.
use a datafactory instead
|
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 |
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()
Returns a string representation that can be used as the ID of this
entity.
|
accept, getIRIaccept, accept, getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntitycompareTocontainsEntityInSignatureboolean isOWLObjectProperty
OWLObjectProperty asOWLObjectProperty
boolean isOWLDataProperty
OWLDataProperty asOWLDataProperty
boolean isOWLAnnotationProperty
OWLAnnotationProperty asOWLAnnotationProperty
EntityType<?> getEntityType()
@Deprecated <E extends OWLEntity> E getOWLEntity(EntityType<E> entityType)
E - entity typeentityType - The type of the entity to obtain. This entity is not affected in
any way.boolean isType(EntityType<?> entityType)
entityType - The entity typetrue if this entity is of the specified type, otherwise
false.Set<OWLAnnotation> getAnnotations(OWLOntology ontology)
ontology - The ontology to be examined for annotation assertion axiomsSet<OWLAnnotation> getAnnotations(OWLOntology ontology, OWLAnnotationProperty annotationProperty)
ontology - The ontology to examine for annotation axiomsannotationProperty - The annotation propertyOWLAnnotation objects that have the specified
URI.Set<OWLAnnotationAssertionAxiom> getAnnotationAssertionAxioms(OWLOntology ontology)
ontology - the ontology to useboolean 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
falseOWLClass asOWLClass()
OWLRuntimeException - if this entity is not an OWLClass (check with the isOWLClass
method first).boolean isOWLObjectProperty()
OWLObjectProperty asOWLObjectProperty()
boolean isOWLDataProperty()
OWLDataProperty asOWLDataProperty()
boolean isOWLNamedIndividual()
true if this entity is an OWLNamedIndividual, otherwise
falseOWLNamedIndividual 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
falseOWLDatatype asOWLDatatype()
OWLRuntimeException - if this entity is not an OWLDatatype (check with the
isOWLDatatype method first).boolean isOWLAnnotationProperty()
OWLAnnotationProperty asOWLAnnotationProperty()
String toStringID()
Set<OWLAxiom> getReferencingAxioms(OWLOntology ontology)
ontology - The ontology that will be searched for axiomsSet<OWLAxiom> getReferencingAxioms(OWLOntology ontology, boolean includeImports)
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.void accept(OWLEntityVisitor visitor)
visitor - The visitor<O> O accept(OWLEntityVisitorEx<O> visitor)
O - visitor return typevisitor - The visitorCopyright © 2014 The University of Manchester. All Rights Reserved.