LdoDataset
An LdoDataset is a utility for building a linked data object.
It is not recommended to instantiate an LdoDataset. Instead use the createLdoDataset
function.
Usage
import { LdoDataset, createLdoDatasetFactory } from "@ldo/ldo";
import { FoafProfileShapeType } from "./.ldo/foafProfile.shapeTypes";
const ldoDatasetFactory = createLdoDatasetFactory();
const ldoDataset = new LdoDataset();
const ldoBuilder = ldoDataset.usingType(FoafProfileShapeType);
Definition
constructor
constructor(
datasetFactory: DatasetFactory<InAndOutQuad, InAndOutQuad>,
initialDataset?: Dataset<InAndOutQuad, InAndOutQuad>,
)
Parameters
datasetFractory
: A RDF/JS Dataset FactoryinitialDataset
(Optional): An RDF/JS Dataset with initial Quads
Dataset Methods
LdoDataset implements all methods defined in the Dataset class.
Subscribable Dataset Methods
LdoDataset implements all methods defined in the SubscribableDataset class.
usingType
Creates an LdoBuilder for a given shapeType
Parameters
shapeType
: A ShapeType