Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultGraph

RDF/JS spec DefaultGraph An instance of DefaultGraph represents the default graph. It's only allowed to assign a DefaultGraph to the graph property of a Quad. The RDF default graph

link

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

Hierarchy

Implements

Implemented by

Index

Constructors

constructor

Properties

classOrder

classOrder: number

The class order for this node

termType

termType: "DefaultGraph" = DefaultGraphTermType

value

value: string

should return and empty string''

Static fromValue

fromValue: function

Type declaration

Static toJS

toJS: function

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>

Methods

compareTerm

  • compareTerm(other: Node): number
  • Compares this node with another

    see

    {equals} to check if two nodes are equal

    Parameters

    • other: Node

      The other node

    Returns number

equals

  • equals(other: Term): boolean
  • Compare this term with {other} for structural equality

    Note that the task force spec only allows comparison with other terms

    Parameters

    Returns boolean

hashString

  • hashString(): string

sameTerm

  • sameTerm(other: Node): boolean

substitute

  • 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