NL2SHACL-Bench: New Benchmark for Natural Language to SHACL Translation

Yuchen Zhou, Niels Bobet, Maribel Acosta· August 11, 2026 View original

Key takeaways

  • NL2SHACL-Bench is a new benchmark for translating natural language to SHACL.
  • LLMs can generate syntactically valid SHACL but struggle with semantic equivalence.
  • Automating SHACL creation lowers the barrier for knowledge graph validation.
  • The benchmark provides a basis for measuring advances in NL2SHACL.

Who benefits

Data ManagementSemantic WebEnterprise AIHealthcareFinance

Summary

This paper introduces NL2SHACL-Bench, a new benchmark suite designed to evaluate the translation of natural language requirements into SHACL shapes for RDF knowledge graph validation. It also assesses four state-of-the-art LLMs, finding they generate syntactically valid SHACL but struggle with semantic equivalence for complex patterns.

SHACL is a crucial technology for validating RDF knowledge graphs, but its authoring demands specialized technical expertise, creating a barrier for domain experts. Translating natural language requirements into SHACL (NL2SHACL) could significantly lower this barrier, but a dedicated benchmark for this task has been lacking. To address this, researchers developed NL2SHACL-Bench, a comprehensive benchmark suite for evaluating NL2SHACL translation. This benchmark is designed to overcome the challenge of evaluating generated SHACL shapes, which can be semantically equivalent despite differing in serialization or structure, requiring more than simple string comparison. The study used NL2SHACL-Bench to evaluate four leading large language models (LLMs) on this task. The findings indicate that while current LLMs are highly capable of producing syntactically correct SHACL, they still face difficulties in generating semantically equivalent constraints for more intricate logical and structural patterns. This suggests NL2SHACL-Bench provides a valuable tool for measuring progress in the field.

Why it matters

For professionals working with knowledge graphs and semantic web technologies, automating the creation of SHACL constraints from natural language can significantly accelerate development, improve data quality, and make these technologies more accessible to non-technical users.

How to implement this in your domain

  1. 1Explore using LLMs for initial SHACL shape generation from natural language requirements.
  2. 2Implement robust validation processes to verify semantic equivalence of generated SHACL.
  3. 3Contribute to or utilize NL2SHACL-Bench to evaluate and improve internal NL2SHACL tools.
  4. 4Train domain experts on reviewing and refining AI-generated SHACL to ensure accuracy.

Original post by Yuchen Zhou, Niels Bobet, Maribel Acosta

"arXiv:2608.07530v1 Announce Type: new 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 (N…"

View on X

Originally posted by Yuchen Zhou, Niels Bobet, Maribel Acosta on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses