org.semanticweb.owl.util
Class OWLEntityCollector
java.lang.Object
org.semanticweb.owl.util.OWLEntityCollector
- All Implemented Interfaces:
- OWLAnnotationVisitor, OWLAxiomVisitor, OWLDataVisitor, OWLDescriptionVisitor, OWLEntityVisitor, OWLObjectVisitor, OWLPropertyExpressionVisitor, SWRLObjectVisitor
public class OWLEntityCollector
- extends java.lang.Object
- implements OWLObjectVisitor, SWRLObjectVisitor
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 13-Nov-2006
A utiliity class that visits axioms, descriptions etc. and accumulates the named objects
that are referred to in those axioms, descriptions etc. For example, if the collector
visited the axiom (propP some C) subClassOf (propQ some D), it would contain the objects
propP, C, propQ and D.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OWLEntityCollector
public OWLEntityCollector()
reset
public void reset()
- Clears all objects that have accumulated during the course
of visiting axioms, descriptions etc.
setCollectClasses
public void setCollectClasses(boolean collectClasses)
setCollectObjectProperties
public void setCollectObjectProperties(boolean collectObjectProperties)
setCollectDataProperties
public void setCollectDataProperties(boolean collectDataProperties)
setCollectIndividuals
public void setCollectIndividuals(boolean collectIndividuals)
setCollectDataTypes
public void setCollectDataTypes(boolean collectDataTypes)
getObjects
public java.util.Set<OWLEntity> getObjects()
- Gets the objects that are used by all axioms, descriptions etc. that this
collector has visited since it was constructed or reset.
- Returns:
- An unmodifiable set of objects.
visit
public void visit(OWLSubClassAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLNegativeObjectPropertyAssertionAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLAntiSymmetricObjectPropertyAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLReflexiveObjectPropertyAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLDisjointClassesAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLDataPropertyDomainAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLImportsDeclaration axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLAxiomAnnotationAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLObjectPropertyDomainAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLEquivalentObjectPropertiesAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLNegativeDataPropertyAssertionAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLDifferentIndividualsAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLDisjointDataPropertiesAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLDisjointObjectPropertiesAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLObjectPropertyRangeAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLObjectPropertyAssertionAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLFunctionalObjectPropertyAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLObjectSubPropertyAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLDisjointUnionAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLDeclarationAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLSymmetricObjectPropertyAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLDataPropertyRangeAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLFunctionalDataPropertyAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLEquivalentDataPropertiesAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLClassAssertionAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLEquivalentClassesAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLDataPropertyAssertionAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLTransitiveObjectPropertyAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLIrreflexiveObjectPropertyAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLDataSubPropertyAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLInverseFunctionalObjectPropertyAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLSameIndividualsAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLObjectPropertyChainSubPropertyAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLInverseObjectPropertiesAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLClass desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
- Specified by:
visit
in interface OWLEntityVisitor
visit
public void visit(OWLObjectIntersectionOf desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
visit
public void visit(OWLObjectUnionOf desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
visit
public void visit(OWLObjectComplementOf desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
visit
public void visit(OWLObjectSomeRestriction desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
visit
public void visit(OWLObjectAllRestriction desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
visit
public void visit(OWLObjectValueRestriction desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
visit
public void visit(OWLObjectMinCardinalityRestriction desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
visit
public void visit(OWLObjectExactCardinalityRestriction desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
visit
public void visit(OWLObjectMaxCardinalityRestriction desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
visit
public void visit(OWLObjectSelfRestriction desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
visit
public void visit(OWLObjectOneOf desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
visit
public void visit(OWLDataSomeRestriction desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
visit
public void visit(OWLDataAllRestriction desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
visit
public void visit(OWLDataValueRestriction desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
visit
public void visit(OWLDataMinCardinalityRestriction desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
visit
public void visit(OWLDataExactCardinalityRestriction desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
visit
public void visit(OWLDataMaxCardinalityRestriction desc)
- Specified by:
visit
in interface OWLDescriptionVisitor
visit
public void visit(OWLDataComplementOf node)
- Specified by:
visit
in interface OWLDataVisitor
visit
public void visit(OWLDataOneOf node)
- Specified by:
visit
in interface OWLDataVisitor
visit
public void visit(OWLDataRangeRestriction node)
- Specified by:
visit
in interface OWLDataVisitor
visit
public void visit(OWLDataRangeFacetRestriction node)
- Specified by:
visit
in interface OWLDataVisitor
visit
public void visit(OWLTypedConstant node)
- Specified by:
visit
in interface OWLDataVisitor
visit
public void visit(OWLUntypedConstant node)
- Specified by:
visit
in interface OWLDataVisitor
visit
public void visit(OWLObjectPropertyInverse expression)
- Specified by:
visit
in interface OWLPropertyExpressionVisitor
visit
public void visit(OWLObjectProperty property)
- Specified by:
visit
in interface OWLEntityVisitor
- Specified by:
visit
in interface OWLPropertyExpressionVisitor
visit
public void visit(OWLDataProperty property)
- Specified by:
visit
in interface OWLEntityVisitor
- Specified by:
visit
in interface OWLPropertyExpressionVisitor
visit
public void visit(OWLIndividual individual)
- Specified by:
visit
in interface OWLEntityVisitor
visit
public void visit(OWLDataType dataType)
- Specified by:
visit
in interface OWLDataVisitor
- Specified by:
visit
in interface OWLEntityVisitor
visit
public void visit(OWLEntityAnnotationAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLOntologyAnnotationAxiom axiom)
- Specified by:
visit
in interface OWLAxiomVisitor
visit
public void visit(OWLOntology ontology)
- Specified by:
visit
in interface OWLObjectVisitor
visit
public void visit(OWLConstantAnnotation annotation)
- Specified by:
visit
in interface OWLAnnotationVisitor
visit
public void visit(OWLObjectAnnotation annotation)
- Specified by:
visit
in interface OWLAnnotationVisitor
visit
public void visit(SWRLRule rule)
- Specified by:
visit
in interface OWLAxiomVisitor
- Specified by:
visit
in interface SWRLObjectVisitor
visit
public void visit(SWRLClassAtom node)
- Specified by:
visit
in interface SWRLObjectVisitor
visit
public void visit(SWRLDataRangeAtom node)
- Specified by:
visit
in interface SWRLObjectVisitor
visit
public void visit(SWRLObjectPropertyAtom node)
- Specified by:
visit
in interface SWRLObjectVisitor
visit
public void visit(SWRLDataValuedPropertyAtom node)
- Specified by:
visit
in interface SWRLObjectVisitor
visit
public void visit(SWRLBuiltInAtom node)
- Specified by:
visit
in interface SWRLObjectVisitor
visit
public void visit(SWRLAtomDVariable node)
- Specified by:
visit
in interface SWRLObjectVisitor
visit
public void visit(SWRLAtomIVariable node)
- Specified by:
visit
in interface SWRLObjectVisitor
visit
public void visit(SWRLAtomIndividualObject node)
- Specified by:
visit
in interface SWRLObjectVisitor
visit
public void visit(SWRLAtomConstantObject node)
- Specified by:
visit
in interface SWRLObjectVisitor
visit
public void visit(SWRLDifferentFromAtom node)
- Specified by:
visit
in interface SWRLObjectVisitor
visit
public void visit(SWRLSameAsAtom node)
- Specified by:
visit
in interface SWRLObjectVisitor