Class Match

java.lang.Object
org.apache.jena.sparql.core.Match

public class Match extends Object
Match triples, quads, with wildcard rules (null or Node.ANY are wildcards).
  • Constructor Details

    • Match

      public Match()
  • Method Details

    • match

      public static boolean match(Quad quad, Node g, Node s, Node p, Node o)
      Match a quad. A quad matches g/s/p/o if each component matches the corresponding node.
    • match

      public static boolean match(Triple triple, Node s, Node p, Node o)
      Match a triple. A triple matches s/p/o if each component matches the corresponding node.
    • match

      public static boolean match(Node node, 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(Node node, 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.