Skip to content

Commit e8b500f

Browse files
committed
GH-0000 Expose SHACL options in workbench
1 parent 36c6cbe commit e8b500f

5 files changed

Lines changed: 394 additions & 0 deletions

File tree

core/repository/api/src/main/resources/org/eclipse/rdf4j/repository/config/memory-shacl.ttl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@
1111
config:rep.type "openrdf:SailRepository" ;
1212
config:sail.impl [
1313
config:sail.type "rdf4j:ShaclSail" ;
14+
config:shacl.parallelValidation {%Parallel validation|true|false%} ;
15+
config:shacl.logValidationPlans {%Log validation plans|true|false%} ;
16+
config:shacl.logValidationViolations {%Log validation violations|true|false%} ;
17+
config:shacl.validationEnabled {%Validation enabled|true|false%} ;
18+
config:shacl.cacheSelectNodes {%Cache select nodes|true|false%} ;
19+
config:shacl.globalLogValidationExecution {%Global log validation execution|true|false%} ;
20+
config:shacl.rdfsSubClassReasoning {%RDFS subclass reasoning|true|false%} ;
21+
config:shacl.performanceLogging {%Performance logging|true|false%} ;
22+
config:shacl.serializableValidation {%Serializable validation|true|false%} ;
23+
config:shacl.eclipseRdf4jShaclExtensions {%Eclipse RDF4J SHACL extensions|true|false%} ;
24+
config:shacl.dashDataShapes {%DASH data shapes|true|false%} ;
25+
config:shacl.validationResultsLimitTotal {%Validation results limit total|1000000%} ;
26+
config:shacl.validationResultsLimitPerConstraint {%Validation results limit per constraint|1000%} ;
27+
config:shacl.transactionalValidationLimit {%Transactional validation limit|500000%} ;
28+
config:shacl.shapesGraph {%Shapes graphs|<http://rdf4j.org/schema/rdf4j#SHACLShapeGraph>%} ;
1429
config:delegate [
1530
config:sail.type "openrdf:MemoryStore" ;
1631
config:iterationCacheSyncThreshold "{%Query Iteration Cache size|10000%}";

core/repository/api/src/main/resources/org/eclipse/rdf4j/repository/config/native-shacl.ttl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@
1212
config:rep.type "openrdf:SailRepository" ;
1313
config:sail.impl [
1414
config:sail.type "rdf4j:ShaclSail" ;
15+
config:shacl.parallelValidation {%Parallel validation|true|false%} ;
16+
config:shacl.logValidationPlans {%Log validation plans|true|false%} ;
17+
config:shacl.logValidationViolations {%Log validation violations|true|false%} ;
18+
config:shacl.validationEnabled {%Validation enabled|true|false%} ;
19+
config:shacl.cacheSelectNodes {%Cache select nodes|true|false%} ;
20+
config:shacl.globalLogValidationExecution {%Global log validation execution|true|false%} ;
21+
config:shacl.rdfsSubClassReasoning {%RDFS subclass reasoning|true|false%} ;
22+
config:shacl.performanceLogging {%Performance logging|true|false%} ;
23+
config:shacl.serializableValidation {%Serializable validation|true|false%} ;
24+
config:shacl.eclipseRdf4jShaclExtensions {%Eclipse RDF4J SHACL extensions|true|false%} ;
25+
config:shacl.dashDataShapes {%DASH data shapes|true|false%} ;
26+
config:shacl.validationResultsLimitTotal {%Validation results limit total|1000000%} ;
27+
config:shacl.validationResultsLimitPerConstraint {%Validation results limit per constraint|1000%} ;
28+
config:shacl.transactionalValidationLimit {%Transactional validation limit|500000%} ;
29+
config:shacl.shapesGraph {%Shapes graphs|<http://rdf4j.org/schema/rdf4j#SHACLShapeGraph>%} ;
1530
config:delegate [
1631
config:sail.type "openrdf:NativeStore" ;
1732
config:sail.iterationCacheSyncThreshold "{%Query Iteration Cache size|10000%}";

tools/workbench/src/main/webapp/transformations/create-memory-shacl.xsl

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,163 @@
8686
</td>
8787
<td></td>
8888
</tr>
89+
<tr>
90+
<th>Parallel validation</th>
91+
<td>
92+
<input type="radio" name="Parallel validation" value="true"
93+
checked="true" />
94+
<xsl:value-of select="$true.label" />
95+
<input type="radio" name="Parallel validation" value="false" />
96+
<xsl:value-of select="$false.label" />
97+
</td>
98+
<td></td>
99+
</tr>
100+
<tr>
101+
<th>Log validation plans</th>
102+
<td>
103+
<input type="radio" name="Log validation plans" value="true" />
104+
<xsl:value-of select="$true.label" />
105+
<input type="radio" name="Log validation plans" value="false"
106+
checked="true" />
107+
<xsl:value-of select="$false.label" />
108+
</td>
109+
<td></td>
110+
</tr>
111+
<tr>
112+
<th>Log validation violations</th>
113+
<td>
114+
<input type="radio" name="Log validation violations" value="true" />
115+
<xsl:value-of select="$true.label" />
116+
<input type="radio" name="Log validation violations" value="false"
117+
checked="true" />
118+
<xsl:value-of select="$false.label" />
119+
</td>
120+
<td></td>
121+
</tr>
122+
<tr>
123+
<th>Validation enabled</th>
124+
<td>
125+
<input type="radio" name="Validation enabled" value="true"
126+
checked="true" />
127+
<xsl:value-of select="$true.label" />
128+
<input type="radio" name="Validation enabled" value="false" />
129+
<xsl:value-of select="$false.label" />
130+
</td>
131+
<td></td>
132+
</tr>
133+
<tr>
134+
<th>Cache select nodes</th>
135+
<td>
136+
<input type="radio" name="Cache select nodes" value="true"
137+
checked="true" />
138+
<xsl:value-of select="$true.label" />
139+
<input type="radio" name="Cache select nodes" value="false" />
140+
<xsl:value-of select="$false.label" />
141+
</td>
142+
<td></td>
143+
</tr>
144+
<tr>
145+
<th>Global log validation execution</th>
146+
<td>
147+
<input type="radio" name="Global log validation execution"
148+
value="true" />
149+
<xsl:value-of select="$true.label" />
150+
<input type="radio" name="Global log validation execution"
151+
value="false" checked="true" />
152+
<xsl:value-of select="$false.label" />
153+
</td>
154+
<td></td>
155+
</tr>
156+
<tr>
157+
<th>RDFS subclass reasoning</th>
158+
<td>
159+
<input type="radio" name="RDFS subclass reasoning" value="true"
160+
checked="true" />
161+
<xsl:value-of select="$true.label" />
162+
<input type="radio" name="RDFS subclass reasoning" value="false" />
163+
<xsl:value-of select="$false.label" />
164+
</td>
165+
<td></td>
166+
</tr>
167+
<tr>
168+
<th>Performance logging</th>
169+
<td>
170+
<input type="radio" name="Performance logging" value="true" />
171+
<xsl:value-of select="$true.label" />
172+
<input type="radio" name="Performance logging" value="false"
173+
checked="true" />
174+
<xsl:value-of select="$false.label" />
175+
</td>
176+
<td></td>
177+
</tr>
178+
<tr>
179+
<th>Serializable validation</th>
180+
<td>
181+
<input type="radio" name="Serializable validation" value="true"
182+
checked="true" />
183+
<xsl:value-of select="$true.label" />
184+
<input type="radio" name="Serializable validation" value="false" />
185+
<xsl:value-of select="$false.label" />
186+
</td>
187+
<td></td>
188+
</tr>
189+
<tr>
190+
<th>Eclipse RDF4J SHACL extensions</th>
191+
<td>
192+
<input type="radio" name="Eclipse RDF4J SHACL extensions"
193+
value="true" />
194+
<xsl:value-of select="$true.label" />
195+
<input type="radio" name="Eclipse RDF4J SHACL extensions"
196+
value="false" checked="true" />
197+
<xsl:value-of select="$false.label" />
198+
</td>
199+
<td></td>
200+
</tr>
201+
<tr>
202+
<th>DASH data shapes</th>
203+
<td>
204+
<input type="radio" name="DASH data shapes" value="true" />
205+
<xsl:value-of select="$true.label" />
206+
<input type="radio" name="DASH data shapes" value="false"
207+
checked="true" />
208+
<xsl:value-of select="$false.label" />
209+
</td>
210+
<td></td>
211+
</tr>
212+
<tr>
213+
<th>Validation results limit total</th>
214+
<td>
215+
<input type="text" id="validationResultsLimitTotal"
216+
name="Validation results limit total" size="10"
217+
value="1000000" />
218+
</td>
219+
<td></td>
220+
</tr>
221+
<tr>
222+
<th>Validation results limit per constraint</th>
223+
<td>
224+
<input type="text" id="validationResultsLimitPerConstraint"
225+
name="Validation results limit per constraint" size="10"
226+
value="1000" />
227+
</td>
228+
<td></td>
229+
</tr>
230+
<tr>
231+
<th>Transactional validation limit</th>
232+
<td>
233+
<input type="text" id="transactionalValidationLimit"
234+
name="Transactional validation limit" size="10" value="500000" />
235+
</td>
236+
<td></td>
237+
</tr>
238+
<tr>
239+
<th>Shapes graphs</th>
240+
<td>
241+
<input type="text" id="shapesGraphs" name="Shapes graphs" size="64"
242+
value="&lt;http://rdf4j.org/schema/rdf4j#SHACLShapeGraph&gt;" />
243+
</td>
244+
<td></td>
245+
</tr>
89246
<tr>
90247
<td></td>
91248
<td>

tools/workbench/src/main/webapp/transformations/create-native-shacl.xsl

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,163 @@
7272
</td>
7373
<td></td>
7474
</tr>
75+
<tr>
76+
<th>Parallel validation</th>
77+
<td>
78+
<input type="radio" name="Parallel validation" value="true"
79+
checked="true" />
80+
<xsl:value-of select="$true.label" />
81+
<input type="radio" name="Parallel validation" value="false" />
82+
<xsl:value-of select="$false.label" />
83+
</td>
84+
<td></td>
85+
</tr>
86+
<tr>
87+
<th>Log validation plans</th>
88+
<td>
89+
<input type="radio" name="Log validation plans" value="true" />
90+
<xsl:value-of select="$true.label" />
91+
<input type="radio" name="Log validation plans" value="false"
92+
checked="true" />
93+
<xsl:value-of select="$false.label" />
94+
</td>
95+
<td></td>
96+
</tr>
97+
<tr>
98+
<th>Log validation violations</th>
99+
<td>
100+
<input type="radio" name="Log validation violations" value="true" />
101+
<xsl:value-of select="$true.label" />
102+
<input type="radio" name="Log validation violations" value="false"
103+
checked="true" />
104+
<xsl:value-of select="$false.label" />
105+
</td>
106+
<td></td>
107+
</tr>
108+
<tr>
109+
<th>Validation enabled</th>
110+
<td>
111+
<input type="radio" name="Validation enabled" value="true"
112+
checked="true" />
113+
<xsl:value-of select="$true.label" />
114+
<input type="radio" name="Validation enabled" value="false" />
115+
<xsl:value-of select="$false.label" />
116+
</td>
117+
<td></td>
118+
</tr>
119+
<tr>
120+
<th>Cache select nodes</th>
121+
<td>
122+
<input type="radio" name="Cache select nodes" value="true"
123+
checked="true" />
124+
<xsl:value-of select="$true.label" />
125+
<input type="radio" name="Cache select nodes" value="false" />
126+
<xsl:value-of select="$false.label" />
127+
</td>
128+
<td></td>
129+
</tr>
130+
<tr>
131+
<th>Global log validation execution</th>
132+
<td>
133+
<input type="radio" name="Global log validation execution"
134+
value="true" />
135+
<xsl:value-of select="$true.label" />
136+
<input type="radio" name="Global log validation execution"
137+
value="false" checked="true" />
138+
<xsl:value-of select="$false.label" />
139+
</td>
140+
<td></td>
141+
</tr>
142+
<tr>
143+
<th>RDFS subclass reasoning</th>
144+
<td>
145+
<input type="radio" name="RDFS subclass reasoning" value="true"
146+
checked="true" />
147+
<xsl:value-of select="$true.label" />
148+
<input type="radio" name="RDFS subclass reasoning" value="false" />
149+
<xsl:value-of select="$false.label" />
150+
</td>
151+
<td></td>
152+
</tr>
153+
<tr>
154+
<th>Performance logging</th>
155+
<td>
156+
<input type="radio" name="Performance logging" value="true" />
157+
<xsl:value-of select="$true.label" />
158+
<input type="radio" name="Performance logging" value="false"
159+
checked="true" />
160+
<xsl:value-of select="$false.label" />
161+
</td>
162+
<td></td>
163+
</tr>
164+
<tr>
165+
<th>Serializable validation</th>
166+
<td>
167+
<input type="radio" name="Serializable validation" value="true"
168+
checked="true" />
169+
<xsl:value-of select="$true.label" />
170+
<input type="radio" name="Serializable validation" value="false" />
171+
<xsl:value-of select="$false.label" />
172+
</td>
173+
<td></td>
174+
</tr>
175+
<tr>
176+
<th>Eclipse RDF4J SHACL extensions</th>
177+
<td>
178+
<input type="radio" name="Eclipse RDF4J SHACL extensions"
179+
value="true" />
180+
<xsl:value-of select="$true.label" />
181+
<input type="radio" name="Eclipse RDF4J SHACL extensions"
182+
value="false" checked="true" />
183+
<xsl:value-of select="$false.label" />
184+
</td>
185+
<td></td>
186+
</tr>
187+
<tr>
188+
<th>DASH data shapes</th>
189+
<td>
190+
<input type="radio" name="DASH data shapes" value="true" />
191+
<xsl:value-of select="$true.label" />
192+
<input type="radio" name="DASH data shapes" value="false"
193+
checked="true" />
194+
<xsl:value-of select="$false.label" />
195+
</td>
196+
<td></td>
197+
</tr>
198+
<tr>
199+
<th>Validation results limit total</th>
200+
<td>
201+
<input type="text" id="validationResultsLimitTotal"
202+
name="Validation results limit total" size="10"
203+
value="1000000" />
204+
</td>
205+
<td></td>
206+
</tr>
207+
<tr>
208+
<th>Validation results limit per constraint</th>
209+
<td>
210+
<input type="text" id="validationResultsLimitPerConstraint"
211+
name="Validation results limit per constraint" size="10"
212+
value="1000" />
213+
</td>
214+
<td></td>
215+
</tr>
216+
<tr>
217+
<th>Transactional validation limit</th>
218+
<td>
219+
<input type="text" id="transactionalValidationLimit"
220+
name="Transactional validation limit" size="10" value="500000" />
221+
</td>
222+
<td></td>
223+
</tr>
224+
<tr>
225+
<th>Shapes graphs</th>
226+
<td>
227+
<input type="text" id="shapesGraphs" name="Shapes graphs" size="64"
228+
value="&lt;http://rdf4j.org/schema/rdf4j#SHACLShapeGraph&gt;" />
229+
</td>
230+
<td></td>
231+
</tr>
75232
<tr>
76233
<td></td>
77234
<td>

0 commit comments

Comments
 (0)