Class BlankNode

An RDF blank node is a Node without a URI

Link

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

Hierarchy

Implements

  • BlankNode

Constructors

Properties

classOrder: number = ClassOrder.BlankNode

The class order for this node

isBlank: number = 1

Whether this is a blank node

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

The type of node

value: string

The node's value

NTAnonymousNodePrefix: "_:" = '_:'
fromValue: (<T>(value) => T)

Type declaration

    • <T>(value): T
    • Type Parameters

      • T extends FromValueReturns

      Parameters

      • value: ValueType

      Returns T

nextId: number = 0

The next unique identifier for blank nodes

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

  • Compares whether this node is the same as the other one

    Parameters

    • other: Node

      Another 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

Generated using TypeDoc