@inrupt/solid-client / rdfjs

Module: rdfjs#

Type Aliases#

ToRdfJsOptions#

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

Defined in#

src/rdfjs.ts:68

Functions#

fromRdfJsDataset#

fromRdfJsDataset(dataset): 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

dataset

DatasetCore<Quad, Quad>

Returns#

ImmutableDataset

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

Since

1.9.0

Defined in#

src/rdfjs.ts:57


toRdfJsDataset#

toRdfJsDataset(set, options?): 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#

DatasetCore

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

Since

1.9.0

Defined in#

src/rdfjs.ts:83