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

rdf-ext

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rdf-ext

Implements the RDF-Ext spec plus parsers (JSON-LD, RDF/XML, Turtle), serializers (JSON-LD, N-Triples) and stores (in memory, LDP, SPARQL)

  • 0.1.6
  • Source
  • npm
  • Socket score

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

RDF Interfaces Extension

This module implements [RDF-Ext] (http://bergos.github.com/rdf-ext-spec/), parsers (JSON-LD, RDF-XML, Turtle), serializers (JSON-LD, N-Triples) and stores (in memory, LDP, SPARQL).

Usage

node.js

Import your favourite RDF Interfaces library:

var rdf = require('rdf-interfaces');

Mixin RDF Interfaces Extension to the RDF Environment:

require('rdf-ext')(rdf);

Browser

Import your favourite RDF Interfaces library:

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

If you want to use the Turtle or JSON-LD parser:

<script src="/js/n3-browser.js"></script>
<script src="/js/jsonld.js"></script>

Because rdfstore-js comes with an outdated version of jsonld it must be deleted afterwards:

<script src="/js/rdfstore.js"></script>
<script>delete jsonld;</script>

Now you can import RDF-Ext:

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

Implementations

InMemoryStore

A simple in memory triple store implementation.

LdpStore

Store implementation to access graphs with RESTful interface.

RdfstoreStore

Store based on [rdfstore-js] (https://github.com/antoniogarrote/rdfstore-js).

SingleGraphStore

In memory triple store using a single graph for all named graphs. Sometimes usefull for testing.

SparqlStore

Store implementation to access graph with HTTP/SPARQL interface.

JsonLdParser

Parser for JSON-LD using the standard [JSON-LD library] (https://github.com/digitalbazaar/jsonld.js).

RdfXmlParser

Parser for RDF-XML data using a fork of the [rdflib.js] (https://github.com/linkeddata/rdflib.js) parser.

TurtleParser

Turtle parser using [N3.js] (https://github.com/RubenVerborgh/N3.js).

JsonLdSerializer

JSON-LD serializer exports expanded JSON-LD data.

NTriplesSerializer

N-Triples serializer using the RDF-Ext Graph.toString() function.

Keywords

FAQs

Package last updated on 15 Jan 2015

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