@grafctory/trio - v0.4.0
    Preparing search index...

    Function blank

    • Creates an RDF blank node.

      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