JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 46581
  • Score
    100M100P100Q160139F
  • License MIT

An indexed implementation of the RDF/JS Dataset

Package Exports

  • @rdfjs/dataset
  • @rdfjs/dataset/DatasetCore
  • @rdfjs/dataset/DatasetCore.js
  • @rdfjs/dataset/Factory.js
  • @rdfjs/dataset/index.js
  • @rdfjs/dataset/test/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rdfjs/dataset) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@rdfjs/dataset

build status npm version

An indexed implementation of the RDF/JS Dataset based on the great work by Ruben Verborgh in N3.js.

Usage

Use the following command to add the package as a dependency to your project:

npm install @rdfjs/dataset --save

The main entry point of the package exports an RDF/JS DatasetCoreFactory instance. See the following lines on how to import and use the library:

import dataFactory from '@rdfjs/data-model'
import datasetFactory from '@rdfjs/dataset'

const quad = dataFactory.quad(
  dataFactory.blankNode(),
  dataFactory.namedNode('http://schema.org/name'),
  dataFactory.literal('RDF/JS Dataset')
)

const dataset = datasetFactory.dataset([quad])