Wraps the supplied label into a blank node, storing it bare: the _: prefix belongs to the N-Triples/SPARQL syntax
and is added by the serialisers. With no argument, mints a fresh node with a random label for an anonymous one;
supply a label only where blank-node identity must be correlated within a single document. The returned record is
frozen.
Warning
A string label is validated against the intersection of the N-Triples, Turtle and SPARQL 1.1 BLANK_NODE_LABEL
productions, so that every accepted label is serialisable in all three syntaxes; the grammars differ only on :,
which N-Triples admits within a label and the other two do not, and which is consequently rejected.
Parameters
Optionallabel: string|number
The blank-node label: a non-negative integer, or a string matching the BLANK_NODE_LABEL body;
omitted to mint a fresh anonymous node
Creates an RDF blank node.
Wraps the supplied label into a blank node, storing it bare: the
_:prefix belongs to the N-Triples/SPARQL syntax and is added by the serialisers. With no argument, mints a fresh node with a random label for an anonymous one; supply a label only where blank-node identity must be correlated within a single document. The returned record is frozen.A string label is validated against the intersection of the N-Triples, Turtle and SPARQL 1.1
BLANK_NODE_LABELproductions, so that every accepted label is serialisable in all three syntaxes; the grammars differ only on:, which N-Triples admits within a label and the other two do not, and which is consequently rejected.