1.1.0 • Published 21 days ago
rdf-dereference-store v1.1.0
RDF Dereference Store
Dereference a remote dataset to a store using rdf-dereference.
Usage
import fs from 'fs';
import dereference, { parse } from 'rdf-dereference-store';
// Fetch store from a remote document
const { store } = await dereference('https://www.jeswr.org/#me');
// Fetch store from a local document
const { store } = await dereference('/path/to/file.ttl', { localFiles: true });
// Fetch store from an input stream
const { store } = await parse(fs.createReadStream('/path/to/file.ttl'), { contentType: 'text/turtle' });
License
©2024–present Jesse Wright, MIT License.