KR2026Proceedings of the 23rd International Conference on Principles of Knowledge Representation and ReasoningProceedings of the 23rd International Conference on Principles of Knowledge Representation and Reasoning

Lisbon, Portugal. July 20-23, 2026.

Edited by

ISSN: 2334-1033
ISBN: 978-1-956792-18-8

Sponsored by
Published by

Copyright © 2026 International Joint Conferences on Artificial Intelligence Organization

Common Foundations for Recursive Shape Languages

  1. Shqiponja Ahmetaj(TU Wien)
  2. Iovka Boneva(University of Lille)
  3. Jan Hidders(Birkbeck, University of London)
  4. Maxime Jakubowski(TU Wien)
  5. Jose-Emilio Labra-Gayo(University of Oviedo)
  6. Wim Martens(University of Bayreuth)
  7. Fabio Mogavero(Universita di Napoli Federico II)
  8. Filip Murlak(University of Warsaw)
  9. Cem Okulmus(Paderborn University)
  10. Ognjen Savkovic(Free University of Bolzano)
  11. Mantas Šimkus(TU Wien)
  12. Dominik Tomaszuk(University of Bialystok)

Keywords

  1. null-SHACL
  2. null-ShEx
  3. null-RDF
  4. null-recursion
  5. null-shapes
  6. null-semantics

Abstract

As schema languages for RDF data become more mature, we are seeing efforts to extend them with recursive semantics, applying diverse ideas from logic programming and description logics. While ShEx has an official recursive semantics based on greatest fixpoints (GFP), the discussion for SHACL is ongoing and seems to be converging towards least fixpoints (LFP). A practical study we perform shows that, indeed, ShEx validators implement GFP, whereas SHACL validators are more heterogeneous. This situation creates tension between ShEx and SHACL, as their semantic commitments appear to diverge, potentially undermining interoperability and predictability. We aim to clarify this design space by comparing the main semantic options in a principled yet accessible way, hoping to engage both theoreticians and practicioners, especially those involved in developing tools and standards. We present a unifying formal semantics that treats LFP, GFP, and supported model semantics (SMS), clarifying their relationships and highlighting a duality between LFP and GFP on stratified fragments. Next, we investigate to which extent the directions taken by SHACL and ShEx are compatible. We show that, although ShEx and SHACL seem to be going in different directions, they include large fragments with identical expressive power. Moreover, there is a strong correspondence between these fragments through the aforementioned principle of duality. Finally, we present a complete picture of the data and combined complexity of ShEx and SHACL validation under LFP, GFP, and SMS, showing that SMS comes at a higher computational cost under standard complexity-theoretic assumptions.