{"id":17751,"date":"2025-01-01T00:00:00","date_gmt":"2025-01-01T00:00:00","guid":{"rendered":"https:\/\/vsr.informatik.tu-chemnitz.de\/publications\/shex2sparql-translating-shape-expressions-into-sparql-queries\/"},"modified":"2026-12-03T15:46:42","modified_gmt":"2026-12-03T15:46:42","slug":"shex2sparql-translating-shape-expressions-into-sparql-queries","status":"publish","type":"publication","link":"https:\/\/vsr.informatik.tu-chemnitz.de\/research\/publications\/2025\/004\/","title":{"rendered":"ShEx2SPARQL: Translating Shape Expressions into SPARQL Queries"},"content":{"rendered":"\n<div class=\"wp-block-vsr-blocks-header\">\n\t<h3 class=\"grey linie\">\n\t\tAbstract\t<\/h3>\n\t<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"template":"","meta":{"publication_year":2025,"publication_location":"25th International Conference on Web Engineering, Delft, Netherlands","publication_pages":"209-216","publication_city":"Delft","publication_country":"Netherlands","publication_event_name":"25th International Conference on Web Engineering","publication_event_url":"https:\/\/icwe2025.webengineering.org\/","publication_event_start":"2025-06-30","publication_event_end":"2025-07-03","publication_doi":"10.1007\/978-3-031-97207-2_16","publication_isbn_print":"978-3-031-97206-5","publication_isbn_online":"978-3-031-97207-2","publication_issn":"","publication_pdf_url":"https:\/\/vsr.informatik.tu-chemnitz.de\/people\/christophgoepfert\/publications\/shex2sparql.pdf","publication_additional_links":[],"publication_biblatex":"@inproceedings{shex2sparqltranslati2025,\n  author = {G\u00f6pfert, Christoph and Samuel, Sheeba and Gaedke, Martin},\n  title = {{ShEx2SPARQL: Translating Shape Expressions into SPARQL Queries}},\n  year = {2025},\n  booktitle = {25th International Conference on Web Engineering, Delft, Netherlands},\n  isbn = {978-3-031-97206-5},\n  isbnonline = {978-3-031-97207-2},\n  pages = {209-216},\n  doi = {10.1007\/978-3-031-97207-2_16},\n  eventtitle = {25th International Conference on Web Engineering},\n  eventdate = {2025-06-30\/2025-07-03},\n  location = {Delft, Netherlands},\n  url = {https:\/\/vsr.informatik.tu-chemnitz.de\/people\/christophgoepfert\/publications\/shex2sparql.pdf},\n  keywords = {Web Engineering, Exploration, Knowledge Graph, Linked Data, Semantic Web, Shape Expressions, ShEx, SPARQL, vsr},\n}\n","publication_csl":"{\n    \"id\": \"17751\",\n    \"type\": \"paper-conference\",\n    \"title\": \"ShEx2SPARQL: Translating Shape Expressions into SPARQL Queries\",\n    \"author\": [\n        {\n            \"given\": \"Christoph\",\n            \"family\": \"G\u00f6pfert\"\n        },\n        {\n            \"given\": \"Sheeba\",\n            \"family\": \"Samuel\"\n        },\n        {\n            \"given\": \"Martin\",\n            \"family\": \"Gaedke\"\n        }\n    ],\n    \"issued\": {\n        \"date-parts\": [\n            [\n                2025\n            ]\n        ]\n    },\n    \"container-title\": \"25th International Conference on Web Engineering, Delft, Netherlands\",\n    \"event-place\": \"Delft, Netherlands\",\n    \"page\": \"209-216\",\n    \"event-title\": \"25th International Conference on Web Engineering\",\n    \"DOI\": \"10.1007\/978-3-031-97207-2_16\",\n    \"URL\": \"https:\/\/vsr.informatik.tu-chemnitz.de\/people\/christophgoepfert\/publications\/shex2sparql.pdf\"\n}","publication_id_legacy":"2025-004","publication_first_author_legacy":"Christoph G\u00f6pfert","publication_authors_legacy":"Christoph G\u00f6pfert; Sheeba Samuel; Martin Gaedke","publication_author_uris_legacy":"; ;","publication_year_legacy":"2025","publication_type_legacy":"Conference Paper","publication_location_legacy":"25th International Conference on Web Engineering, Delft, Netherlands","publication_status_legacy":"accepted","publication_research_area_legacy":"we","publication_event_start_legacy":"2025-06-30 00:00:00","publication_event_end_legacy":"2025-07-03 00:00:00","publication_abstract_legacy":"<p>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.<\/p>","publication_isbn_legacy":"print: 978-3-031-97206-5; online: 978-3-031-97207-2","publication_pages_legacy":"209-216","publication_city_legacy":"Delft","publication_country_legacy":"Netherlands","publication_event_name_legacy":"25th International Conference on Web Engineering","publication_event_url_legacy":"https:\/\/icwe2025.webengineering.org\/","publication_doi_url_legacy":"https:\/\/doi.org\/10.1007\/978-3-031-97207-2_16","publication_pdf_url_legacy":"https:\/\/vsr.informatik.tu-chemnitz.de\/people\/christophgoepfert\/publications\/shex2sparql.pdf","publication_bibtex_url_legacy":"","publication_other_links_legacy":"","publication_tags_legacy":"vsr; Shape Expressions; ShEx; SPARQL; Knowledge Graph; Exploration; Linked Data; Semantic Web","publication_missing_fields_legacy":"bibtex_url","migration_allowed":true,"breadcrumb_parent":348,"footnotes":"","vsr_identifier_year":2025,"vsr_sequence_id":4,"vsr_primary_id":380},"publication_type":[564],"publication_research_area":[571],"publication_tag":[667,666,668,669,663,664,665,572],"publication_status":[569],"class_list":["post-17751","publication","type-publication","status-publish","hentry","publication_type-conference-paper","publication_research_area-web-engineering","publication_tag-exploration","publication_tag-knowledge-graph","publication_tag-linked-data","publication_tag-semantic-web","publication_tag-shape-expressions","publication_tag-shex","publication_tag-sparql","publication_tag-vsr","publication_status-accepted"],"meta_box":{"publication_year":"2025","publication_location":"25th International Conference on Web Engineering, Delft, Netherlands","publication_pages":"209-216","publication_city":"Delft","publication_country":"Netherlands","publication_event_name":"25th International Conference on Web Engineering","publication_event_url":"https:\/\/icwe2025.webengineering.org\/","publication_event_start":"2025-06-30","publication_event_end":"2025-07-03","publication_doi":"10.1007\/978-3-031-97207-2_16","publication_isbn_print":"978-3-031-97206-5","publication_isbn_online":"978-3-031-97207-2","publication_issn":"","publication_pdf_url":"https:\/\/vsr.informatik.tu-chemnitz.de\/people\/christophgoepfert\/publications\/shex2sparql.pdf","publication_additional_links":[],"publication_biblatex":"@inproceedings{shex2sparqltranslati2025,\n  author = {G\u00f6pfert, Christoph and Samuel, Sheeba and Gaedke, Martin},\n  title = {{ShEx2SPARQL: Translating Shape Expressions into SPARQL Queries}},\n  year = {2025},\n  booktitle = {25th International Conference on Web Engineering, Delft, Netherlands},\n  isbn = {978-3-031-97206-5},\n  isbnonline = {978-3-031-97207-2},\n  pages = {209-216},\n  doi = {10.1007\/978-3-031-97207-2_16},\n  eventtitle = {25th International Conference on Web Engineering},\n  eventdate = {2025-06-30\/2025-07-03},\n  location = {Delft, Netherlands},\n  url = {https:\/\/vsr.informatik.tu-chemnitz.de\/people\/christophgoepfert\/publications\/shex2sparql.pdf},\n  keywords = {Web Engineering, Exploration, Knowledge Graph, Linked Data, Semantic Web, Shape Expressions, ShEx, SPARQL, vsr},\n}\n","publication_csl":"{\n    \"id\": \"17751\",\n    \"type\": \"paper-conference\",\n    \"title\": \"ShEx2SPARQL: Translating Shape Expressions into SPARQL Queries\",\n    \"author\": [\n        {\n            \"given\": \"Christoph\",\n            \"family\": \"G\u00f6pfert\"\n        },\n        {\n            \"given\": \"Sheeba\",\n            \"family\": \"Samuel\"\n        },\n        {\n            \"given\": \"Martin\",\n            \"family\": \"Gaedke\"\n        }\n    ],\n    \"issued\": {\n        \"date-parts\": [\n            [\n                2025\n            ]\n        ]\n    },\n    \"container-title\": \"25th International Conference on Web Engineering, Delft, Netherlands\",\n    \"event-place\": \"Delft, Netherlands\",\n    \"page\": \"209-216\",\n    \"event-title\": \"25th International Conference on Web Engineering\",\n    \"DOI\": \"10.1007\/978-3-031-97207-2_16\",\n    \"URL\": \"https:\/\/vsr.informatik.tu-chemnitz.de\/people\/christophgoepfert\/publications\/shex2sparql.pdf\"\n}","migration_allowed":"1","publication_id_legacy":"2025-004","publication_first_author_legacy":"Christoph G\u00f6pfert","publication_authors_legacy":"Christoph G\u00f6pfert; Sheeba Samuel; Martin Gaedke","publication_author_uris_legacy":"; ;","publication_year_legacy":"2025","publication_type_legacy":"Conference Paper","publication_location_legacy":"25th International Conference on Web Engineering, Delft, Netherlands","publication_status_legacy":"accepted","publication_research_area_legacy":"we","publication_event_start_legacy":"2025-06-30 00:00:00","publication_event_end_legacy":"2025-07-03 00:00:00","publication_abstract_legacy":"<p>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.<\/p>","publication_isbn_legacy":"print: 978-3-031-97206-5; online: 978-3-031-97207-2","publication_pages_legacy":"209-216","publication_city_legacy":"Delft","publication_country_legacy":"Netherlands","publication_event_name_legacy":"25th International Conference on Web Engineering","publication_event_url_legacy":"https:\/\/icwe2025.webengineering.org\/","publication_doi_url_legacy":"https:\/\/doi.org\/10.1007\/978-3-031-97207-2_16","publication_pdf_url_legacy":"https:\/\/vsr.informatik.tu-chemnitz.de\/people\/christophgoepfert\/publications\/shex2sparql.pdf","publication_bibtex_url_legacy":"","publication_other_links_legacy":"","publication_tags_legacy":"vsr; Shape Expressions; ShEx; SPARQL; Knowledge Graph; Exploration; Linked Data; Semantic Web","publication_missing_fields_legacy":"bibtex_url","breadcrumb_parent":348,"publication_authors_to":["18955","18967","18949"],"publication_type_to":{"term_id":564,"name":"Conference Paper","slug":"conference-paper","term_group":0,"term_taxonomy_id":565,"taxonomy":"publication_type","description":"","parent":0,"count":279,"filter":"raw","term_order":"0"},"publication_status_to":{"term_id":569,"name":"accepted","slug":"accepted","term_group":0,"term_taxonomy_id":570,"taxonomy":"publication_status","description":"","parent":0,"count":392,"filter":"raw","term_order":"0"},"publication_research_area_to":{"term_id":571,"name":"Web Engineering","slug":"web-engineering","term_group":0,"term_taxonomy_id":572,"taxonomy":"publication_research_area","description":"","parent":0,"count":213,"filter":"raw","term_order":"0"}},"_links":{"self":[{"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=\/wp\/v2\/publication\/17751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=\/wp\/v2\/publication"}],"about":[{"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=\/wp\/v2\/types\/publication"}],"author":[{"embeddable":true,"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"version-history":[{"count":8,"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=\/wp\/v2\/publication\/17751\/revisions"}],"predecessor-version":[{"id":31127,"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=\/wp\/v2\/publication\/17751\/revisions\/31127"}],"wp:attachment":[{"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17751"}],"wp:term":[{"taxonomy":"publication_type","embeddable":true,"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=%2Fwp%2Fv2%2Fpublication_type&post=17751"},{"taxonomy":"publication_research_area","embeddable":true,"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=%2Fwp%2Fv2%2Fpublication_research_area&post=17751"},{"taxonomy":"publication_tag","embeddable":true,"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=%2Fwp%2Fv2%2Fpublication_tag&post=17751"},{"taxonomy":"publication_status","embeddable":true,"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=%2Fwp%2Fv2%2Fpublication_status&post=17751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}