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