|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OWLEntity
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 24-Oct-2006
Method Summary | ||
---|---|---|
void |
accept(OWLEntityVisitor visitor)
|
|
|
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). |
|
java.util.Set<OWLAnnotationAssertionAxiom> |
getAnnotationAssertionAxioms(OWLOntology ontology)
|
|
java.util.Set<OWLAnnotation> |
getAnnotations(OWLOntology ontology)
Gets the annotations for this entity. |
|
java.util.Set<OWLAnnotation> |
getAnnotations(OWLOntology ontology,
OWLAnnotationProperty annotationProperty)
Obtains the annotations on this entity where the annotation has the specified URI. |
|
EntityType |
getEntityType()
Gets the entity type for this entity |
|
|
getOWLEntity(EntityType<E> entityType)
Gets an entity that has the same IRI as this entity but is of the specified type. |
|
java.util.Set<OWLAxiom> |
getReferencingAxioms(OWLOntology ontology)
Gets the axioms in the specified ontology that contain this entity in their signature. |
|
java.util.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()
A convenience method that determines if this entity is an OWLAnnotationProperty |
|
boolean |
isOWLClass()
A convenience method that determines if this entity is an OWLClass |
|
boolean |
isOWLDataProperty()
A convenience method that determines if this entity is an 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()
A convenience method that determines if this entity is an OWLObjectProperty |
|
boolean |
isType(EntityType entityType)
Tests to see if this entity is of the specified type |
|
java.lang.String |
toStringID()
Returns a string representation that can be used as the ID of this entity. |
Methods inherited from interface org.semanticweb.owlapi.model.OWLNamedObject |
---|
accept, getIRI |
Method Detail |
---|
EntityType getEntityType()
<E extends OWLEntity> E getOWLEntity(EntityType<E> entityType)
entityType
- The type of the entity to obtain. This entity is not affected in any way.
boolean isType(EntityType entityType)
entityType
- The entity type
true
if this entity is of the specified type, otherwise false
.java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology)
ontology
- The ontology to be examined for annotation assertion axioms
java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology, OWLAnnotationProperty annotationProperty)
ontology
- The ontology to examine for annotation axiomsannotationProperty
- The annotation property
OWLAnnotation
objects that have the specified
URI.java.util.Set<OWLAnnotationAssertionAxiom> getAnnotationAssertionAxioms(OWLOntology ontology)
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
OWLClass asOWLClass()
OWLRuntimeException
- if this entity is not an OWLClass (check with the
isOWLClass method first).boolean isOWLObjectProperty()
true
if this entity is an OWLObjectProperty, otherwise false
OWLObjectProperty asOWLObjectProperty()
OWLRuntimeException
- if this entity is not an OWLObjectProperty (check with the
isOWLObjectProperty method first).boolean isOWLDataProperty()
true
if this entity is an OWLDataProperty, otherwise false
OWLDataProperty asOWLDataProperty()
OWLRuntimeException
- if this entity is not an OWLDataProperty (check with the
isOWLDataProperty method first).boolean isOWLNamedIndividual()
true
if this entity is an OWLNamedIndividual, otherwise false
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
OWLDatatype asOWLDatatype()
OWLRuntimeException
- if this entity is not an OWLDatatype (check with the
isOWLDatatype method first).boolean isOWLAnnotationProperty()
true
if this entity is an OWLAnnotationProperty, otherwise false
OWLAnnotationProperty asOWLAnnotationProperty()
OWLRuntimeException
- if this entity is not an OWLAnnotationPropertyjava.lang.String toStringID()
java.util.Set<OWLAxiom> getReferencingAxioms(OWLOntology ontology)
ontology
- The ontology that will be searched for axioms
java.util.Set<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)
<O> O accept(OWLEntityVisitorEx<O> visitor)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |