Class NamedNode

A named (IRI) RDF node

Hierarchy (view full)

Implements

  • NamedNode

Constructors

Properties

classOrder: number = ClassOrder.NamedNode

The class order for this node

termType: "NamedNode" = NamedNodeTermType

The type of node

value: string

The node's value

toJS: ((term) => string | boolean | object | Number | Date | (string | boolean | object | Number | Date)[])

Type declaration

    • (term): string | boolean | object | Number | Date | (string | boolean | object | Number | Date)[]
    • Parameters

      • term: any

      Returns string | boolean | object | Number | Date | (string | boolean | object | Number | Date)[]

Accessors

Methods

  • Compares whether the two nodes are equal

    Parameters

    • other: Term

      The other node

    Returns boolean

  • Creates the substituted node for this one, according to the specified bindings

    Type Parameters

    Parameters

    • bindings: Bindings

      Bindings of identifiers to nodes

    Returns T

  • Creates a named node from the specified input value

    Parameters

    • value: any

      An input value

    Returns any