Class JenaUtils
java.lang.Object
cz.cvut.kbss.ontodriver.jena.util.JenaUtils
Utility methods for working with Jena API.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectliteralToValue(org.apache.jena.rdf.model.Literal literal) static org.apache.jena.rdf.model.RDFNodeTransforms the specified value to anRDFNode, be it a resource or a literal.static <T> org.apache.jena.rdf.model.RDFNodevalueToRdfNode(Assertion assertion, Value<T> value) Transforms the specifiedValueto anRDFNode, be it a resource or a literal.
-
Method Details
-
valueToRdfNode
public static <T> org.apache.jena.rdf.model.RDFNode valueToRdfNode(Assertion assertion, Value<T> value) Transforms the specifiedValueto anRDFNode, be it a resource or a literal.- Parameters:
assertion- Assertion representing the asserted propertyvalue- Value to transform- Returns:
- Jena RDFNode
-
toRdfNode
Transforms the specified value to anRDFNode, be it a resource or a literal.- Parameters:
assertion- Assertion representing the asserted propertyvalue- Value to transform- Returns:
- Jena RDFNode
-
literalToValue
-