SPARQL-Generate - query and generate both RDF and text

Generate RDF or text from web documents in XML, JSON, CSV, GeoJSON, HTML, CBOR, plain text with regular expressions.
Generate RDF or text streams from large CSV documents, MQTT or WebSocket streams, repeated HTTP Get operations.
Directly generate HDT as the output of big transformations.
Use it as partial STTL and SPARQL Function implementations.
Extend it to support new data sources and formats.

SPARQL-Generate is an extension of SPARQL 1.1 for querying not only RDF datasets but also documents in arbitrary formats.
It offers a simple and expressive template-based option to generate RDF Graphs or text, from documents and different streams. It presents the following advantages:

  • Anyone familiar with SPARQL can easily learn SPARQL-Generate;
  • Learning SPARQL-Generate helps you learning SPARQL;
  • SPARQL-Generate leverages the expressivity of SPARQL 1.1: Aggregates, Solution Sequences and Modifiers, SPARQL functions and their extension mechanism.
  • It integrates seamlessly with existing standards for consuming Semantic Web data, such as SPARQL or Semantic Web programming frameworks.

See our predefined SPARQL binding functions and SPARQL-Generate iterator functions. You can also leverage the SPARQL 1.1 extension mechanism and implement your own functions to support any other format.

Try it online New: Integration with the Sublime Text editor


Maxime Lefrançois, Antoine Zimmermann, Noorani Bakerally A SPARQL extension for generating RDF from heterogeneous formats, In Proc. Extended Semantic Web Conference, ESWC, May 2017, Portoroz, Slovenia (long paper - PDF - BibTeX)

Maxime Lefrançois, Antoine Zimmermann, Noorani Bakerally Flexible RDF generation from RDF and heterogeneous data sources with SPARQL-Generate, In Proc. the 20th International Conference on Knowledge Engineering and Knowledge Management, EKAW, Nov 2016, Bologna, Italy (demo track - PDF - BibTeX)

Maxime Lefrançois, Antoine Zimmermann, Noorani Bakerally Génération de RDF à partir de sources de données aux formats hétérogènes, Actes de la 17ème conférence Extraction et Gestion des Connaissances, EGC, Jan 2017, Grenoble, France - (PDF - BibTeX)


Watch Star

Use SPARQL-Generate:

Test, evaluate, contribute

Our tests contains tests from related work and more. You can request a new unit test, a new binding function or iterator function on GitHub. We also led a comparative evaluation with the RML reference implementation.


Thank you to the authors of HDT, STTL, SPARQL Function

This work has been partly funded by the ITEA2 12004 SEAS (Smart Energy Aware Systems) project, the ANR 14-CE24-0029 OpenSensingCity project, and bilateral research contracts with ENGIE R&D.

Back to top

Version: 2.0-SNAPSHOT. Last Published: 2019-07-04.