NL2SHACL-Bench: A Benchmark Suite for Natural Language to SHACL Translation
Abstract
SHACL is a core technology for validating the conformance of RDF knowledge graphs (KGs). Yet, authoring SHACL shapes requires technical expertise that most domain experts lack. Translating natural language requirements into SHACL (NL2SHACL) would lower this barrier. However, there is no dedicated benchmark for NL2SHACL, and evaluating generated shapes requires methods beyond string comparison, as semantically equivalent shapes can differ in serialisation and structure. To tackle these challenges, we present NL2SHACL-Bench, a benchmark suite for natural language to SHACL translation. Using NL2SHACL-Bench, we evaluate four state-of-the-art large language models (LLMs) for this task. Our results show that current LLMs are highly capable of generating syntactically valid SHACL, but still struggle to produce semantically equivalent constraints for complex logical and structural patterns. This indicates that NL2SHACL-Bench provides a meaningful basis for measuring advances in the NL2SHACL state of the art.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CL, cs.DB
- Comments
- Accepted at ISWC 2026; 18 pages, 8 figures, 2 tables
Related papers
EvoLink-Bench: A Benchmark for Evaluating Self-Evolving Agents in Long-Horizon Interdependent Task Streams
Shared title terminologycs.AIWei Chen, Xiaodong Lu, Weihao Shen et al.
InterGenEHR^+: An Interactive Framework for Natural Language-Conditioned Generation of Longitudinal Patient Trajectories
Shared title terminologycs.AIYu Yang, Jiafeng Song, Baraa F Abed et al.
Asset4D-Bench: Benchmarking Coding Agents for Editable 3D and 4D Reconstruction
Shared title terminologycs.AIChengyi Sun, Deyuan Liu, Lei Zhao et al.
E-Bench: Benchmarking Multi-Step Tool-Use Agents in Real-World Product Scenarios
Shared title terminologycs.AIWeihuang Zheng, Tianyuan Zou, Eileen Ye et al.
ESF-Bench: Benchmarking Challenging Slot-Filling Scenarios for Real-World Enterprise Applications
Shared title terminologycs.AIToby Liang, Gopal Sarda, Sagar Davasam et al.
SQBench: A Benchmark for Evaluating Task Delivery by Language-Model Agents in Production-Oriented Workflows
Shared title terminologycs.AISummer Sun