Metreeca Wire
    Preparing search index...
    • Generates a language-tagged RDF literal.

      Emits the form "text"@language, escaping text according to the STRING_LITERAL2 production. The tag is validated rather than escaped: LANGTAG admits no escape mechanism, so an unchecked tag carrying grammar delimiters would break out of the literal into the surrounding fragment.

      Parameters

      • text: string

        The lexical value of the literal

      • language: string

        The BCP 47 language tag

      Returns string

      The generated language-tagged literal

      RangeError if text is not a well-formed Unicode string, that is if it holds an isolated UTF-16 surrogate code point, or if language is not a well-formed BCP 47 language tag