public final class JenaSesameUtils extends Object
Utility methods for converting between the Jena and Sesame APIs
| Modifier and Type | Field and Description |
|---|---|
static Function<org.openrdf.model.Value,Node> |
TO_NODE |
static Function<Node,org.openrdf.model.Value> |
TO_VALUE |
static Function<org.openrdf.model.Statement,Quad> |
TOQUAD |
static Function<Triple,Statement> |
TOSTMT |
static Function<org.openrdf.model.Statement,Triple> |
TOTRIPLE
Function which will convert sesame statements to Jena graph Triples on the fly
|
| Modifier and Type | Method and Description |
|---|---|
static Node |
anonNode(org.openrdf.model.BNode theBNode)
Create a Jena anonymous Graph Node from the Sesame BNode
|
static org.openrdf.model.BNode |
bnode(Node theNode) |
static org.openrdf.model.IRI |
iri(Node theNode) |
static boolean |
isAnyOrNull(Node theNode) |
static org.openrdf.model.Literal |
literal(Node theNode) |
static Node |
literalNode(org.openrdf.model.Literal theLiteral)
Return a Jena Literal Graph Node from the Sesame Literal
|
static Model |
model(org.openrdf.model.Model theGraph) |
static Node |
node(org.openrdf.model.Value theValue)
Return the equivalent Jena Graph Node for the provided Sesame Value
|
static org.openrdf.model.Resource |
resource(Node theNode) |
static Statement |
statement(org.openrdf.model.Statement theStatement) |
static org.openrdf.model.Statement |
statement(Triple theTriple) |
static StmtIterator |
stmtIterator(Iterator<org.openrdf.model.Statement> theIterator) |
static Triple |
triple(org.openrdf.model.Statement theStatement) |
static Node |
uriNode(org.openrdf.model.IRI theURI) |
static org.openrdf.model.Value |
value(Node theNode) |
public static final Function<org.openrdf.model.Statement,Triple> TOTRIPLE
public static StmtIterator stmtIterator(Iterator<org.openrdf.model.Statement> theIterator)
public static Statement statement(org.openrdf.model.Statement theStatement)
public static Triple triple(org.openrdf.model.Statement theStatement)
public static Model model(org.openrdf.model.Model theGraph)
public static Node node(org.openrdf.model.Value theValue)
theValue - the valuepublic static Node literalNode(org.openrdf.model.Literal theLiteral)
theLiteral - the literalpublic static Node anonNode(org.openrdf.model.BNode theBNode)
theBNode - the bnodepublic static Node uriNode(org.openrdf.model.IRI theURI)
public static org.openrdf.model.Value value(Node theNode)
public static boolean isAnyOrNull(Node theNode)
public static org.openrdf.model.Resource resource(Node theNode)
public static org.openrdf.model.IRI iri(Node theNode)
public static org.openrdf.model.BNode bnode(Node theNode)
public static org.openrdf.model.Literal literal(Node theNode)
public static org.openrdf.model.Statement statement(Triple theTriple)
Copyright © 2010-2016 Stardog Union. All Rights Reserved.