Table of Contents
Fetching ...

A user-friendly SPARQL query editor powered by lightweight metadata

Vincent Emonet, Ana-Claudia Sima, Tarcisio Mendes de Farias

TL;DR

The paper tackles the lack of intuitive, endpoint-aware SPARQL editors by introducing an open-source extension to YASGUI that is triple-store agnostic and lightweight. It automatically loads query examples from endpoint metadata, provides context-aware autocomplete driven by VoID descriptions, and visualizes a data-aware schema derived from VoID, all accessible via a simple <sparql-editor/> element. The approach aims to reduce query-writing friction across diverse RDF endpoints and supports federated queries within SERVICE calls, demonstrating practicality on large datasets and emphasizing deployability. While limitations include reliance on older editor components and metadata availability, the work offers a practical, extensible foundation for endpoint-aware SPARQL tooling with potential for community-driven enhancement.

Abstract

SPARQL query editors often lack intuitive interfaces to aid SPARQL-savvy users to write queries. To address this issue, we propose an easy-to-deploy, triple store-agnostic and open-source query editor that offers three main features: (i) automatic query example rendering, (ii) precise autocomplete based on existing triple patterns including within SERVICE clauses, and (iii) a data-aware schema visualization. It can be easily set up with a custom HTML element. The tool has been successfully tested on various public endpoints, and is deployed online at https://sib-swiss.github.io/sparql-editor with open-source code available at https://github.com/sib-swiss/sparql-editor.

A user-friendly SPARQL query editor powered by lightweight metadata

TL;DR

The paper tackles the lack of intuitive, endpoint-aware SPARQL editors by introducing an open-source extension to YASGUI that is triple-store agnostic and lightweight. It automatically loads query examples from endpoint metadata, provides context-aware autocomplete driven by VoID descriptions, and visualizes a data-aware schema derived from VoID, all accessible via a simple <sparql-editor/> element. The approach aims to reduce query-writing friction across diverse RDF endpoints and supports federated queries within SERVICE calls, demonstrating practicality on large datasets and emphasizing deployability. While limitations include reliance on older editor components and metadata availability, the work offers a practical, extensible foundation for endpoint-aware SPARQL tooling with potential for community-driven enhancement.

Abstract

SPARQL query editors often lack intuitive interfaces to aid SPARQL-savvy users to write queries. To address this issue, we propose an easy-to-deploy, triple store-agnostic and open-source query editor that offers three main features: (i) automatic query example rendering, (ii) precise autocomplete based on existing triple patterns including within SERVICE clauses, and (iii) a data-aware schema visualization. It can be easily set up with a custom HTML element. The tool has been successfully tested on various public endpoints, and is deployed online at https://sib-swiss.github.io/sparql-editor with open-source code available at https://github.com/sib-swiss/sparql-editor.

Paper Structure

This paper contains 9 sections, 1 figure.

Figures (1)

  • Figure 1: Our query editor showing on the right side example queries stored as metadata and fetched from a SPARQL endpoint. By pressing CTRL+Space after ?species, the autocomplete suggests only predicates which are asserted to instances of up:Taxon.