Browse Source

adding the shacl reasoning option to the gradle builder.

Lucas Albertins 2 years ago
parent
commit
9a01fb05f2
1 changed files with 10 additions and 0 deletions
  1. 10 0
      examples/oml/SystemDesignOntology2Layers/build.gradle

+ 10 - 0
examples/oml/SystemDesignOntology2Layers/build.gradle

@@ -21,6 +21,7 @@ buildscript {
 	}
 	dependencies {
         classpath 'io.opencaesar.owl:owl-fuseki-gradle:+'
+        classpath 'io.opencaesar.owl:owl-shacl-fuseki-gradle:+'
         classpath 'io.opencaesar.owl:owl-query-gradle:+'
         classpath 'io.opencaesar.owl:owl-load-gradle:+'
         classpath 'io.opencaesar.owl:owl-reason-gradle:+'
@@ -146,6 +147,15 @@ task owlQuery(type:io.opencaesar.owl.query.OwlQueryTask, group:"oml", dependsOn:
     format = 'json'
 }
 
+/*
+ * A task to run a set of SHACL validation rules on a Fuseki dataset endpoint
+ */
+task owlShacl(type:io.opencaesar.owl.shacl.fuseki.OwlShaclFusekiTask, group:"oml", dependsOn: owlLoad) {
+    endpointURL = "http://localhost:3030/$dataset.name".toString()
+    queryPath = file('src/shacl')
+    resultPath = file('build/results')
+}
+
 /*
  * A task to build the project, which executes several tasks together
  */