@faubulous/mentor-rdf
    Preparing search index...

    Class Literal

    An RDF/JS compliant Literal implementation.

    Use rdf-data-factory, which the store and the Mentor parsers use. This will be removed in the next major version.

    Implements

    • Literal
    Index
    • Parameters

      • value: string
      • OptionallanguageOrDatatype: string | NamedNode<string>

      Returns Literal

    datatype: NamedNode

    A NamedNode whose IRI represents the datatype of the literal.

    language: string

    the language as lowercase BCP47 string (examples: en, en-gb) or an empty string if the literal has no language.

    termType: "Literal" = ...

    Contains the constant "Literal".

    value: string

    The text value, unescaped, without language or type (example: Brad Pitt).

    • Parameters

      • other: Term | null | undefined

        The term to compare with.

      Returns boolean

      True if and only if other has termType "Literal" and the same value, language, direction, and datatype.