java.lang.Object
org.apache.jena.riot.lang.BlankNodeAllocatorLabelEncoded
- All Implemented Interfaces:
BlankNodeAllocator
Allocate blank nodes according to the label given.
This allocator reconstructs labels made by
NodeToLabel.createBNodeByLabelEncoded()
-
Constructor Summary
-
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 toBlankNodeAllocator.alloc(java.lang.String)
will return a different blank node for a label than the one returned before the reset.
-
Constructor Details
-
BlankNodeAllocatorLabelEncoded
public BlankNodeAllocatorLabelEncoded()
-
-
Method Details
-
reset
public void reset()Description copied from interface:BlankNodeAllocator
Reset allocation state - calls toBlankNodeAllocator.alloc(java.lang.String)
will return a different blank node for a label than the one returned before the reset.- Specified by:
reset
in interfaceBlankNodeAllocator
-
alloc
Description copied from interface:BlankNodeAllocator
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 ==)- Specified by:
alloc
in interfaceBlankNodeAllocator
-
create
public org.apache.jena.graph.Node create()Description copied from interface:BlankNodeAllocator
Create a fresh blank node, different from anything generated so far. Will not clash with a node allocated byBlankNodeAllocator.alloc(java.lang.String)
- Specified by:
create
in interfaceBlankNodeAllocator
-