Package com.complexible.stardog.jena
Class JenaSesameUtils
java.lang.Object
com.complexible.stardog.jena.JenaSesameUtils
Utility methods for converting between the Jena and Sesame APIs
- Since:
- 0.6.9
- Version:
- 6.0
- Author:
- Michael Grove
-
Field Summary
FieldsModifier and TypeFieldDescriptionFunction which will convert sesame statements to Jena graph Triples on the fly -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeCreate a Jena anonymous Graph Node from the Sesame BNodestatic BNodestatic PrefixMapcreatePrefixMap(Optional<Connection> conn) static PrefixMappingstatic IRIstatic booleanisAnyOrNull(Node theNode) static Literalstatic NodeliteralNode(Literal theLiteral) Return a Jena Literal Graph Node from the Sesame Literalstatic Modelstatic NodeReturn the equivalent Jena Graph Node for the provided Sesame Valuestatic Resourcestatic Statementstatic Statementstatic StmtIteratorstmtIterator(Iterator<Statement> theIterator) static Triplestatic Nodestatic Value
-
Field Details
-
TOTRIPLE
Function which will convert sesame statements to Jena graph Triples on the fly -
TOQUAD
-
TOSTMT
-
TO_NODE
-
TO_VALUE
-
-
Method Details
-
stmtIterator
-
statement
-
triple
-
model
-
node
Return the equivalent Jena Graph Node for the provided Sesame Value- Parameters:
theValue- the value- Returns:
- the Jena Node equivalent to the Sesame Value
-
literalNode
Return a Jena Literal Graph Node from the Sesame Literal- Parameters:
theLiteral- the literal- Returns:
- the equivalent Jena graph node for the Sesame Literal
-
anonNode
Create a Jena anonymous Graph Node from the Sesame BNode- Parameters:
theBNode- the bnode- Returns:
- the equivalent Jena Graph node for the Sesame BNode
-
uriNode
-
value
-
isAnyOrNull
-
resource
-
iri
-
bnode
-
literal
-
statement
-
createPrefixMapping
-
createPrefixMap
-