Skip to content

rubensworks/rdf-play.js

Repository files navigation

RDF Play

Build status

This is a Web-based tool for performing simple RDF operations, such as parsing, serializing and dereferencing from URLs.

Live version: https://rdf-play.rubensworks.net/

Internally, this library makes use of RDF parsers from the Comunica framework, which enable streaming processing of RDF.

The following RDF serializations are supported:

Name Content type Extensions
TriG application/trig .trig
N-Quads application/n-quads .nq, .nquads
Turtle text/turtle .ttl, .turtle
N-Triples application/n-triples .nt, .ntriples
Notation3 text/n3 .n3
JSON-LD application/ld+json, application/json .json, .jsonld
RDF/XML application/rdf+xml .rdf, .rdfxml, .owl
RDFa and script RDF data tags HTML/XHTML text/html, application/xhtml+xml .html, .htm, .xhtml, .xht
RDFa in SVG/XML image/svg+xml,application/xml .xml, .svg, .svgz

When parsing HTML, script data blocks will also be detected. If they contain RDF, they will also be parsed with the appropriate parsers.

License

This software is written by Ruben Taelman.

This code is released under the MIT license.