Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rdf-dereference-store

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rdf-dereference-store

Dereference RDF to a store

  • 1.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
41
decreased by-37.88%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 05 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc