public class OWLClassImpl extends OWLClassExpressionImpl implements OWLClass, Serializable
| 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
A convenience method that determines if this entity is an
OWLAnnotationProperty
|
boolean |
isOWLData
A convenience method that determines if this entity is an OWLDataProperty
|
boolean |
isOWLObject
A convenience method that determines if this entity is an
OWLObjectProperty
|
NO_ANNOTATIONS, OWL_THING| Constructor and Description |
|---|
OWLClassImpl(IRI iri) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(OWLClassExpressionVisitor visitor)
Accepts a visitor
|
<O> O |
accept(OWLClassExpressionVisitorEx<O> visitor)
Accepts a visitor
|
void |
accept(OWLEntityVisitor visitor)
Accepts a visitor
|
<O> O |
accept(OWLEntityVisitorEx<O> visitor)
Accepts a visitor
|
void |
accept(OWLNamedObjectVisitor visitor)
Accepts a visitor
|
void |
accept(OWLObjectVisitor visitor)
Accepts a visitor
|
<O> O |
accept(OWLObjectVisitorEx<O> visitor)
Accepts a visitor
|
Set<OWLClassExpression> |
asConjunctSet()
Interprets this expression as a conjunction and returns the conjuncts.
|
Set<OWLClassExpression> |
asDisjunctSet()
Interprets this expression as a disjunction and returns the disjuncts.
|
OWLAnnotationProperty |
asOWLAnnotationProperty()
A convenience method that obtains this entity as an OWLAnnotationProperty
(in order to avoid explicit casting).
|
OWLClass |
asOWLClass()
If this class expression is in fact a named class then this method may be
used to obtain the expression as an
OWLClass without the need for
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).
|
protected int |
compareObjectOfSameType(OWLObject object) |
boolean |
containsConjunct(OWLClassExpression ce)
Determines if this class expression contains a particular conjunct.
|
boolean |
equals(Object obj) |
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.
|
ClassExpressionType |
getClassExpressionType()
Gets the class expression type for this class expression
|
OWLClassExpression |
getComplementNNF()
Gets the negation normal form of the complement of this expression.
|
Set<OWLClassExpression> |
getDisjointClasses(OWLOntology ontology)
Gets the classes which have been asserted to be disjoint with this class
by axioms in the specified ontology.
|
Set<OWLClassExpression> |
getDisjointClasses(Set<OWLOntology> ontologies)
Gets the classes which have been asserted to be disjoint with this class
by axioms in the specified ontologies.
|
Set<OWLDisjointClassesAxiom> |
getDisjointClassesAxioms(OWLOntology ontology)
Deprecated.
|
Set<OWLDisjointUnionAxiom> |
getDisjointUnionAxioms(OWLOntology ontology)
Deprecated.
|
EntityType<?> |
getEntityType()
Gets the entity type for this entity
|
Set<OWLClassExpression> |
getEquivalentClasses(OWLOntology ontology)
A convenience method that examines the axioms in the specified ontology
and returns the class expressions corresponding to equivalent classes of
this class.
|
Set<OWLClassExpression> |
getEquivalentClasses(Set<OWLOntology> ontologies)
A convenience method that examines the axioms in the specified ontologies
and returns the class expressions corresponding to equivalent classes of
this class.
|
Set<OWLEquivalentClassesAxiom> |
getEquivalentClassesAxioms(OWLOntology ontology)
Deprecated.
|
Set<OWLIndividual> |
getIndividuals(OWLOntology ontology)
Gets the individuals that have been asserted to be an instance of this
class by axioms in the specified ontology.
|
Set<OWLIndividual> |
getIndividuals(Set<OWLOntology> ontologies)
Gets the individuals that have been asserted to be an instance of this
class by axioms in the speficied ontologies.
|
IRI |
getIRI()
Gets the IRI of this object
|
OWLClassExpression |
getNNF()
Gets this expression in negation normal form.
|
OWLClassExpression |
getObjectComplementOf()
Gets the object complement of this class expression.
|
<E extends OWLEntity> |
getOWLEntity(EntityType<E> entityType)
Gets an entity that has the same IRI as this entity but is of the
specified type.
|
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.
|
Set<OWLSubClassOfAxiom> |
getSubClassAxioms(OWLOntology ontology)
Deprecated.
|
Set<OWLClassExpression> |
getSubClasses(OWLOntology ontology)
Gets the classes which have been asserted to be subclasses of this
class in the specified ontology.
|
Set<OWLClassExpression> |
getSubClasses(Set<OWLOntology> ontologies)
Gets the classes which have been asserted to be subclasses of this
class in the specified ontologies.
|
Set<OWLClassExpression> |
getSuperClasses(OWLOntology ontology)
A convenience method that examines the axioms in the specified ontology
and return the class expressions corresponding to super classes of this
class.
|
Set<OWLClassExpression> |
getSuperClasses(Set<OWLOntology> ontologies)
A convenience method that examines the axioms in the specified ontologies
and returns the class expression corresponding to the asserted super
classes of this class.
|
boolean |
isAnonymous()
Determines whether or not this expression represents an anonymous class
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 |
isClassExpressionLiteral()
Determines if this class is a literal.
|
boolean |
isDefined(OWLOntology ontology)
Determines if this class is a top level class in an
OWLEquivalentClassesAxiom in the
specified ontology. |
boolean |
isDefined(Set<OWLOntology> ontologies)
Determines if this class is a top level class in an
OWLEquivalentClassesAxiom in at
least one of the specified ontologies. |
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 |
isOWLNothing()
Determines if this expression is the built in class owl:Nothing.
|
boolean |
isOWLObjectProperty()
A convenience method that determines if this entity is an
OWLObjectProperty
|
boolean |
isOWLThing()
Determines if this expression is the built in class owl:Thing.
|
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()
Returns a string representation that can be used as the ID of this
entity.
|
compareLists, compareSets, compareTo, getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignaturecompareToasOWLDataProperty in interface OWLEntityasOWLObjectProperty in interface OWLEntityisOWLDataProperty in interface OWLEntitytrue if this entity is an OWLDataProperty, otherwise
falseisOWLObjectProperty in interface OWLEntitytrue if this entity is an OWLObjectProperty, otherwise
falseasOWLAnnotationProperty in interface OWLEntityisOWLAnnotationProperty in interface OWLEntitytrue if this entity is an OWLAnnotationProperty,
otherwise falsepublic OWLClassImpl(IRI iri)
iri - class iripublic boolean isTopEntity()
OWLObjectisTopEntity in interface OWLObjectisTopEntity in class OWLObjectImpltrue if this object corresponds to one of the above
entities.public boolean isBottomEntity()
OWLObjectisBottomEntity in interface OWLObjectisBottomEntity in class OWLObjectImpltrue if this object corresponds to one of the above
entities.public ClassExpressionType getClassExpressionType()
OWLClassExpressiongetClassExpressionType in interface OWLClassExpressionpublic OWLClassExpression getObjectComplementOf()
OWLClassExpressiongetObjectComplementOf in interface OWLClassExpressionpublic EntityType<?> getEntityType()
OWLEntitygetEntityType in interface OWLEntitypublic <E extends OWLEntity> E getOWLEntity(EntityType<E> entityType)
OWLEntitygetOWLEntity in interface OWLEntityE - entity typeentityType - The type of the entity to obtain. This entity is not affected
in any way.public boolean isType(EntityType<?> entityType)
OWLEntitypublic String toStringID()
OWLEntitytoStringID in interface OWLEntitypublic IRI getIRI()
OWLNamedObjectgetIRI in interface OWLNamedObjectpublic boolean isBuiltIn()
OWLEntitypublic Set<OWLAxiom> getReferencingAxioms(OWLOntology ontology)
OWLEntitygetReferencingAxioms in interface OWLEntityontology - The ontology that will be searched for axiomspublic Set<OWLAxiom> getReferencingAxioms(OWLOntology ontology, boolean includeImports)
OWLEntitygetReferencingAxioms in interface OWLEntityontology - 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.public boolean isAnonymous()
OWLClassExpressionisAnonymous in interface OWLClassExpressiontrue if this is an anonymous class expression, or
false if this is a named class ( OWLClass)public boolean isClassExpressionLiteral()
OWLClassExpressionisClassExpressionLiteral in interface OWLClassExpressiontrue if this is a literal, or false if this is not a
literal.public OWLClass asOWLClass()
OWLClassExpressionOWLClass without the need for
casting. The general pattern of use is to use the isAnonymous to
first checkasOWLClass in interface OWLClassExpressionasOWLClass in interface OWLEntityOWLClass.public boolean isOWLThing()
OWLClassExpressionisOWLThing in interface OWLClassExpressiontrue if this expression is owl:Thing, or false if
this expression is not owl:Thingpublic boolean isOWLNothing()
OWLClassExpressionisOWLNothing in interface OWLClassExpressiontrue if this expression is owl:Nothing, or false
if this expression is not owl:Nothing.public OWLClassExpression getNNF()
OWLClassExpressiongetNNF in interface OWLClassExpressionpublic Set<OWLClassExpression> asConjunctSet()
OWLClassExpressionasConjunctSet in interface OWLClassExpressionpublic boolean containsConjunct(OWLClassExpression ce)
OWLClassExpressioncontainsConjunct in interface OWLClassExpressionce - The conjunct to test fortrue if this class expression is equal to ce or
if this class expression is an ObjectIntersectionOf
(possibly nested withing another ObjectIntersectionOf)
that contains ce, otherwise false.public Set<OWLClassExpression> asDisjunctSet()
OWLClassExpressionasDisjunctSet in interface OWLClassExpressionpublic OWLClassExpression getComplementNNF()
OWLClassExpressiongetComplementNNF in interface OWLClassExpression@Deprecated public Set<OWLSubClassOfAxiom> getSubClassAxioms(OWLOntology ontology)
ontology - ontology@Deprecated public Set<OWLEquivalentClassesAxiom> getEquivalentClassesAxioms(OWLOntology ontology)
ontology - ontology@Deprecated public Set<OWLDisjointClassesAxiom> getDisjointClassesAxioms(OWLOntology ontology)
ontology - ontology@Deprecated public Set<OWLDisjointUnionAxiom> getDisjointUnionAxioms(OWLOntology ontology)
ontology - ontologypublic Set<OWLClassExpression> getSuperClasses(OWLOntology ontology)
OWLClassgetSuperClasses in interface OWLClassontology - The ontology to be examinedSet of OWLClassExpressions that represent the
superclasses of this class, which have been asserted in the
specified ontology.public Set<OWLClassExpression> getSuperClasses(Set<OWLOntology> ontologies)
OWLClassgetSuperClasses in interface OWLClassontologies - The set of ontologies to be examined.OWLClassExpressionss that represent the super
classes of this classpublic Set<OWLClassExpression> getSubClasses(OWLOntology ontology)
OWLClassgetSubClasses in interface OWLClassontology - The ontology which should be examined for subclass axioms.Set of OWLClassExpressions that represet the
asserted subclasses of this class.public Set<OWLClassExpression> getSubClasses(Set<OWLOntology> ontologies)
OWLClassgetSubClasses in interface OWLClassontologies - The ontologies which should be examined for subclass axioms.Set of OWLClassExpressions that represet the
asserted subclasses of this class.public Set<OWLClassExpression> getEquivalentClasses(OWLOntology ontology)
OWLClassgetEquivalentClasses in interface OWLClassontology - The ontology to be examined for axiomsSet of OWLClassExpressions that represent the
equivalent classes of this class, that have been asserted in the
specified ontology.public Set<OWLClassExpression> getEquivalentClasses(Set<OWLOntology> ontologies)
OWLClassgetEquivalentClasses in interface OWLClassontologies - The ontologies to be examined for axiomsSet of OWLClassExpressions that represent the
equivalent classes of this class, that have been asserted in the
specified ontologies.public Set<OWLClassExpression> getDisjointClasses(OWLOntology ontology)
OWLClassgetDisjointClasses in interface OWLClassontology - The ontology to search for disjoint class axiomsSet of OWLClassExpressions that represent the
disjoint classes of this class.public Set<OWLClassExpression> getDisjointClasses(Set<OWLOntology> ontologies)
OWLClassgetDisjointClasses in interface OWLClassontologies - The ontologies to search for disjoint class axiomsSet of OWLClassExpressions that represent the
disjoint classes of this class.public Set<OWLIndividual> getIndividuals(OWLOntology ontology)
OWLClassgetIndividuals in interface OWLClassontology - The ontology to be examined for class assertion axioms that
assert an individual to be an instance of this class.Set of OWLIndividuals that represent the
individual that have been asserted to be an instance of this
class.public Set<OWLIndividual> getIndividuals(Set<OWLOntology> ontologies)
OWLClassgetIndividuals in interface OWLClassontologies - The ontologies to be examined for class assertion axioms that
assert an individual to be an instance of this class.Set of OWLIndividuals that represent the
individual that have been asserted to be an instance of this
class.public Set<OWLAnnotation> getAnnotations(OWLOntology ontology)
OWLEntitygetAnnotations in interface OWLEntityontology - The ontology to be examined for annotation assertion axiomspublic Set<OWLAnnotationAssertionAxiom> getAnnotationAssertionAxioms(OWLOntology ontology)
getAnnotationAssertionAxioms in interface OWLEntityontology - the ontology to usepublic Set<OWLAnnotation> getAnnotations(OWLOntology ontology, OWLAnnotationProperty annotationProperty)
OWLEntitygetAnnotations in interface OWLEntityontology - The ontology to examine for annotation axiomsannotationProperty - The annotation propertyOWLAnnotation objects that have the specified
URI.public boolean isDefined(OWLOntology ontology)
OWLClassOWLEquivalentClassesAxiom in the
specified ontology.public boolean isDefined(Set<OWLOntology> ontologies)
OWLClassOWLEquivalentClassesAxiom in at
least one of the specified ontologies.public OWLDataProperty asOWLDataProperty()
OWLEntityasOWLDataProperty in interface OWLEntitypublic OWLDatatype asOWLDatatype()
OWLEntityasOWLDatatype in interface OWLEntitypublic OWLNamedIndividual asOWLNamedIndividual()
OWLEntityasOWLNamedIndividual in interface OWLEntitypublic OWLObjectProperty asOWLObjectProperty()
OWLEntityasOWLObjectProperty in interface OWLEntitypublic boolean isOWLClass()
OWLEntityisOWLClass in interface OWLEntitytrue if this entity is an OWLClass, otherwise
falsepublic boolean isOWLDataProperty()
OWLEntityisOWLDataProperty in interface OWLEntitytrue if this entity is an OWLDataProperty, otherwise
falsepublic boolean isOWLDatatype()
OWLEntityisOWLDatatype in interface OWLEntitytrue if this entity is an OWLDatatype, otherwise
falsepublic boolean isOWLNamedIndividual()
OWLEntityisOWLNamedIndividual in interface OWLEntitytrue if this entity is an OWLNamedIndividual, otherwise
falsepublic boolean isOWLObjectProperty()
OWLEntityisOWLObjectProperty in interface OWLEntitytrue if this entity is an OWLObjectProperty, otherwise
falsepublic OWLAnnotationProperty asOWLAnnotationProperty()
OWLEntityasOWLAnnotationProperty in interface OWLEntitypublic boolean isOWLAnnotationProperty()
OWLEntityisOWLAnnotationProperty in interface OWLEntitytrue if this entity is an OWLAnnotationProperty,
otherwise falsepublic boolean equals(Object obj)
equals in class OWLObjectImplpublic void accept(OWLClassExpressionVisitor visitor)
OWLClassExpressionaccept in interface OWLClassExpressionvisitor - The visitorpublic void accept(OWLEntityVisitor visitor)
OWLEntitypublic void accept(OWLObjectVisitor visitor)
OWLObjectpublic void accept(OWLNamedObjectVisitor visitor)
OWLNamedObjectaccept in interface OWLNamedObjectvisitor - The visitorpublic <O> O accept(OWLEntityVisitorEx<O> visitor)
OWLEntitypublic <O> O accept(OWLClassExpressionVisitorEx<O> visitor)
OWLClassExpressionaccept in interface OWLClassExpressionO - visitor return typevisitor - The visitorpublic <O> O accept(OWLObjectVisitorEx<O> visitor)
OWLObjectprotected int compareObjectOfSameType(OWLObject object)
compareObjectOfSameType in class OWLObjectImplCopyright © 2014 The University of Manchester. All Rights Reserved.