@inrupt/solid-client / rdfjs

Module: rdfjs#

Type Aliases#

ToRdfJsOptions#

Ƭ ToRdfJsOptions: Partial<{ dataFactory: RdfJs.DataFactory ; datasetFactory: RdfJs.DatasetCoreFactory }>

Defined in#

src/rdfjs.ts:94

Functions#

fromRdfJsDataset#

fromRdfJsDataset(rdfJsDataset): ImmutableDataset

Convert an RDF/JS Dataset into a [[SolidDataset]]

Parse an RDF/JS DatasetCore, into a [[SolidDataset]]. Note that, when saving the returned SolidDataset to a Solid Pod, only Quads in the Default Graph will be stored.

Parameters#

Name

Type

Description

rdfJsDataset

DatasetCore<Quad, Quad>

The source RDF/JS Dataset.

Returns#

ImmutableDataset

A [[SolidDataset]] containing the same data as the given RDF/JS Dataset.

Since

1.9.0

Defined in#

src/rdfjs.ts:64


toRdfJsDataset#

toRdfJsDataset(set, options?): RdfJs.DatasetCore

Convert a [[SolidDataset]] into an RDF/JS Dataset

Export a [[SolidDataset]] into an RDF/JS DatasetCore.

Parameters#

Name

Type

Description

set

Readonly<{}>

A [[SolidDataset]] to export into an RDF/JS Dataset.

options

Partial<{ dataFactory: DataFactory<Quad, Quad> ; datasetFactory: DatasetCoreFactory<Quad, Quad, DatasetCore<Quad, Quad>> }>

Optional parameter that allows you to pass in your own RDF/JS DataFactory or DatasetCoreFactory.

Returns#

RdfJs.DatasetCore

An RDF/JS Dataset containing the data from the given SolidDataset.

Since

1.9.0

Defined in#

src/rdfjs.ts:111