Jump to main content Hotkeys
Distributed and Self-organizing Systems
Distributed and Self-organizing Systems

PUBLICATION

ShEx2SPARQL: Translating Shape Expressions into SPARQL Queries

Type

Conference Paper

Year

2025

Authors

christophgoepfert

samuel

gaedke

Research Area

Web Engineering

Event

25th International Conference on Web Engineering

Published in

25th International Conference on Web Engineering, Delft, Netherlands

Download

PDF

Abstract

The Shape Expressions (ShEx) Language provides a powerful tool for de-scribing and validating structures in RDF knowledge graphs. While Shape Expressions are primarily used for validation, they also describe graph struc-tures, enabling knowledge graph exploration. However, existing ShEx en-gines focus on validation rather than data exploration. In this paper, we in-troduce ShEx2SPARQL, an approach to systematically translate shape ex-pressions into corresponding CONSTRUCT, SELECT, or ASK SPARQL que-ries. This enables knowledge graph exploration based on already available ShEx schemas. Our approach imposes certain restrictions, notably the exclu-sion of recursive shape references, as SPARQL lacks sufficient support for recursive expressions. To evaluate our approach, we selected 292 Wikidata Entity Schemas, translated them into corresponding SPARQL queries and ex-ecuted them against the Wikidata SPARQL endpoint. The results confirm the feasibility of our approach, but also reveal performance issues when execut-ing complex SPARQL queries resulting from complex shapes with a multi-tude of constraints.

Reference

Göpfert, Christoph; Samuel, Sheeba; Gaedke, Martin: ShEx2SPARQL: Translating Shape Expressions into SPARQL Queries. 25th International Conference on Web Engineering, Delft, Netherlands, 2025.



Powered by DGS
Edit list (authentication required)

Press Articles