|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.manchester.cs.owl.OWLObjectImpl
uk.ac.manchester.cs.owl.OWLClassImpl
public class OWLClassImpl
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 25-Oct-2006
Constructor Summary | |
---|---|
OWLClassImpl(OWLDataFactory dataFactory,
java.net.URI uri)
|
Method Summary | ||
---|---|---|
void |
accept(OWLDescriptionVisitor visitor)
Accepts a visit from an OWLDescriptionVisitor |
|
|
accept(OWLDescriptionVisitorEx<O> visitor)
|
|
void |
accept(OWLEntityVisitor visitor)
|
|
|
accept(OWLEntityVisitorEx<O> visitor)
|
|
void |
accept(OWLNamedObjectVisitor visitor)
|
|
void |
accept(OWLObjectVisitor visitor)
|
|
|
accept(OWLObjectVisitorEx<O> visitor)
|
|
OWLClass |
asOWLClass()
If this class description is in fact a named class then this method may be used to obtain the description 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). |
|
OWLIndividual |
asOWLIndividual()
A convenience method that obtains this entity as an OWLIndividual (in order to avoid explicit casting). |
|
OWLObjectProperty |
asOWLObjectProperty()
A convenience method that obtains this entity as an OWLObjectProperty (in order to avoid explicit casting). |
|
boolean |
equals(java.lang.Object obj)
|
|
java.util.Set<OWLAnnotationAxiom> |
getAnnotationAxioms(OWLOntology ontology)
|
|
java.util.Set<OWLAnnotation> |
getAnnotations(OWLOntology ontology)
Obtains annotations on this entity where the annotation have been asserted on the specified entity. |
|
java.util.Set<OWLAnnotation> |
getAnnotations(OWLOntology ontology,
java.net.URI annotationURI)
Obtains the annotations on this entity where the annotation has the specified URI. |
|
OWLDescription |
getComplementNNF()
Gets the negation normal form of the complement of this description. |
|
java.util.Set<OWLDescription> |
getDisjointClasses(OWLOntology ontology)
Gets the classes which have been asserted to be disjoint with this class by axioms in the specified ontology. |
|
java.util.Set<OWLDescription> |
getDisjointClasses(java.util.Set<OWLOntology> ontologies)
Gets the classes which have been asserted to be disjoint with this class by axioms in the specified ontologies. |
|
java.util.Set<OWLDisjointClassesAxiom> |
getDisjointClassesAxioms(OWLOntology ontology)
|
|
java.util.Set<OWLDisjointUnionAxiom> |
getDisjointUnionAxioms(OWLOntology ontology)
|
|
java.util.Set<OWLDescription> |
getEquivalentClasses(OWLOntology ontology)
A convenience method that examines the axioms in the specified ontology and returns the descriptions corresponding to equivalent classes of this class. |
|
java.util.Set<OWLDescription> |
getEquivalentClasses(java.util.Set<OWLOntology> ontologies)
A convenience method that examines the axioms in the specified ontologies and returns the descriptions corresponding to equivalent classes of this class. |
|
java.util.Set<OWLEquivalentClassesAxiom> |
getEquivalentClassesAxioms(OWLOntology ontology)
|
|
java.util.Set<OWLIndividual> |
getIndividuals(OWLOntology ontology)
Gets the individuals that have been asserted to be an instance of this class by axioms in the speficied ontology. |
|
java.util.Set<OWLIndividual> |
getIndividuals(java.util.Set<OWLOntology> ontologies)
Gets the individuals that have been asserted to be an instance of this class by axioms in the speficied ontologies. |
|
OWLDescription |
getNNF()
Gets this description in negation normal form. |
|
java.util.Set<OWLSubClassAxiom> |
getSubClassAxioms(OWLOntology ontology)
|
|
java.util.Set<OWLDescription> |
getSubClasses(OWLOntology ontology)
Gets the classes which have been asserted to be subclasses of this class in the specified ontology. |
|
java.util.Set<OWLDescription> |
getSubClasses(java.util.Set<OWLOntology> ontologies)
Gets the classes which have been asserted to be subclasses of this class in the specified ontologies. |
|
java.util.Set<OWLDescription> |
getSuperClasses(OWLOntology ontology)
A convenience method that examines the axioms in the specified ontology and return the descriptions corresponding to super classes of this class. |
|
java.util.Set<OWLDescription> |
getSuperClasses(java.util.Set<OWLOntology> ontologies)
A convenience method that examines the axioms in the specified ontologies and returns the description corresponding to the asserted super classes of this class. |
|
java.net.URI |
getURI()
Gets the name of this object. |
|
boolean |
isAnonymous()
Determines whether or not this description represents an anonymous class description. |
|
boolean |
isDefined(OWLOntology ontology)
Determines if this class has at least one equivalent class in the specified ontology. |
|
boolean |
isDefined(java.util.Set<OWLOntology> ontologies)
Determines if this class has at least one equvialent class specified by an equvialent classes axiom in one of the ontologies. |
|
boolean |
isLiteral()
Determines if this class is a literal. |
|
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 |
isOWLIndividual()
A convenience method that determines if this entity is an OWLIndividual |
|
boolean |
isOWLNothing()
Determines if this description 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 description is the built in class owl:Thing. |
Methods inherited from class uk.ac.manchester.cs.owl.OWLObjectImpl |
---|
compareTo, getOWLDataFactory, getSignature, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OWLClassImpl(OWLDataFactory dataFactory, java.net.URI uri)
Method Detail |
---|
public boolean isAnonymous()
OWLDescription
isAnonymous
in interface OWLDescription
true
if this is an anonymous class description,
or false
if this is a named class (OWLClass
)public boolean isLiteral()
OWLDescription
isLiteral
in interface OWLDescription
true
if this is a literal, or false if this
is not a literal.public OWLClass asOWLClass()
OWLDescription
OWLClass
without the need for casting. The general pattern of use is to use
the isAnonymous
to first check
asOWLClass
in interface OWLDescription
asOWLClass
in interface OWLEntity
OWLClass
.public java.net.URI getURI()
OWLNamedObject
getURI
in interface OWLNamedObject
URI
that represents the name
of the objectpublic boolean isOWLThing()
OWLDescription
isOWLThing
in interface OWLDescription
true
if this description is owl:Thing,
or false
if this description is not owl:Thingpublic boolean isOWLNothing()
OWLDescription
isOWLNothing
in interface OWLDescription
true
if this description is owl:Nothing,
or false
if this description is not owl:Nothing.public OWLDescription getNNF()
OWLDescription
getNNF
in interface OWLDescription
public OWLDescription getComplementNNF()
OWLDescription
getComplementNNF
in interface OWLDescription
public java.util.Set<OWLSubClassAxiom> getSubClassAxioms(OWLOntology ontology)
public java.util.Set<OWLEquivalentClassesAxiom> getEquivalentClassesAxioms(OWLOntology ontology)
public java.util.Set<OWLDisjointClassesAxiom> getDisjointClassesAxioms(OWLOntology ontology)
public java.util.Set<OWLDisjointUnionAxiom> getDisjointUnionAxioms(OWLOntology ontology)
public java.util.Set<OWLDescription> getSuperClasses(OWLOntology ontology)
OWLClass
getSuperClasses
in interface OWLClass
ontology
- The ontology to be examined
Set
of OWLDescription
s that represent
the superclasses of this class, which have been asserted in the specified
ontology.public java.util.Set<OWLDescription> getSuperClasses(java.util.Set<OWLOntology> ontologies)
OWLClass
getSuperClasses
in interface OWLClass
ontologies
- The set of ontologies to be examined.
OWLDescription
s that represent the super classes
of this classpublic java.util.Set<OWLDescription> getSubClasses(OWLOntology ontology)
OWLClass
getSubClasses
in interface OWLClass
ontology
- The ontology which should be examined for subclass axioms.
Set
of OWLDescription
s that represet the
asserted subclasses of this class.public java.util.Set<OWLDescription> getSubClasses(java.util.Set<OWLOntology> ontologies)
OWLClass
getSubClasses
in interface OWLClass
ontologies
- The ontologies which should be examined for subclass axioms.
Set
of OWLDescription
s that represet the
asserted subclasses of this class.public java.util.Set<OWLDescription> getEquivalentClasses(OWLOntology ontology)
OWLClass
getEquivalentClasses
in interface OWLClass
ontology
- The ontology to be examined for axioms
Set
of OWLDescription
s that represent
the equivalent classes of this class, that have been asserted in the specified
ontology.public java.util.Set<OWLDescription> getEquivalentClasses(java.util.Set<OWLOntology> ontologies)
OWLClass
getEquivalentClasses
in interface OWLClass
ontologies
- The ontologies to be examined for axioms
Set
of OWLDescription
s that represent
the equivalent classes of this class, that have been asserted in the specified
ontologies.public java.util.Set<OWLDescription> getDisjointClasses(OWLOntology ontology)
OWLClass
getDisjointClasses
in interface OWLClass
ontology
- The ontology to search for disjoint class axioms
Set
of OWLDescription
s that represent
the disjoint classes of this class.public java.util.Set<OWLDescription> getDisjointClasses(java.util.Set<OWLOntology> ontologies)
OWLClass
getDisjointClasses
in interface OWLClass
ontologies
- The ontologies to search for disjoint class axioms
Set
of OWLDescription
s that represent
the disjoint classes of this class.public java.util.Set<OWLIndividual> getIndividuals(OWLOntology ontology)
OWLClass
getIndividuals
in interface OWLClass
ontology
- The ontology to be examined for class assertion axioms that
assert an individual to be an instance of this class.
Set
of OWLIndividual
s that represent
the individual that have been asserted to be an instance of this class.public java.util.Set<OWLIndividual> getIndividuals(java.util.Set<OWLOntology> ontologies)
OWLClass
getIndividuals
in interface OWLClass
ontologies
- The ontologies to be examined for class assertion axioms that
assert an individual to be an instance of this class.
Set
of OWLIndividual
s that represent
the individual that have been asserted to be an instance of this class.public java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology)
OWLEntity
getAnnotations
in interface OWLEntity
public java.util.Set<OWLAnnotationAxiom> getAnnotationAxioms(OWLOntology ontology)
getAnnotationAxioms
in interface OWLEntity
public java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology, java.net.URI annotationURI)
OWLEntity
getAnnotations
in interface OWLEntity
ontology
- The ontology to examine for annotation axiomsannotationURI
- The annotation URI
OWLAnnotation
objects that have the specified
URI.public boolean isDefined(OWLOntology ontology)
isDefined
in interface OWLClass
ontology
- The ontology to examine for axioms.public boolean isDefined(java.util.Set<OWLOntology> ontologies)
OWLClass
isDefined
in interface OWLClass
ontologies
- The ontologies to be examined for equivalent classes axiomspublic OWLDataProperty asOWLDataProperty()
OWLEntity
asOWLDataProperty
in interface OWLEntity
public OWLDataType asOWLDataType()
OWLEntity
asOWLDataType
in interface OWLEntity
public OWLIndividual asOWLIndividual()
OWLEntity
asOWLIndividual
in interface OWLEntity
public OWLObjectProperty asOWLObjectProperty()
OWLEntity
asOWLObjectProperty
in interface OWLEntity
public boolean isOWLClass()
OWLEntity
isOWLClass
in interface OWLEntity
true
if this entity is an OWLClass, otherwise false
public boolean isOWLDataProperty()
OWLEntity
isOWLDataProperty
in interface OWLEntity
true
if this entity is an OWLDataProperty, otherwise false
public boolean isOWLDataType()
OWLEntity
isOWLDataType
in interface OWLEntity
true
if this entity is an OWLDataType, otherwise false
public boolean isOWLIndividual()
OWLEntity
isOWLIndividual
in interface OWLEntity
true
if this entity is an OWLIndividual, otherwise false
public boolean isOWLObjectProperty()
OWLEntity
isOWLObjectProperty
in interface OWLEntity
true
if this entity is an OWLObjectProperty, otherwise false
public boolean equals(java.lang.Object obj)
equals
in class OWLObjectImpl
public void accept(OWLDescriptionVisitor visitor)
OWLDescription
OWLDescriptionVisitor
accept
in interface OWLDescription
visitor
- The visitor that wants to visitpublic void accept(OWLEntityVisitor visitor)
accept
in interface OWLEntity
public void accept(OWLObjectVisitor visitor)
accept
in interface OWLObject
public void accept(OWLNamedObjectVisitor visitor)
accept
in interface OWLNamedObject
public <O> O accept(OWLEntityVisitorEx<O> visitor)
accept
in interface OWLEntity
public <O> O accept(OWLDescriptionVisitorEx<O> visitor)
accept
in interface OWLDescription
public <O> O accept(OWLObjectVisitorEx<O> visitor)
accept
in interface OWLObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |