|
| 1 | +PREFIX ex: <http://example.org/> |
| 2 | + |
| 3 | +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> |
| 4 | +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
| 5 | +PREFIX sh: <http://www.w3.org/ns/shacl#> |
| 6 | +PREFIX srl: <http://www.w3.org/ns/shacl-rules#> |
| 7 | +PREFIX owl: <http://www.w3.org/2002/07/owl#> |
| 8 | +PREFIX dc: <http://purl.org/dc/elements/1.1/> |
| 9 | + |
| 10 | +<> a owl:Ontology ; |
| 11 | + dc:title "The SHACL Rules Language Vocabulary (SRL)" ; |
| 12 | + dc:date "2026-12-31" ; |
| 13 | + dc:description "This is the RDF Schema for SHACL Rules." ; |
| 14 | + rdfs:seeAlso <https://w3c.org/TR/shacl12-rules> . |
| 15 | + |
| 16 | +#### SHACL Rules Syntax |
| 17 | + |
| 18 | +## -- Classes |
| 19 | + |
| 20 | +srl:RuleSet rdf:type rdfs:Class ; |
| 21 | + rdfs:isDefinedBy srl: ; |
| 22 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#dfn-rule-set> ; |
| 23 | + rdfs:label "Rule Set" ; |
| 24 | + rdfs:comment "The class of rule sets." . |
| 25 | + |
| 26 | +srl:Rule rdf:type rdfs:Class ; |
| 27 | + rdfs:isDefinedBy srl: ; |
| 28 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#dfn-rule> ; |
| 29 | + rdfs:label "A SHACL Rule" ; |
| 30 | + rdfs:comment "The class of SHACL Rules." . |
| 31 | + |
| 32 | +## -- Properties |
| 33 | + |
| 34 | +srl:rules rdf:type rdf:Property ; |
| 35 | + rdfs:domain srl:RuleSet ; |
| 36 | + # range - list of rules |
| 37 | + rdfs:isDefinedBy srl: ; |
| 38 | + rdfs:label "Rules of a Rule Set" ; |
| 39 | + rdfs:comment "The list of rules of the rule set." . |
| 40 | + |
| 41 | +srl:data rdf:type rdf:Property ; |
| 42 | + rdfs:domain srl:RuleSet ; |
| 43 | + # range - list |
| 44 | + rdfs:isDefinedBy srl: ; |
| 45 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#dfn-data-block> ; |
| 46 | + rdfs:label "Data" ; |
| 47 | + rdfs:comment "The list of data of the rule set." . |
| 48 | + |
| 49 | +srl:head rdf:type rdf:Property ; |
| 50 | + rdfs:domain srl:Rule ; |
| 51 | + # range - list of triple templates |
| 52 | + rdfs:isDefinedBy srl: ; |
| 53 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#dfn-rule-head> ; |
| 54 | + rdfs:label "Rule head" ; |
| 55 | + rdfs:comment "The consequent of a rule." . |
| 56 | + |
| 57 | +srl:body rdf:type rdf:Property ; |
| 58 | + rdfs:domain srl:Rule ; |
| 59 | + # range : list of rule elements |
| 60 | + rdfs:isDefinedBy srl: ; |
| 61 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#dfn-rule-body> ; |
| 62 | + rdfs:label "Rule body" ; |
| 63 | + rdfs:comment "The antecedent of a rule." . |
| 64 | + |
| 65 | +## -- Rule Body |
| 66 | + |
| 67 | +srl:RuleElement rdf:type rdfs:Class ; |
| 68 | + rdfs:isDefinedBy srl: ; |
| 69 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#dfn-rule-body-element> ; |
| 70 | + rdfs:label "A SHACL Rule Element" ; |
| 71 | + rdfs:comment "The class of SHACL Rule Elements." . |
| 72 | + |
| 73 | +srl:TriplePattern rdf:type rdfs:Class ; |
| 74 | + rdfs:subClassOf srl:RuleElement ; |
| 75 | + rdfs:isDefinedBy srl: ; |
| 76 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#dfn-triple-pattern> ; |
| 77 | + rdfs:label "A SHACL Rule Element" ; |
| 78 | + rdfs:comment "The class of triple patterns." . |
| 79 | + |
| 80 | +srl:CondidtionElement rdf:type rdfs:Class ; |
| 81 | + rdfs:subClassOf srl:RuleElement ; |
| 82 | + rdfs:isDefinedBy srl: ; |
| 83 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#dfn-condition-element> ; |
| 84 | + rdfs:label "A SHACL Rule condition element" ; |
| 85 | + rdfs:comment "The class of SHACL condition elements." . |
| 86 | + |
| 87 | +srl:AssignmentElement rdf:type rdfs:Class ; |
| 88 | + rdfs:subClassOf srl:RuleElement ; |
| 89 | + rdfs:isDefinedBy srl: ; |
| 90 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#dfn-assignment-element> ; |
| 91 | + rdfs:label "A SHACL Rule assignment element" ; |
| 92 | + rdf:comment "The class of SHACL assignment elements." . |
| 93 | + |
| 94 | +srl:NegationElement rdf:type rdfs:Class ; |
| 95 | + rdfs:subClassOf srl:RuleElement ; |
| 96 | + rdfs:isDefinedBy srl: ; |
| 97 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#dfn-negation-element> ; |
| 98 | + rdfs:label "A SHACL Rule negation element" ; |
| 99 | + rdf:comment "The class of SHACL negation elements." . |
| 100 | + |
| 101 | +## ---- |
| 102 | + |
| 103 | +srl:filter rdf:type rdf:Property ; |
| 104 | + rdfs:isDefinedBy srl: ; |
| 105 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#rdf-rules-syntax> ; |
| 106 | + rdfs:label "filter" ; |
| 107 | + rdfs:comment "A filter rule element" . |
| 108 | + |
| 109 | +## @@Remove |
| 110 | +srl:assign rdf:type rdf:Property ; |
| 111 | + rdfs:isDefinedBy srl: ; |
| 112 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#rdf-rules-syntax> ; |
| 113 | + rdfs:label "assign" ; |
| 114 | + rdfs:comment "An asssignment rule element" . |
| 115 | + |
| 116 | + |
| 117 | +srl:assignVar rdf:type rdf:Property ; |
| 118 | + rdfs:isDefinedBy srl: ; |
| 119 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#rdf-rules-syntax> ; |
| 120 | + rdfs:label "assignment variable" ; |
| 121 | + rdfs:comment "The variable of an assignment" . |
| 122 | + |
| 123 | +srl:assignValue rdf:type rdf:Property ; |
| 124 | + rdfs:isDefinedBy srl: ; |
| 125 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#rdf-rules-syntax> ; |
| 126 | + rdfs:label "addignment value" ; |
| 127 | + rdfs:comment "The value or expression for an assignment" . |
| 128 | + |
| 129 | +srl:not rdf:type rdf:Property ; |
| 130 | + rdfs:isDefinedBy srl: ; |
| 131 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#rdf-rules-syntax> ; |
| 132 | + rdfs:label "negation rule element" ; |
| 133 | + rdfs:comment "A negation rule element" . |
| 134 | + |
| 135 | +## ---- |
| 136 | + |
| 137 | +srl:subject rdf:type rdf:Property ; |
| 138 | + rdfs:isDefinedBy srl: ; |
| 139 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#rdf-rules-syntax> ; |
| 140 | + rdfs:range rdfs:Resource ; |
| 141 | + rdfs:label "subject" ; |
| 142 | + rdfs:comment "The subject of a triple, triple pattern or triple template." . |
| 143 | + |
| 144 | +srl:predicate rdf:type rdf:Property ; |
| 145 | + rdfs:isDefinedBy srl: ; |
| 146 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#rdf-rules-syntax> ; |
| 147 | + rdfs:range rdfs:Resource ; |
| 148 | + rdfs:label "predicate" ; |
| 149 | + rdfs:comment "The predicate of a triple, triple pattern or triple template." . |
| 150 | + |
| 151 | +srl:object rdf:type rdf:Property ; |
| 152 | + rdfs:isDefinedBy srl: ; |
| 153 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#rdf-rules-syntax> ; |
| 154 | + rdfs:range rdfs:Resource ; |
| 155 | + rdfs:label "object" ; |
| 156 | + rdfs:comment "The object of a triple, triple pattern or triple template." . |
| 157 | + |
| 158 | +srl:varName rdf:type rdf:Property ; |
| 159 | + rdfs:isDefinedBy srl: ; |
| 160 | + rdfs:isDefinedBy <https://www.w3.org/TR/shacl12-rules/#rdf-rules-syntax> ; |
| 161 | + rdfs:label "name of a variable" ; |
| 162 | + rdfs:comment "Name of a variable name." . |
0 commit comments