Class LabelToNodeMap

java.lang.Object
org.apache.jena.sparql.lang.LabelToNodeMap

public class LabelToNodeMap extends Object
Map from _:* form to bNodes or variables. Used in SPARQL parsing. See also LabelToNode in RIOT for language parser label to node mapping.
  • Method Details

    • createBNodeMap

      @Deprecated public static LabelToNodeMap createBNodeMap()
      Deprecated.
      Create blank nodes, with the same blank node returned for the same label.
      Returns:
      LabelToNodeMap
    • createVarMap

      public static LabelToNodeMap createVarMap()
      Create variables (Var), starting from zero each time This means that parsing a query string will generate the same variable names for bNode variables each time, making Query.equals and Query.hashCode work.
      Returns:
      LabelToNodeMap
    • getLabels

      public Set<String> getLabels()
    • asNode

      public org.apache.jena.graph.Node asNode(String label)
    • allocNode

      public org.apache.jena.graph.Node allocNode()
    • clear

      public void clear()