Package ubic.basecode.ontology.jena
Class JenaUtils
- java.lang.Object
-
- ubic.basecode.ontology.jena.JenaUtils
-
public class JenaUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description JenaUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
asString(com.hp.hpl.jena.rdf.model.RDFNode object)
Use to pretty-print a RDFNodestatic Collection<com.hp.hpl.jena.ontology.OntClass>
getChildren(com.hp.hpl.jena.ontology.OntModel model, Collection<com.hp.hpl.jena.ontology.OntClass> terms, boolean direct, Set<com.hp.hpl.jena.ontology.Restriction> additionalRestrictions)
static Collection<com.hp.hpl.jena.ontology.OntClass>
getParents(com.hp.hpl.jena.ontology.OntModel model, Collection<com.hp.hpl.jena.ontology.OntClass> ontClasses, boolean direct, Set<com.hp.hpl.jena.ontology.Restriction> additionalRestrictions)
static com.hp.hpl.jena.rdf.model.Resource
getRestrictionValue(com.hp.hpl.jena.ontology.Restriction r)
static <T> com.hp.hpl.jena.util.iterator.Filter<T>
where(Predicate<T> predicate)
-
-
-
Method Detail
-
getParents
public static Collection<com.hp.hpl.jena.ontology.OntClass> getParents(com.hp.hpl.jena.ontology.OntModel model, Collection<com.hp.hpl.jena.ontology.OntClass> ontClasses, boolean direct, @Nullable Set<com.hp.hpl.jena.ontology.Restriction> additionalRestrictions)
-
getChildren
public static Collection<com.hp.hpl.jena.ontology.OntClass> getChildren(com.hp.hpl.jena.ontology.OntModel model, Collection<com.hp.hpl.jena.ontology.OntClass> terms, boolean direct, @Nullable Set<com.hp.hpl.jena.ontology.Restriction> additionalRestrictions)
-
getRestrictionValue
public static com.hp.hpl.jena.rdf.model.Resource getRestrictionValue(com.hp.hpl.jena.ontology.Restriction r)
-
asString
public static String asString(com.hp.hpl.jena.rdf.model.RDFNode object)
Use to pretty-print a RDFNode
-
where
public static <T> com.hp.hpl.jena.util.iterator.Filter<T> where(Predicate<T> predicate)
-
-