Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NamedNode

RDF/JS spec NamedNode A named (IRI) RDF node

link

https://rdf.js.org/data-model-spec/#namednode-interface

Hierarchy

Implements

Implemented by

Index

Constructors

constructor

Properties

classOrder

classOrder: number = ClassOrder.NamedNode

termType

termType: typeof NamedNodeTermType = NamedNodeTermType

value

value: string

Static toJS

toJS: (term: any) => Date | Number | string | boolean | object | Array<Date | Number | string | boolean | object>

Type declaration

    • (term: any): Date | Number | string | boolean | object | Array<Date | Number | string | boolean | object>
    • Parameters

      • term: any

      Returns Date | Number | string | boolean | object | Array<Date | Number | string | boolean | object>

Accessors

uri

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

Methods

compareTerm

  • compareTerm(other: Node): number

dir

  • dir(): NamedNode | null
  • Returns an $rdf node for the containing directory, ending in slash.

    Returns NamedNode | null

doc

  • doc(): NamedNode
  • Creates the fetchable named node for the document. Removes everything from the # anchor tag.

    Returns NamedNode

equals

  • equals(other: Term): boolean

hashString

  • hashString(): string

id

  • id(): string

sameTerm

  • sameTerm(other: Node): boolean

site

  • site(): NamedNode
  • 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

toCanonical

  • toCanonical(): string

toNQ

  • toNQ(): string

toNT

  • toNT(): string

toString

  • toString(): string

Static fromValue

  • fromValue(value: any): any