public class BlankNodeAllocatorLabel extends Object implements BlankNodeAllocator
NodeToLabel.createBNodeByLabelAsGiven()
but it is unsafe in general.
Use BlankNodeAllocatorLabelEncoded and NodeToLabel.createBNodeByLabelEncoded()
for round-tripping output-input.| Constructor and Description |
|---|
BlankNodeAllocatorLabel() |
| Modifier and Type | Method and Description |
|---|---|
Node |
alloc(String label)
Allocate based on a non-null label.
|
Node |
create()
Create a fresh blank node, different from anything generated so far.
|
void |
reset()
Reset allocation state - calls to
BlankNodeAllocator.alloc(java.lang.String) or BlankNodeAllocator.create() |
public void reset()
BlankNodeAllocatorBlankNodeAllocator.alloc(java.lang.String) or BlankNodeAllocator.create()reset in interface BlankNodeAllocatorpublic Node alloc(String label)
BlankNodeAllocatoralloc in interface BlankNodeAllocatorpublic Node create()
BlankNodeAllocatorBlankNodeAllocator.alloc(java.lang.String)create in interface BlankNodeAllocatorLicenced under the Apache License, Version 2.0