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

rdf-ext

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rdf-ext

Extended Linked Data module

  • 1.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
41K
increased by19.33%
Maintainers
2
Weekly downloads
 
Created
Source

RDF Interfaces Extension

Build Status npm version

RDF-Ext provides a JavaScript library for working with RDF & Linked Data. This module contains the core classes to handle RDF Model data. Additional modules may be required to handle data in different formats (Turtle, JSON-LD) or stores (Web, SPARQL). The module section lists the most common modules.

Usage

In general, consult the RDFJS specification for details about how to interact with the library.

Node

RDF-Ext is available on npm, to install it run:

npm install rdf-ext

In the code, import RDF-Ext:

const rdf = require('rdf-ext')

Browser

The preferred way to use RDF-Ext in the browser is using browserify.

Distribution

It's also possible to use a prebuilt or custom distribution using the RDF-Ext distribution builder. This can be also done using the RDF-Ext distribution builder site.

Than just import the RDF-Ext distribution:

<script src="/js/rdf-ext.js"></script>

Everything is attached to the global variable rdf.

Support

Issues & feature requests should be reported on Github.

Pull requests are very welcome.

Modules

There are many modules for parsing, serializing, stores for persistence and simplified data handling. In general all modules are available at npm and you can use the Github repository name to install them.

Parsers

  • JSON-LD - Uses the reference implementation to supports all document forms
  • Turtle & N-Triples - Uses N3.js for parsing

Also see rdf-formats-common if you want to get support for the most common formats.

Serializers

  • JSON-LD - Outputs JSON-LD in flat document form
  • or JSON-LD - Outputs JSON-LD with prefix support and more document forms
  • N-Triples - Outputs N-Triples

Also see rdf-formats-common if you want to get support for the most common formats.

Stores

  • Dataset - Wrapper around a in memory Dataset
  • SPARQL - Uses the Graph Store HTTP Protocol interface
  • Web - Query an external Linked Data via RESTful HTTP requests

Others

  • Common Formats - Loads parsers and serializers for the most common formats
  • SimpleRDF - Simple but powerful graph to object mapping
  • RDF body parser - Node body parsing middleware, parses incoming RDF data and sends RDF data

Keywords

FAQs

Package last updated on 18 Sep 2018

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