- All Known Implementing Classes:
BlankNodeAllocatorCounter
,BlankNodeAllocatorFixedSeedHash
,BlankNodeAllocatorGlobal
,BlankNodeAllocatorHash
,BlankNodeAllocatorLabelEncoded
public interface BlankNodeAllocator
Interface to allocators for blank nodes.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.graph.Node
Allocate based on a non-null label.org.apache.jena.graph.Node
create()
Create a fresh blank node, different from anything generated so far.void
reset()
Reset allocation state - calls toalloc(java.lang.String)
will return a different blank node for a label than the one returned before the reset.
-
Method Details
-
alloc
Allocate based on a non-null label. Calling this twice, with the same label will generate equivalent nodes but they may not be identical (i.e they are .equals but may not be ==) -
create
org.apache.jena.graph.Node create()Create a fresh blank node, different from anything generated so far. Will not clash with a node allocated byalloc(java.lang.String)
-
reset
void reset()Reset allocation state - calls toalloc(java.lang.String)
will return a different blank node for a label than the one returned before the reset.
-