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

    Function lexical

    • Retrieves the lexical form of an RDF Term.

      Projects a term onto the bare string it carries: the document-scoped label of a blank node, the absolute IRI of a named resource, or the lexical form of a language-tagged or datatype-typed literal. RDF 1.1 defines the lexical form for literals alone: the projection is extended to the other forms, so that a value is read off a term without first narrowing on its kind.

      The string is returned as stored, undecorated: the _: blank-node prefix, the IRI angle brackets, and the literal quotes, language tag and datatype IRI are syntax supplied by the serialisers. Different terms may consequently share a lexical form, which on its own does not identify a term.

      Parameters

      • term: Term

        The term to project

      Returns string

      The lexical form carried by term