@inrupt/solid-client / rdfjs
Module: rdfjs#
Type Aliases#
ToRdfJsOptions#
Ƭ ToRdfJsOptions: Partial
<{ dataFactory
: DataFactory
; datasetFactory
: DatasetCoreFactory
}>
Defined in#
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 |
---|---|
|
|
Returns#
ImmutableDataset
A [[SolidDataset]] containing the same data as the given RDF/JS Dataset.
Since
1.9.0
Defined in#
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 |
---|---|---|
|
|
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#
DatasetCore
An RDF/JS Dataset containing the data from the given SolidDataset.
Since
1.9.0