RDF-Ext is a JavaScript library that extends the RDF/JS specs to handle RDF data in a developer-friendly way.
npm install --save rdf-ext
Just import the default export from the package:
import rdf from 'rdf-ext'
const term = rdf.namedNode('http://example.org/')
The exported object is an instance of @rdfjs/environment. The following factories are included in the environment:
- DataFactory
- DatasetFactory
- FetchFactory
- FormatsFactory
- GrapoiFactory
- NamespaceFactory
- PrefixMapFactory
- TermMapFactory
- TermSetFactory
- TraverserFactory
The package contains experimental features which may break or be removed without being covered in the semantic versioning:
For more details, please check rdf-ext.org