Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BlankNode

RDF/JS spec Literal An RDF blank node is a Node without a URI

link

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

link

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

Hierarchy

Implements

Implemented by

Index

Constructors

constructor

  • new BlankNode(id?: string | unknown): BlankNode

Properties

classOrder

classOrder: number = ClassOrder.BlankNode

isBlank

isBlank: number = 1

Whether this is a blank node

isVar

isVar: number = 1

This type of node is a variable.

Note that the existence of this property already indicates that it is a variable.

termType

termType: typeof BlankNodeTermType = BlankNodeTermType

value

value: string

Static NTAnonymousNodePrefix

NTAnonymousNodePrefix: "_:" = "_:"

Static fromValue

fromValue: <T>(value: ValueType) => T

Type declaration

Static nextId

nextId: number = 0

The next unique identifier for blank nodes

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

id

  • get id(): string
  • set id(value: string): void

Methods

compareTerm

  • compareTerm(other: BlankNode): number

copy

equals

  • equals(other: Term): boolean

hashString

  • hashString(): string

sameTerm

  • sameTerm(other: Node): boolean

substitute

toCanonical

  • toCanonical(): string

toNQ

  • toNQ(): string

toNT

  • toNT(): string

toString

  • toString(): string