From Shapes to Shapes: Inferring SHACL Shapes for Results of SPARQL CONSTRUCT Queries
Philipp Seifer, Daniel Hernández, Ralf Lämmel, Steffen Staab
摘要
SPARQL CONSTRUCT queries allow for the specification of data processing pipelines that transform given input graphs into new output graphs. It is now common to constrain graphs through SHACL shapes allowing users to understand which data they can expect and which not. However, it becomes challenging to understand what graph data can be expected at the end of a data processing pipeline without knowing the particular input data: Shape constraints on the input graph may affect the output graph, but may no longer apply literally, and new shapes may be imposed by the query template. In this paper, we study the derivation of shape constraints that hold on all possible output graphs of a given SPARQL CONSTRUCT query. We assume that the SPARQL CONSTRUCT query is fixed, e.g., being part of a program, whereas the input graphs adhere to input shape constraints but may otherwise vary over time and, thus, are mostly unknown. We study a fragment of SPARQL CONSTRUCT queries (SCCQ) and a fragment of SHACL (Simple SHACL). We formally define the problem of deriving the most restrictive set of Simple SHACL shapes that constrain the results from evaluating a SCCQ over any input graph restricted by a given set of Simple SHACL shapes. We propose and implement an algorithm that statically analyses input SHACL shapes and CONSTRUCT queries and prove its soundness and complexity.
问问这篇 Paper
智能体会读完全文。
Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。
它引用的顶会 Paper1
相关 Paper
- Stable Model Semantics for Recursive SHACLMedina Andresel, Julien Corman, Magdalena Ortiz, Juan L. Reutter 等WWW 2020 · 被引用 47 次
- Magic Shapes for SHACL ValidationShqiponja Ahmetaj, Bianca Löhnert, Magdalena Ortiz, Mantas SimkusVLDB 2022 · 被引用 7 次
- Trav-SHACL: Efficiently Validating Networks of SHACL ConstraintsMónica Figuera, Philipp D. Rohde, Maria-Esther VidalWWW 2021 · 被引用 39 次
- Transforming RDF Graphs to Property Graphs using Standardized SchemasKashif Rabbani, Matteo Lissandrini, Angela Bonifati, Katja HoseSIGMOD 2025 · 被引用 13 次
- Efficient Validation of SHACL Shapes with ReasoningJin Ke, Zenon G. Zacouris, Maribel AcostaVLDB 2024 · 被引用 9 次
