Class BlankNodeAllocatorCounter

java.lang.Object
org.apache.jena.riot.lang.BlankNodeAllocatorCounter
All Implemented Interfaces:
BlankNodeAllocator

public class BlankNodeAllocatorCounter extends Object implements BlankNodeAllocator
Allocate blank nodes according a counter.

This can be used to track blank nodes by encounter order in a parser.

Use NodeToLabel.createBNodeByLabelEncoded() to recover the increment.

Use BlankNodeAllocatorLabelEncoded and NodeToLabel.createBNodeByLabelEncoded() for round-trip of labels used in the original data input.