org.openjena.riot.lang
Class LabelToNode

java.lang.Object
  extended by org.openjena.riot.lang.LabelToNode

public class LabelToNode
extends java.lang.Object

Allocation Nodes (Bnodes usually) based on the graph and label Various different policies.


Method Summary
 void clear()
          Reset the mapping (if meaningful)
 com.hp.hpl.jena.graph.Node create()
          Create a node that is guaranteed to be fresh
static LabelToNode createIncremental()
          Allocation, globallay scoped, that uses a incrementing field to create new nodes
static LabelToNode createScopeByDocument()
          Allocation from a single scope; just the label matters.
static LabelToNode createScopeByGraph()
          Allocation scoped by graph and label.
static LabelToNode createUseLabelAsGiven()
          Allocation using syntax label.
 com.hp.hpl.jena.graph.Node get(com.hp.hpl.jena.graph.Node scope, java.lang.String label)
          Get a node for a label, given the node (for the graph) as scope
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createScopeByDocument

public static LabelToNode createScopeByDocument()
Allocation from a single scope; just the label matters.


createScopeByGraph

public static LabelToNode createScopeByGraph()
Allocation scoped by graph and label.


createUseLabelAsGiven

public static LabelToNode createUseLabelAsGiven()
Allocation using syntax label.


createIncremental

public static LabelToNode createIncremental()
Allocation, globallay scoped, that uses a incrementing field to create new nodes


get

public com.hp.hpl.jena.graph.Node get(com.hp.hpl.jena.graph.Node scope,
                                      java.lang.String label)
Get a node for a label, given the node (for the graph) as scope


create

public com.hp.hpl.jena.graph.Node create()
Create a node that is guaranteed to be fresh


clear

public void clear()
Reset the mapping (if meaningful)



Copyright © 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP