Define and execute rules

TopBraid Composer supports representation and execution of rules using SHACL and SPIN.

SHACL is an official W3C standard that includes an SHACL Advanced Features specification. That document includes a vocabulary for the representation of rules in SPARQL, JavaScript or SHACL's own expression language.

SPIN is a very expressive rule language and is based on the official W3C SPARQL standard. SPIN's meta-modeling capabilities also make it a very extensible and maintainable choice. TopBraid furthermore provides an option to execute SPIN incrementally. SPIN can also be used to check constraints, and the local scoping (attachment to classes) makes the execution of SPIN very fast. As most features of SPIN have made it into SHACL (which is an official standard), new users are encouraged to use SHACL instead of SPIN. See From SPIN to SHACL.

Editing of rules in either language are supported in TopBraid Composer. To execute the rules, use the Inferences button and related features.