Package Exports
- @rdfjs/data-model
- @rdfjs/data-model/Factory.js
- @rdfjs/data-model/index.js
- @rdfjs/data-model/lib/BlankNode.js
- @rdfjs/data-model/lib/DefaultGraph.js
- @rdfjs/data-model/lib/Literal.js
- @rdfjs/data-model/lib/NamedNode.js
- @rdfjs/data-model/lib/Quad.js
- @rdfjs/data-model/lib/Variable.js
- @rdfjs/data-model/lib/fromTerm.js
- @rdfjs/data-model/test
- @rdfjs/data-model/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/data-model) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@rdfjs/data-model
A basic implementation of the RDF/JS Data Model.
Usage
Use the following command to add the package as a dependency to your project:
npm install @rdfjs/data-model --save
The main entry point of the package exports an RDF/JS DataFactory instance. See the following lines on how to import and use the library:
import dataFactory from '@rdfjs/data-model'
const quad = dataFactory.quad(
dataFactory.blankNode(),
dataFactory.namedNode('http://schema.org/name'),
dataFactory.literal('RDF/JS Data model')
)