Class JenaUtils
java.lang.Object
cz.cvut.kbss.ontodriver.jena.util.JenaUtils
Utility methods for working with Jena API.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
literalToValue
(org.apache.jena.rdf.model.Literal literal) static org.apache.jena.rdf.model.RDFNode
Transforms the specified value to anRDFNode
, be it a resource or a literal.static <T> org.apache.jena.rdf.model.RDFNode
valueToRdfNode
(Assertion assertion, Value<T> value) Transforms the specifiedValue
to 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 specifiedValue
to 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
-