java.lang.Object
org.apache.jena.system.Transitive
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Map<org.apache.jena.graph.Node,
Collection<org.apache.jena.graph.Node>> transitive
(org.apache.jena.graph.Graph graph, org.apache.jena.graph.Node property) Calculate the transitive closure of a property.static void
transitiveExc
(org.apache.jena.graph.Graph graph, boolean forward, org.apache.jena.graph.Node node, org.apache.jena.graph.Node predicate, Collection<org.apache.jena.graph.Node> output) Transitive closure of a property from a start node, excluding the start node unless reachable via a cycle.static void
transitiveInc
(org.apache.jena.graph.Graph graph, boolean forward, org.apache.jena.graph.Node node, org.apache.jena.graph.Node predicate, Collection<org.apache.jena.graph.Node> output) Transitive closure of a property from a start node, and including the start node.
-
Constructor Details
-
Transitive
public Transitive()
-
-
Method Details
-
transitive
public static Map<org.apache.jena.graph.Node,Collection<org.apache.jena.graph.Node>> transitive(org.apache.jena.graph.Graph graph, org.apache.jena.graph.Node property) Calculate the transitive closure of a property. Returns a map of node to all reachable nodes. -
transitiveInc
public static void transitiveInc(org.apache.jena.graph.Graph graph, boolean forward, org.apache.jena.graph.Node node, org.apache.jena.graph.Node predicate, Collection<org.apache.jena.graph.Node> output) Transitive closure of a property from a start node, and including the start node. -
transitiveExc
public static void transitiveExc(org.apache.jena.graph.Graph graph, boolean forward, org.apache.jena.graph.Node node, org.apache.jena.graph.Node predicate, Collection<org.apache.jena.graph.Node> output) Transitive closure of a property from a start node, excluding the start node unless reachable via a cycle.
-