@metreeca/trio - v0.1.1
    Preparing search index...

    Function blank

    • 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.

      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

      Returns Blank

      A frozen Blank record carrying the label

      RangeError if label is a negative or non-integer number, or a malformed string label