0.0.1 • Published 7 years ago

rdf-dot v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

RDF DOT Serializer

rdf-dot is an npm package that provides an RDF serializer for DOT, a textual graph representation format, used among others as base representation in Graphviz.

The serializer implements the DataSerializer interface, part of the W3C RDF Interfaces recommendation, specified by the RDF Web Applications Working Group. This package may be used as an extension of any package complying with the recommendation (e.g. rdf or rdfstore).

Usage:

var dot = require('rdf-dot');
var graph; // must implement the Graph interface

var serializer = new dot.DOTSerializer();
var dotstring = serializer.serialize(graph);

(See also test/test-sensor1.js.)