java.lang.Object
org.apache.jena.sparql.core.Match
Match triples, quads, with wildcard rules (null or
Node.ANY
are wildcards).-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stream<org.apache.jena.graph.Triple>
match
(Collection<org.apache.jena.graph.Triple> triples, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Return a filter stream of matches for triples in the collection.match
(Collection<Quad> quads, org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Return a filter stream of matches for quads in the collection.static boolean
match
(org.apache.jena.graph.Node node, org.apache.jena.graph.Node pattern) Match a node (non-null) with a pattern node.static boolean
match
(org.apache.jena.graph.Triple triple, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Match a triple.static boolean
match
(Quad quad, org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Match a quad.static boolean
matchValue
(org.apache.jena.graph.Node node, org.apache.jena.graph.Node pattern) Match a node (non-null) with a pattern node.
-
Constructor Details
-
Match
public Match()
-
-
Method Details
-
match
public static boolean match(Quad quad, org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Match a quad. A quad matches g/s/p/o if each component matches the corresponding node. -
match
public static boolean match(org.apache.jena.graph.Triple triple, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Match a triple. A triple matches s/p/o if each component matches the corresponding node. -
match
public static boolean match(org.apache.jena.graph.Node node, org.apache.jena.graph.Node pattern) Match a node (non-null) with a pattern node. Returns true if:- pattern is null
- pattern is
Node.ANY
- pattern is concrete and .equals the node.
-
matchValue
public static boolean matchValue(org.apache.jena.graph.Node node, org.apache.jena.graph.Node pattern) Match a node (non-null) with a pattern node. Returns true if:- pattern is null
- pattern is
Node.ANY
- pattern is concrete and sameValueAs the node.
-
match
public static Stream<org.apache.jena.graph.Triple> match(Collection<org.apache.jena.graph.Triple> triples, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Return a filter stream of matches for triples in the collection. -
match
public static Stream<Quad> match(Collection<Quad> quads, org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Return a filter stream of matches for quads in the collection.
-