com.hp.hpl.jena.sparql.util
Class LabelToNodeMap

java.lang.Object
  extended by com.hp.hpl.jena.sparql.util.LabelToNodeMap

public class LabelToNodeMap
extends Object

Map from _:* form to bNodes


Method Summary
 com.hp.hpl.jena.graph.Node allocNode()
           
 com.hp.hpl.jena.graph.Node asNode(String label)
           
 void clear()
           
static LabelToNodeMap createBNodeMap()
          Create blank nodes, with the same blank node returned for thre same label.
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.
 Set<String> getLabels()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createBNodeMap

public static LabelToNodeMap createBNodeMap()
Create blank nodes, with the same blank node returned for thre 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 com.hp.hpl.jena.graph.Node asNode(String label)

allocNode

public com.hp.hpl.jena.graph.Node allocNode()

clear

public void clear()


Licenced under the Apache License, Version 2.0