Package com.epimorphics.rdfutil
Class OntologyUtil
- java.lang.Object
-
- com.epimorphics.rdfutil.OntologyUtil
-
public class OntologyUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description OntologyUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.jena.rdf.model.ResourcecommonSuperClass(org.apache.jena.rdf.model.Resource c1, org.apache.jena.rdf.model.Resource c2)Return the common superclass of two classes, of null if there is no common superclass in the raw ontologies (OWL inference is not used so owl:Thing might not be found).static org.apache.jena.datatypes.xsd.XSDDatatypecommonSuperDatatype(org.apache.jena.datatypes.xsd.XSDDatatype t1, org.apache.jena.datatypes.xsd.XSDDatatype t2)Return the common super type of two xsd type datatypes or return null if they are not compatible.static List<org.apache.jena.rdf.model.Resource>depthfirstSuperclasses(org.apache.jena.rdf.model.Resource start)Find all the superclasses of the given starting class, in depth first order.
-
-
-
Method Detail
-
commonSuperDatatype
public static org.apache.jena.datatypes.xsd.XSDDatatype commonSuperDatatype(org.apache.jena.datatypes.xsd.XSDDatatype t1, org.apache.jena.datatypes.xsd.XSDDatatype t2)Return the common super type of two xsd type datatypes or return null if they are not compatible.
-
commonSuperClass
public static org.apache.jena.rdf.model.Resource commonSuperClass(org.apache.jena.rdf.model.Resource c1, org.apache.jena.rdf.model.Resource c2)Return the common superclass of two classes, of null if there is no common superclass in the raw ontologies (OWL inference is not used so owl:Thing might not be found).
-
depthfirstSuperclasses
public static List<org.apache.jena.rdf.model.Resource> depthfirstSuperclasses(org.apache.jena.rdf.model.Resource start)
Find all the superclasses of the given starting class, in depth first order. Assumes the model does not have closure statements for rdfs:subClassOf.
-
-