java.lang.Object
org.apache.jena.riot.other.Transitive
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<Node,
Collection<Node>> transitive
(Graph graph, Node property) Calculate the transitive closure of a property.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.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.
-
Constructor Details
-
Transitive
public Transitive()
-
-
Method Details
-
transitive
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.
-