java.lang.Object
org.apache.jena.sparql.core.Match
Match triples, quads, with wildcard rules (null or
Node.ANY
are wildcards).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Match a node (non-null) with a pattern node.static boolean
Match a triple.static boolean
Match a quad.static boolean
matchValue
(Node node, Node pattern) Match a node (non-null) with a pattern node.
-
Constructor Details
-
Match
public Match()
-
-
Method Details
-
match
Match a quad. A quad matches g/s/p/o if each component matches the corresponding node. -
match
Match a triple. A triple matches s/p/o if each component matches the corresponding node. -
match
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
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.
-