Class GraphExtract

java.lang.Object
org.apache.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.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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(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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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.