Package org.apache.jena.graph
Class GraphExtract
- java.lang.Object
-
- org.apache.jena.graph.GraphExtract
-
public class GraphExtract extends java.lang.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.
-
-
Constructor Summary
Constructors Constructor Description GraphExtract(TripleBoundary b)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Graph
extract(Node node, Graph graph)
Answer a new graph which is the reachable subgraph fromnode
ingraph
with the terminating condition given by the TripleBoundary passed to the constructor.Graph
extractInto(Graph toUpdate, Node root, Graph extractFrom)
Answer the graphtoUpdate
augmented with the sub-graph ofextractFrom
reachable fromroot
bounded by this instance's TripleBoundary.
-
-
-
Constructor Detail
-
GraphExtract
public GraphExtract(TripleBoundary b)
-
-