All Projects → digitalbazaar → rdf-canonize

digitalbazaar / rdf-canonize

Licence: other
An implementation of the RDF Dataset Normalization Algorithm in JavaScript.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to rdf-canonize

jsonld-streaming-serializer.js
A fast and lightweight streaming JSON-LD serializer for JavaScript
Stars: ✭ 20 (+42.86%)
Mutual labels:  rdf, json-ld
YALC
🕸 YALC: Yet Another LOD Cloud (registry of Linked Open Datasets).
Stars: ✭ 14 (+0%)
Mutual labels:  rdf, json-ld
Rdflib
RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
Stars: ✭ 1,584 (+11214.29%)
Mutual labels:  rdf, json-ld
Web Karma
Information Integration Tool
Stars: ✭ 489 (+3392.86%)
Mutual labels:  rdf, json-ld
jsonld-context-parser.js
Parses JSON-LD contexts
Stars: ✭ 20 (+42.86%)
Mutual labels:  rdf, json-ld
Jsonld.js
A JSON-LD Processor and API implementation in JavaScript
Stars: ✭ 1,212 (+8557.14%)
Mutual labels:  rdf, json-ld
Hypergraphql
GraphQL interface for querying and serving linked data on the Web.
Stars: ✭ 120 (+757.14%)
Mutual labels:  rdf, json-ld
Hypergraphql
GraphQL interface for querying and serving linked data on the Web.
Stars: ✭ 112 (+700%)
Mutual labels:  rdf, json-ld
ControlledVocabularyManager
Rails application with Blazegraph for managing controlled vocabularies in RDF.
Stars: ✭ 20 (+42.86%)
Mutual labels:  rdf, json-ld
Rdflib Jsonld
JSON-LD parser and serializer plugins for RDFLib (Python 2.6+)
Stars: ✭ 250 (+1685.71%)
Mutual labels:  rdf, json-ld
Schemaorg
Schema.org - schemas and supporting software
Stars: ✭ 4,372 (+31128.57%)
Mutual labels:  rdf, json-ld
twinql
A graph query language for the semantic web
Stars: ✭ 17 (+21.43%)
Mutual labels:  rdf, json-ld
Pyld
JSON-LD processor written in Python
Stars: ✭ 413 (+2850%)
Mutual labels:  rdf, json-ld
Rdf Ext
RDF library for NodeJS and the Browsers
Stars: ✭ 97 (+592.86%)
Mutual labels:  rdf, json-ld
Jsonld Java
JSON-LD implementation for Java
Stars: ✭ 337 (+2307.14%)
Mutual labels:  rdf, json-ld
Php Json Ld
PHP implementation of a JSON-LD Processor and API
Stars: ✭ 246 (+1657.14%)
Mutual labels:  rdf, json-ld
unfurl
Extract rich metadata from URLs
Stars: ✭ 41 (+192.86%)
Mutual labels:  rdf, json-ld
titanium-json-ld
A JSON-LD 1.1 Processor & API
Stars: ✭ 79 (+464.29%)
Mutual labels:  rdf, json-ld
SEPA
Get notifications about changes in your SPARQL endpoint.
Stars: ✭ 21 (+50%)
Mutual labels:  rdf
CSV2RDF
Streaming, transforming, SPARQL-based CSV to RDF converter. Apache license.
Stars: ✭ 48 (+242.86%)
Mutual labels:  rdf

rdf-canonize

Build status Coverage status Dependency Status

An implementation of the RDF Dataset Normalization Algorithm in JavaScript.

Introduction

...

Installation

Node.js + npm

npm install rdf-canonize
const canonize = require('rdf-canonize');

Node.js + npm + native bindings

This package has support for rdf-canonize-native. This package can be useful if your application requires doing many canonizing operations asyncronously in parallel or in the background. It is highly recommended that you understand your requirements and benchmark using JavaScript vs native bindings. The native bindings add overhead and the JavaScript implementation may be faster with modern runtimes.

The native bindings are not installed by default and must be explicitly installed.

npm install rdf-canonize
npm install rdf-canonize-native

Note that the native code is not automatically used. To use the native bindings you must have them installed and set the useNative option to true.

const canonize = require('rdf-canonize');

Browser + npm

Install in your project with npm and use your favorite browser bundler tool.

Examples

const dataset = {
  // ...
};

// canonize a data set with a particular algorithm with async/await
const canonical = await canonize.canonize(dataset, {algorithm: 'URDNA2015'});

// canonize a data set with a particular algorithm and force use of the
// native implementation
const canonical = await canonize.canonize(dataset, {
  algorithm: 'URDNA2015',
  useNative: true
});

Related Modules

Tests

This library includes a sample testing utility which may be used to verify that changes to the processor maintain the correct output.

The test suite is included in an external repository:

https://github.com/json-ld/normalization

This should be a sibling directory of the rdf-canonize directory or in a test-suites dir. To clone shallow copies into the test-suites dir you can use the following:

npm run fetch-test-suite

Node.js tests can be run with a simple command:

npm test

If you installed the test suites elsewhere, or wish to run other tests, use the TEST_DIR environment var:

TEST_DIR="/tmp/tests" npm test

To generate earl reports:

# generate the earl report for node.js
EARL=earl-node.jsonld npm test

Browser testing with karma is done indirectly through jsonld.js.

Benchmark

See docs in the benchmark README.

Source

The source code for this library is available at:

https://github.com/digitalbazaar/rdf-canonize

Commercial Support

Commercial support for this library is available upon request from Digital Bazaar: [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].