Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BlankNode

An RDF blank node is a Node without a URI

link

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

Hierarchy

Implements

  • TFBlankNode

Index

Constructors

constructor

Properties

classOrder

classOrder: number = ClassOrder.BlankNode

The class order for this node

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: "BlankNode" = BlankNodeTermType

The type of node

value

value: string

The node's value

Static NTAnonymousNodePrefix

NTAnonymousNodePrefix: "_:" = '_:'

Static fromValue

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

Type declaration

    • <T>(value: ValueType): T
    • Type parameters

      • T: FromValueReturns<any>

      Parameters

      • value: ValueType

      Returns T

Static nextId

nextId: number = 0

The next unique identifier for blank nodes

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

id

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

Methods

compareTerm

copy

equals

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

    Parameters

    • other: Term

      The other node

    Returns boolean

hashString

  • hashString(): string

sameTerm

  • sameTerm(other: Node): boolean

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

Generated using TypeDoc