public Node create(String label) {
return Node.createAnon(new AnonId(filename + "-" + label)) ;
}
The way I thought was to allocate a UUID per parser run (or any other
sufficiently large random number), xor the label into the UUID to
produce the bNode label. This is a non-localised label allocation scheme.
Therefore, I would like to have my own
LabelToNode implementation with an Allocator<String, Node> which takes into
account the filename (or an hash of it) when it creates a new blank node.
But LabelToNode constructor is private.
Could we make it protected?
Now public.
Or, alternatively, how can I construct a LabelToNode object which will be using
my MapReduceAllocator?
LabelToNode createUseLabelAsGiven()
Andy