public class GraphUtils extends Object
Constructor and Description |
---|
GraphUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addTriplet(G graph,
Object s,
Object p,
Object o)
Add a triplet to the given graph.
|
static void |
addTriplet(G graph,
String s,
String p,
String o)
Add a triplet to the given graph.
|
static E |
buildTriplet(Object s,
Object p,
Object o)
Build a triplet of URIs considering the given subject-predicate-object
objects (for instance, specified as URI or String objects).
|
static E |
buildTriplet(String s,
String p,
String o)
Build a triplet of URIs considering the given subject-predicate-object
objects as String objects.
|
static E |
buildTriplet(URIFactory f,
Object s,
Object p,
Object o)
Build a triplet of URIs considering the given subject-predicate-object
objects (for instance, specified as URI or String objects).
|
static E |
buildTriplet(URIFactory f,
String s,
String p,
String o)
Build a triplet of URIs considering the given subject-predicate-object
objects as String objects.
|
static void |
loadStatements(G g,
org.openrdf.repository.RepositoryResult<org.openrdf.model.Statement> statements)
Load the set of statements only composed of URIs into the given graph.
|
public static E buildTriplet(Object s, Object p, Object o)
s
- the URI which refers to the subject of the triplet (possibly as
a String)p
- the URI which refers to the predicate of the triplet (possibly
as a String)o
- the URI which refers to the object of the triplet (possibly as a
String)public static E buildTriplet(String s, String p, String o)
s
- the URI which refers to the subject of the tripletp
- the URI which refers to the predicate of the tripleto
- the URI which refers to the object of the tripletpublic static E buildTriplet(URIFactory f, String s, String p, String o)
f
- the factory which will be used to generate the URIss
- the URI which refers to the subject of the tripletp
- the URI which refers to the predicate of the tripleto
- the URI which refers to the object of the tripletpublic static E buildTriplet(URIFactory f, Object s, Object p, Object o)
f
- the factory used to build the URIs if necessarys
- the URI which refers to the subject of the triplet (possibly as
a String)p
- the URI which refers to the predicate of the triplet (possibly
as a String)o
- the URI which refers to the object of the triplet (possibly as a
String)public static void addTriplet(G graph, Object s, Object p, Object o)
graph
- s
- the URI which refers to the subject of the triplet (possibly as
a String)p
- the URI which refers to the predicate of the triplet (possibly
as a String)o
- the URI which refers to the object of the triplet (possibly as a
String)public static void addTriplet(G graph, String s, String p, String o)
graph
- s
- the URI which refers to the subject of the tripletp
- the URI which refers to the predicate of the tripleto
- the URI which refers to the object of the tripletpublic static void loadStatements(G g, org.openrdf.repository.RepositoryResult<org.openrdf.model.Statement> statements) throws org.openrdf.repository.RepositoryException
g
- the graph in which the statements must be loadedstatements
- the set of statements from which the filter is appliedorg.openrdf.repository.RepositoryException
Copyright © 2014. All rights reserved.