|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.owl.utils.OntologyUtils
public class OntologyUtils
Utilities for operating on ontology data within a INamedGraph
| Constructor Summary | |
|---|---|
OntologyUtils()
|
|
| Method Summary | |
|---|---|
static java.util.List<_Property> |
findDeclaredProperties(Class clazz)
Get the set of properties whose domain matches the class |
static java.util.Collection<org.openrdf.model.Resource> |
getAllClasses(INamedGraph graph,
boolean directlyAssertedOnly)
Get the set of all defined Classes within the INamedGraph |
static java.util.Collection<org.openrdf.model.Resource> |
getAllImplementors(INamedGraph graph,
Class clazz,
boolean directlyAssertedOnly)
Within an INamedGraph, retrieve all the individuals of the given class type |
static java.util.Collection<Individual> |
getAllIndividuals(INamedGraph graph,
Class clazz)
Get all individuals for the given class type. |
static java.util.List<Class> |
getDomain(_Property property)
Get the set of Classes that make up the Domain of a property |
static java.util.List<Class> |
getRange(_Property property)
Get the set of Classes that make up the Range of a property |
static java.util.List<Class> |
getSubClasses(Class clazz,
boolean directlyAssertedOnly)
Get subclasses for a given Class |
static java.util.List<org.openrdf.model.Resource> |
getSubClasses(INamedGraph graph,
org.openrdf.model.Resource clazz,
boolean directlyAssertedOnly)
Get subclasses for a given Class |
static java.util.List<_Property> |
getSubProperties(_Property property,
boolean directlyAssertedOnly)
Get set of sub properties for the property |
static java.util.List<Class> |
getSuperClasses(Class clazz,
boolean directlyAssertedOnly)
Get super classes for a given Class |
static java.util.List<_Property> |
getSuperProperties(_Property property,
boolean directlyAssertedOnly)
Get set of super properties for the property |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OntologyUtils()
| Method Detail |
|---|
public static java.util.Collection<org.openrdf.model.Resource> getAllImplementors(INamedGraph graph,
Class clazz,
boolean directlyAssertedOnly)
graph - graph containing dataclazz - class for which whose type must matchdirectlyAssertedOnly - only include individuals that directly assert the classes type
public static java.util.Collection<org.openrdf.model.Resource> getAllClasses(INamedGraph graph,
boolean directlyAssertedOnly)
graph - graph containing datadirectlyAssertedOnly - only include classes that directly assert RDFS.CLASS type or OWL.CLASS type
public static java.util.List<org.openrdf.model.Resource> getSubClasses(INamedGraph graph,
org.openrdf.model.Resource clazz,
boolean directlyAssertedOnly)
graph - graph containing dataclazz - type of class of which to find subclassesdirectlyAssertedOnly - only include classes that are directlyAssertedOnly subclasses
public static java.util.List<Class> getSubClasses(Class clazz,
boolean directlyAssertedOnly)
clazz - class of which to find subclassesdirectlyAssertedOnly - only include classes that directly asserted subclasses
public static java.util.List<Class> getSuperClasses(Class clazz,
boolean directlyAssertedOnly)
clazz - class of which to find super classesdirectlyAssertedOnly - only include classes that directly asserted super classes
public static java.util.List<_Property> getSubProperties(_Property property,
boolean directlyAssertedOnly)
property - property of which to find sub propertiesdirectlyAssertedOnly - only include directly asserted sub properties
public static java.util.List<_Property> getSuperProperties(_Property property,
boolean directlyAssertedOnly)
property - property of which to find super propertiesdirectlyAssertedOnly - only include directly asserted super properties
public static java.util.Collection<Individual> getAllIndividuals(INamedGraph graph,
Class clazz)
graph - graph containing dataclazz - class of which to find individuals
public static java.util.List<Class> getRange(_Property property)
property - property of which to find the Range classes
public static java.util.List<Class> getDomain(_Property property)
property - property of which to find the Domain classes
public static java.util.List<_Property> findDeclaredProperties(Class clazz)
throws JastorException
clazz - class for which to find properties
JastorException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||