Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultGraph

The RDF default graph 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.

link

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

Hierarchy

Implements

  • DefaultGraph

Index

Constructors

constructor

Properties

classOrder

classOrder: number

The class order for this node

termType

termType: typeof DefaultGraphTermType = DefaultGraphTermType

uri

uri: string = defaultGraphURI

value

value: "" = ""

should return and empty string''

Static fromValue

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

Type declaration

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>

Methods

compareTerm

  • compareTerm(other: Node): number

equals

  • equals(other: Term): boolean

hashString

  • hashString(): string

sameTerm

  • sameTerm(other: Node): boolean

substitute

toCanonical

  • toCanonical(): ""

toNQ

  • toNQ(): string

toNT

  • toNT(): string

toString

  • toString(): string