@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.
Since
1.9.0
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
The source RDF/JS Dataset. |
Returns#
ImmutableDataset
A SolidDataset containing the same data as the given RDF/JS Dataset.
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.
Since
1.9.0
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
A SolidDataset to export into an RDF/JS Dataset. |
|
|
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.
Defined in#
src/rdfjs.ts:111