Class Transitive

java.lang.Object
org.apache.jena.riot.other.Transitive

public class Transitive extends Object
  • Constructor Details

    • Transitive

      public Transitive()
  • Method Details

    • transitive

      public static Map<Node,Collection<Node>> transitive(Graph graph, Node property)
      Calculate the transitive closure of a property. Returns a map of node to all reachable nodes.
    • transitiveInc

      public static void transitiveInc(Graph graph, boolean forward, Node node, Node predicate, Collection<Node> output)
      Transitive closure of a property from a start node, and including the start node.
    • transitiveExc

      public static void transitiveExc(Graph graph, boolean forward, Node node, Node predicate, Collection<Node> output)
      Transitive closure of a property from a start node, excluding the start node unless reachable via a cycle.