|
||||||||||
| 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 OWLDescriptiontrue if this is an anonymous class description,
or false if this is a named class (OWLClass)public boolean isLiteral()
OWLDescription
isLiteral in interface OWLDescriptiontrue if this is a literal, or false if this
is not a literal.public OWLClass asOWLClass()
OWLDescriptionOWLClass
without the need for casting. The general pattern of use is to use
the isAnonymous to first check
asOWLClass in interface OWLDescriptionasOWLClass in interface OWLEntityOWLClass.public java.net.URI getURI()
OWLNamedObject
getURI in interface OWLNamedObjectURI that represents the name
of the objectpublic boolean isOWLThing()
OWLDescription
isOWLThing in interface OWLDescriptiontrue if this description is owl:Thing,
or false if this description is not owl:Thingpublic boolean isOWLNothing()
OWLDescription
isOWLNothing in interface OWLDescriptiontrue if this description is owl:Nothing,
or false if this description is not owl:Nothing.public OWLDescription getNNF()
OWLDescription
getNNF in interface OWLDescriptionpublic OWLDescription getComplementNNF()
OWLDescription
getComplementNNF in interface OWLDescriptionpublic 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 OWLClassontology - The ontology to be examined
Set of OWLDescriptions 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 OWLClassontologies - The set of ontologies to be examined.
OWLDescriptions that represent the super classes
of this classpublic java.util.Set<OWLDescription> getSubClasses(OWLOntology ontology)
OWLClass
getSubClasses in interface OWLClassontology - The ontology which should be examined for subclass axioms.
Set of OWLDescriptions that represet the
asserted subclasses of this class.public java.util.Set<OWLDescription> getSubClasses(java.util.Set<OWLOntology> ontologies)
OWLClass
getSubClasses in interface OWLClassontologies - The ontologies which should be examined for subclass axioms.
Set of OWLDescriptions that represet the
asserted subclasses of this class.public java.util.Set<OWLDescription> getEquivalentClasses(OWLOntology ontology)
OWLClass
getEquivalentClasses in interface OWLClassontology - The ontology to be examined for axioms
Set of OWLDescriptions 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 OWLClassontologies - The ontologies to be examined for axioms
Set of OWLDescriptions 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 OWLClassontology - The ontology to search for disjoint class axioms
Set of OWLDescriptions that represent
the disjoint classes of this class.public java.util.Set<OWLDescription> getDisjointClasses(java.util.Set<OWLOntology> ontologies)
OWLClass
getDisjointClasses in interface OWLClassontologies - The ontologies to search for disjoint class axioms
Set of OWLDescriptions that represent
the disjoint classes of this class.public java.util.Set<OWLIndividual> getIndividuals(OWLOntology ontology)
OWLClass
getIndividuals 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 java.util.Set<OWLIndividual> getIndividuals(java.util.Set<OWLOntology> ontologies)
OWLClass
getIndividuals 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 java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology)
OWLEntity
getAnnotations in interface OWLEntitypublic 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 OWLEntityontology - 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 OWLClassontology - The ontology to examine for axioms.public boolean isDefined(java.util.Set<OWLOntology> ontologies)
OWLClass
isDefined in interface OWLClassontologies - The ontologies to be examined for equivalent classes axiomspublic OWLDataProperty asOWLDataProperty()
OWLEntity
asOWLDataProperty in interface OWLEntitypublic OWLDataType asOWLDataType()
OWLEntity
asOWLDataType in interface OWLEntitypublic OWLIndividual asOWLIndividual()
OWLEntity
asOWLIndividual in interface OWLEntitypublic OWLObjectProperty asOWLObjectProperty()
OWLEntity
asOWLObjectProperty in interface OWLEntitypublic boolean isOWLClass()
OWLEntity
isOWLClass in interface OWLEntitytrue if this entity is an OWLClass, otherwise falsepublic boolean isOWLDataProperty()
OWLEntity
isOWLDataProperty in interface OWLEntitytrue if this entity is an OWLDataProperty, otherwise falsepublic boolean isOWLDataType()
OWLEntity
isOWLDataType in interface OWLEntitytrue if this entity is an OWLDataType, otherwise falsepublic boolean isOWLIndividual()
OWLEntity
isOWLIndividual in interface OWLEntitytrue if this entity is an OWLIndividual, otherwise falsepublic boolean isOWLObjectProperty()
OWLEntity
isOWLObjectProperty in interface OWLEntitytrue if this entity is an OWLObjectProperty, otherwise falsepublic boolean equals(java.lang.Object obj)
equals in class OWLObjectImplpublic void accept(OWLDescriptionVisitor visitor)
OWLDescriptionOWLDescriptionVisitor
accept in interface OWLDescriptionvisitor - The visitor that wants to visitpublic void accept(OWLEntityVisitor visitor)
accept in interface OWLEntitypublic void accept(OWLObjectVisitor visitor)
accept in interface OWLObjectpublic void accept(OWLNamedObjectVisitor visitor)
accept in interface OWLNamedObjectpublic <O> O accept(OWLEntityVisitorEx<O> visitor)
accept in interface OWLEntitypublic <O> O accept(OWLDescriptionVisitorEx<O> visitor)
accept in interface OWLDescriptionpublic <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 | |||||||||