Text2SHACL
To increase social benefit take-up, applications like FörderFunke automatically assess eligibility based on user data and provide personalized information about relevant benefits. FörderFunke encodes eligibility requirements in the Shapes Constraint Language (SHACL), supporting the German government’s efforts to promote open standards in public IT and facilitating their solution’s maintainability, modularity, and interoperability. However, like other SHACL-driven approaches to automatic compliance checking, they face the challenge that converting natural language rules to SHACL requires significant manual effort and slows down development. Against this background, this work formally defines the Text2SHACL task and extends existing approaches in two key ways: First, we establish a principled foundation for utilizing SHACL in the formerly unexplored domain of social benefit eligibility assessment. Specifically, we introduce a domain-specific annotated dataset and a schema guiding through the Text2SHACL task alongside a qualitative analysis of critical SHACL- and domain-specific formalization challenges. Second, we explore an end-to-end approach to automating Text2SHACL driven by Large Language Models (LLMs), which overcomes limitations of prior work that struggles with complex constraints and diverse linguistic input. Adopting a prompt engineering methodology, we establish a Zeroshot baseline, analyze reasons for an overall poor initial performance, and demonstrate the positive effects of Fewshot and Chain-of-Thought prompting on the syntactic and semantic quality of generated shapes graphs for a selection of LLMs.
Publication Details
- Journal
- PubData
- Published
- 2025-07-15
- DOI
- https://doi.org/10.48548/pubdata-1887
- Primary Topic
- Software System Performance and Reliability
- Type
- article
- Field-Weighted Citation Impact
- 0.00