|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.semanticweb.owl.model.helper.OntologyHelper
Helper functions for things like accessing the classes and properties of an ontology.
| Constructor Summary | |
OntologyHelper()
|
|
| Method Summary | |
static Set |
allDefinitionsAsAxioms(OWLOntology ontology)
Returns a collection of OWLClassAxioms that
represent all the assertions made about classes in the
ontology. |
static Set |
allPropertyDefinitionsAsAxioms(OWLOntology ontology)
Returns a collection of OWLPropertyAxioms that
represent all the assertions made about classes in the
ontology. |
static Set |
allSuperProperties(OWLProperty prop,
Set ontologies)
|
static Set |
allURIs(OWLOntology ontology)
Returns all the uris of all the entities in the ontology. |
static List |
getAnnotations(OWLOntology ontology,
OWLObject oo,
OWLAnnotationProperty oap)
Return the objects which are the fillers in the annotations applied to the given object using the given annotation property. |
static OWLClass |
getClassNamed(OWLOntology ontology,
URI uri)
|
static OWLDataProperty |
getDataPropertyNamed(OWLOntology ontology,
URI uri)
|
static OWLIndividual |
getIndividualNamed(OWLOntology ontology,
URI uri)
|
static OWLObjectProperty |
getObjectPropertyNamed(OWLOntology ontology,
URI uri)
|
static OWLOntology |
getOntology(URI uri)
Returns an ontology from the given URI. |
static Set |
getRDFLabels(OWLOntology ontology,
OWLObject oo)
Returns all annotations on the object using the rdfs:label annotation property using any language. |
static Set |
getRDFLabels(OWLOntology ontology,
OWLObject oo,
String language)
Returns all annotations on the object using the rdfs:label annotation property using the given language. |
static Set |
importClosure(OWLOntology ontology)
Returns the (unordered) closure of the imports from the given ontology. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OntologyHelper()
| Method Detail |
public static Set importClosure(OWLOntology ontology)
throws OWLException
OWLException
public static OWLClass getClassNamed(OWLOntology ontology,
URI uri)
throws OWLException
OWLException
public static OWLIndividual getIndividualNamed(OWLOntology ontology,
URI uri)
throws OWLException
OWLException
public static OWLObjectProperty getObjectPropertyNamed(OWLOntology ontology,
URI uri)
throws OWLException
OWLException
public static OWLDataProperty getDataPropertyNamed(OWLOntology ontology,
URI uri)
throws OWLException
OWLException
public static Set allURIs(OWLOntology ontology)
throws OWLException
OWLException
public static Set allDefinitionsAsAxioms(OWLOntology ontology)
throws OWLException
OWLClassAxioms that
represent all the assertions made about classes in the
ontology. This includes all the axioms that are in the ontology,
along with additional axioms representing any of the class
definitions that are in the ontology. Provides a "uniform" view of
the assertions that can be useful for rendering, or in the case
where a simple representation of the asserted information is
required.
OWLException
public static Set allPropertyDefinitionsAsAxioms(OWLOntology ontology)
throws OWLException
OWLPropertyAxioms that
represent all the assertions made about classes in the
ontology. This includes all the axioms that are in the ontology,
along with additional axioms representing any of the class
definitions that are in the ontology. Provides a "uniform" view of
the assertions that can be useful for rendering, or in the case
where a simple representation of the asserted information is
required.
OWLException
public static Set allSuperProperties(OWLProperty prop,
Set ontologies)
throws OWLException
OWLException
public static List getAnnotations(OWLOntology ontology,
OWLObject oo,
OWLAnnotationProperty oap)
throws OWLException
OWLException
public static OWLOntology getOntology(URI uri)
throws OWLException
org.semanticweb.owl.util.OWLConnection system
property. This method is provided primarily for testing
purposes — for example it allows one to write
main methods that access ontologies without
introducing compile time dependencies on particular
implementations.
OWLException
public static Set getRDFLabels(OWLOntology ontology,
OWLObject oo,
String language)
throws OWLException
ontology - an Ontology valuelanguage - a String value. If null, returns
all labels.
Set of Strings.
OWLException
public static Set getRDFLabels(OWLOntology ontology,
OWLObject oo)
throws OWLException
ontology - an Ontology value
Set of Strings.
OWLException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||