Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NamedNode

A named (IRI) RDF node

Hierarchy

Implements

  • TFNamedNode

Index

Constructors

constructor

Properties

classOrder

classOrder: number = ClassOrder.NamedNode

The class order for this node

termType

termType: "NamedNode" = NamedNodeTermType

The type of node

value

value: string

The node's value

Static toJS

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

Type declaration

    • (term: any): 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

uri

  • get uri(): string
  • set uri(uri: string): void

Methods

compareTerm

  • compareTerm(other: Node): number

dir

doc

equals

  • equals(other: Term): boolean
  • Compares whether the two nodes are equal

    Parameters

    • other: Term

      The other node

    Returns boolean

hashString

  • hashString(): string

id

  • id(): string

sameTerm

  • sameTerm(other: Node): boolean

site

  • Returns an NN for the whole web site, ending in slash. Contrast with the "origin" which does NOT have a trailing slash

    Returns NamedNode

substitute

  • substitute<T>(bindings: Bindings): T
  • Creates the substituted node for this one, according to the specified bindings

    Type parameters

    Parameters

    • bindings: Bindings

      Bindings of identifiers to nodes

    Returns T

toCanonical

  • toCanonical(): string

toNQ

  • toNQ(): string

toNT

  • toNT(): string

toString

  • toString(): string

Static fromValue

  • fromValue(value: any): any
  • Creates a named node from the specified input value

    Parameters

    • value: any

      An input value

    Returns any

Generated using TypeDoc