rdf-dereference-store
TypeScript icon, indicating that this package has built-in type declarations

1.3.2 • Public • Published

RDF Dereference Store

Dereference a remote dataset to a store using rdf-dereference.

GitHub license npm version build Dependabot semantic-release

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' });

// Fetch store from an input string
const { store } = await parse(fs.readFileSync('/path/to/file.ttl').toString(), { contentType: 'text/turtle' });

License

©2024–present Jesse Wright, MIT License.

Package Sidebar

Install

npm i rdf-dereference-store

Weekly Downloads

41

Version

1.3.2

License

MIT

Unpacked Size

8.47 kB

Total Files

5

Last publish

Collaborators

  • jeswr