rdf-ext-sboljs
v0.3.0
Published
Extended Linked Data module
Downloads
54
Readme
RDF Interfaces Extension
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, RDF/XML) or stores (LDP, SPARQL). The module section lists the most common modules.
Usage
In general, consult the API documentation for details about how to interact with the library.
node.js
RDF-Ext is available on npm
, to install it run:
npm install rdf-ext
In the code, import RDF-Ext:
var rdf = require('rdf-ext');
Browser
Just import the RDF-Ext distribution:
<script src="/js/rdf-ext.js"></script>
Distribution
You can download a prebuilt or custom distribution from the RDF-Ext distribution builder site. The RDF-Ext distribution builder also offers a command line interface to build custom distributions.
Browserify
If you build your application with Browserify, RDF-Ext can be bundled flawless.
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
- Abstract - Can be used to implement own parsers
- DOM - Can be used to implement parsers for XML or HTML formats
- JSON-LD - Uses the reference implementation to supports all document forms
- Microdata - Fork of the Green Turtle parser
- RDF/XML - Fork of the rdflib.js RDF/XML parser
- 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
- Abstract - Can be used to implement own serializers
- JSON-LD - Outputs JSON-LD in flat document form
- N-Triples - Uses the
.toNT()
method to serialize N-Triples - Turtle - Uses N3.js for serializing
- SPARQL Update - Generates
INSERT DATA
SPARQL updates
Also see rdf-formats-common if you want to get support for the most common formats.
Stores
- Abstract - Abstract implementation, can be used to build your own store
- ACL wrapper - Add ACL support to your RDF store
- File system - Using the file system
- In Memory - Store loaded in memomory
- LDP - Query an external Linked Data Platform via RESTful HTTP requests
- Local/Remote - Uses a local store or a remote store depending on the IRI
- Multistore - Use multiple store depending on the IRI
- Single graph (memory) - Store has only a single graph
- SPARQL - Uses the Graph Store HTTP Protocol interface
Others
- Clownface - Simple but powerful graph traversing library
- Common Formats - Loads parsers and serializers for the most common formats
- SimpleRDF - Simple but powerful graph to object mapping
- RDF body parser - Node.js body parsing middleware, parses incoming RDF data