com.hp.hpl.jena.graph
Class GraphExtract
java.lang.Object
com.hp.hpl.jena.graph.GraphExtract
public class GraphExtract
- extends Object
GraphExtract offers a very simple recursive extraction of a subgraph with a
specified root in some supergraph. The recursion is terminated by triples
that satisfy some supplied boundary condition.
Method Summary |
Graph |
extract(Node node,
Graph graph)
Answer a new graph which is the reachable subgraph from node
in graph with the terminating condition given by the
TripleBoundary passed to the constructor. |
Graph |
extractInto(Graph toUpdate,
Node root,
Graph extractFrom)
Answer the graph toUpdate augmented with the sub-graph of
extractFrom reachable from root bounded
by this instance's TripleBoundary. |
GraphExtract
public GraphExtract(TripleBoundary b)
extract
public Graph extract(Node node,
Graph graph)
- Answer a new graph which is the reachable subgraph from
node
in graph
with the terminating condition given by the
TripleBoundary passed to the constructor.
extractInto
public Graph extractInto(Graph toUpdate,
Node root,
Graph extractFrom)
- Answer the graph
toUpdate
augmented with the sub-graph of
extractFrom
reachable from root
bounded
by this instance's TripleBoundary.
Licenced under the Apache License, Version 2.0