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

    Class Literal

    An RDF/JS compliant Literal implementation.

    Implements

    • Literal
    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

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

      Returns Literal

    Properties

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

    Methods

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