Class LabelToNodeMap


  • public class LabelToNodeMap
    extends java.lang.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 Detail

      • 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 java.util.Set<java.lang.String> getLabels()
      • asNode

        public Node asNode​(java.lang.String label)
      • allocNode

        public Node allocNode()
      • clear

        public void clear()