public class GraphOps extends Object
Constructor and Description |
---|
GraphOps() |
Modifier and Type | Method and Description |
---|---|
static void |
addAll(Graph g,
Iterable<Triple> iter) |
static void |
addAll(Graph g,
Iterator<Triple> iter) |
static boolean |
containsGraph(DatasetGraph dsg,
Node gn)
Check whether a dataset contains a named graph of the given name.
|
static void |
deleteAll(Graph g,
Iterable<Triple> iter) |
static void |
deleteAll(Graph g,
Iterator<Triple> iter) |
static Graph |
getGraph(DatasetGraph dsg,
Node gn)
Get a graph from the dataset - the graph name may be special
- the union graph (which is immutable) or a special name for
the default graph.
|
static boolean |
isWrapped(Graph graph)
Remove one layer of graph wrapping.
|
static Graph |
unionGraph(DatasetGraph dsg)
Create an immutable union graph of all the named graphs in the dataset.
|
static Graph |
unionGraph(DatasetGraph dsg,
Set<Node> graphNames)
Create an immutable union graph comprised of a set of named graphs.
|
static Graph |
unwrapAll(Graph graph)
Remove all layers of graph wrapping.
|
static Graph |
unwrapOne(Graph graph)
Remove one layer of graph wrapping.
|
public static boolean containsGraph(DatasetGraph dsg, Node gn)
public static Graph getGraph(DatasetGraph dsg, Node gn)
A graph name of "null" is interpreted as the default graph.
public static Graph unionGraph(DatasetGraph dsg, Set<Node> graphNames)
public static Graph unionGraph(DatasetGraph dsg)
public static Graph unwrapAll(Graph graph)
public static boolean isWrapped(Graph graph)
Licenced under the Apache License, Version 2.0