Abstract
The Shape Rules Language (SRL) Working Draft defines how to derive new RDF triples from an RDF graph using
inference rules. Each rule matches graph patterns and instantiates triple templates whose output feeds into
validation pipelines, SPARQL queries, or further inference. RDF reasoning has traditionally relied on fixed
entailment regimes, rule-based ad-hoc languages such as N3, or other implementation-specific solutions without
a shared standard. SRL introduces user-defined production rules with a defined grammar, dependency analysis,
execution ordering, and termination guarantees. However, no authoritative implementation exists, leaving
practitioners with little guidance on how to build a conformant engine or on what problems the language can solve.
We implemented two SRL engines and evaluated both on classical RDF reasoning tasks for soundness, completeness,
and speed. A usable SRL engine can be built inexpensively on top of a SPARQL engine, with a moderate speed
trade-off that a dedicated implementation recovers. Despite the specification's immaturity, the language already
supports practically useful reasoning tasks.