Skip to content

SHACL Rules: Add rule sets to RDF vocabulary #1157

Description

@HolgerKnublauch

It may be useful to group rules into sets that are supposed to be executed together. SRL relies on that concept.

Suggestion:

ex:Rule1
    a sh:SPARQLRule ;
    sh:ruleSet ex:RuleSet1 .

ex:RuleSet1
    a sh:RuleSet ;
    sh:importsRuleSet ex:RuleSet2 .

ex:RuleSet2
    a sh:RuleSet . 

The naming is chosen to be consistent with SRL which has an IMPORTS keyword and owl:imports.

We point from Rules to RuleSets similar to how property shapes point to property groups. Rules may be in multiple sets.

There is an unnamed default rule set per graph which consists of all rules that do not have a sh:ruleSet triple.

Metadata

Metadata

Labels

SHACL RulesFor SHACL 1.2 Rules spec (formerly part of SHACL-SPARQL)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions