Skip to main content

Extensions to SPARQL

Introduction

SPARQL is an excellent query language in many respects, but one area where it is lacking is composability.  It is difficult to build queries out of smaller queries.  This is because there is a mismatch between the data over which a SPARQL query runs (one or more RDF graphs) and what is returned by SPARQL SELECT queries (tables of data). Because of this mismatch, the output of a SPARQL SELECT query cannot be used as the input to another SPARQL query. Another area where SPARQL could be extended is in troubleshooting of query structure. To fill these gaps, data.world has written two extensions:

  • Named constructs

  • DIAGNOSE