diff --git a/.fuseki.ttl b/.fuseki.ttl index c6c9ba1..f394140 100644 --- a/.fuseki.ttl +++ b/.fuseki.ttl @@ -8,17 +8,17 @@ [] rdf:type fuseki:Server . <#service> rdf:type fuseki:Service ; - rdfs:label "Oml Template" ; # Human readable label for dataset - fuseki:name "oml-template" ; # Name of the dataset in the endpoint url - fuseki:serviceReadWriteGraphStore "data" ; # SPARQL Graph store protocol (read and write) - fuseki:endpoint [ fuseki:operation fuseki:query ; fuseki:name "sparql" ] ; # SPARQL query service - fuseki:endpoint [ fuseki:operation fuseki:shacl ; fuseki:name "shacl" ] ; # SHACL query service + rdfs:label "Oml Template" ; # Human readable label for dataset + fuseki:name "oml-template" ; # Name of the dataset in the endpoint url + fuseki:serviceReadWriteGraphStore "data" ; # SPARQL Graph store protocol (read and write) + fuseki:endpoint [ fuseki:operation fuseki:query ; fuseki:name "sparql" ] ; # SPARQL query service + fuseki:endpoint [ fuseki:operation fuseki:shacl ; fuseki:name "shacl" ] ; # SHACL query service fuseki:dataset <#dataset> . # In memory TDB with union graph. -<#dataset> rdf:type tdb:DatasetTDB ; - tdb:location "--mem--" ; - # Query timeout on this dataset (1s, 1000 milliseconds) - ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue "1000" ] ; - # Make the default graph be the union of all named graphs. - tdb:unionDefaultGraph true . +<#dataset> rdf:type tdb:DatasetTDB ; + tdb:location "--mem--" ; + # Query timeout on this dataset (1s, 1000 milliseconds) + ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue "1000" ] ; + # Make the default graph be the union of all named graphs. + tdb:unionDefaultGraph true . diff --git a/README.md b/README.md index 610d292..0ff9244 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@ This repository has a template [OML](https://github.com/opencaesar/oml) project. ## Clone ``` - git clone https://github.com/opencaesar/oml-template.git - cd oml-template +git clone https://github.com/opencaesar/oml-template.git +cd oml-template ``` ## Build @@ -45,19 +45,19 @@ Note: if bikeshed is not in the PATH, you can add -pBIKESHED=path/to/bikeshed ar ``` ./gradlew owlLoad ``` -Pre-req: A Fuseki server with a firesat dataset must be running at http://localhost:3030/firesat (see below) +Pre-req: A Fuseki server with the oml-template dataset must be running at http://localhost:3030/oml-template (see below) ## Run SPARQL Queries ``` ./gradlew owlQuery ``` -Pre-req: A Fuseki server with a firesat dataset must be running at http://localhost:3030/firesat (see below) +Pre-req: A Fuseki server with the oml-template dataset must be running at http://localhost:3030/oml-template (see below) ## Run SHACL Rules ``` ./gradlew owlShacl ``` -Pre-req: A Fuseki server with a firesat dataset must be running at http://localhost:3030/firesat (see below) +Pre-req: A Fuseki server with the oml-template dataset must be running at http://localhost:3030/oml-template (see below) ## Publish to Maven Local ``` diff --git a/build.gradle b/build.gradle index 767c402..e1cc385 100644 --- a/build.gradle +++ b/build.gradle @@ -99,13 +99,13 @@ task omlToBikeshed(type: io.opencaesar.oml.bikeshed.Oml2BikeshedTask, group:"oml * A task to generate the model documentation in HTML */ task generateDocs(type: Exec, dependsOn: omlToBikeshed) { - inputs.files(fileTree("$bikeshed").include('**/*.bs')) - outputs.files(fileTree("$bikeshed").include('**/*.html')) - if (org.gradle.internal.os.OperatingSystem.current().isWindows()) { - commandLine "$bikeshed/publish.bat" - } else { - commandLine "$bikeshed/publish.sh" - } + inputs.files(fileTree("$bikeshed").include('**/*.bs')) + outputs.files(fileTree("$bikeshed").include('**/*.html')) + if (org.gradle.internal.os.OperatingSystem.current().isWindows()) { + commandLine "$bikeshed/publish.bat" + } else { + commandLine "$bikeshed/publish.sh" + } } /* @@ -169,7 +169,7 @@ task owlLoad(type:io.opencaesar.owl.load.OwlLoadTask, group:"oml", dependsOn: ow * A task to run a set of SPARQL queries on a Fuseki dataset endpoint */ task owlQuery(type:io.opencaesar.owl.query.OwlQueryTask, group:"oml", dependsOn: owlLoad) { - inputs.files(owlLoad.inputs.files) // rerun when the dataset changes + inputs.files(owlLoad.inputs.files) // rerun when the dataset changes endpointURL = "http://localhost:3030/$dataset".toString() queryPath = file('src/sparql') resultPath = file('build/frames') @@ -179,7 +179,7 @@ task owlQuery(type:io.opencaesar.owl.query.OwlQueryTask, group:"oml", dependsOn: * 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) { - inputs.files(owlLoad.inputs.files) // rerun when the dataset changes + inputs.files(owlLoad.inputs.files) // rerun when the dataset changes endpointURL = "http://localhost:3030/$dataset".toString() queryPath = file('src/shacl') resultPath = file('build/reports') diff --git a/src/oml/opencaesar.io/template/description/bundle.oml b/src/oml/opencaesar.io/template/description/bundle.oml index f29c6af..d928e52 100644 --- a/src/oml/opencaesar.io/template/description/bundle.oml +++ b/src/oml/opencaesar.io/template/description/bundle.oml @@ -2,11 +2,11 @@ @dc:creator "Example Company" @dc:rights "Copyright 2019, by Example Company" description bundle as description-bundle { - - uses as dc + + uses as dc uses - + includes } diff --git a/src/oml/opencaesar.io/template/description/description1.oml b/src/oml/opencaesar.io/template/description/description1.oml index 4b1c757..e360b5f 100644 --- a/src/oml/opencaesar.io/template/description/description1.oml +++ b/src/oml/opencaesar.io/template/description/description1.oml @@ -2,17 +2,17 @@ @dc:creator "Example Company" @dc:rights "Copyright 2019, by Example Company" description as description1 { - + uses as dc uses as vocabulary1 // Example concept instance ci c1 : vocabulary1:C - + // Example concept instance ci c2 : vocabulary1:C - + // Example relation instance ri r1 : vocabulary1:R [ from c1 diff --git a/src/oml/opencaesar.io/template/vocabulary/bundle.oml b/src/oml/opencaesar.io/template/vocabulary/bundle.oml index ed6017a..87e7ce3 100644 --- a/src/oml/opencaesar.io/template/vocabulary/bundle.oml +++ b/src/oml/opencaesar.io/template/vocabulary/bundle.oml @@ -2,8 +2,8 @@ @dc:creator "Example Company" @dc:rights "Copyright 2019, by Example Company" vocabulary bundle as vocabulary-bundle { - - includes as dc + + includes as dc includes diff --git a/src/oml/opencaesar.io/template/vocabulary/vocabulary1.oml b/src/oml/opencaesar.io/template/vocabulary/vocabulary1.oml index 102eeb5..0d70263 100644 --- a/src/oml/opencaesar.io/template/vocabulary/vocabulary1.oml +++ b/src/oml/opencaesar.io/template/vocabulary/vocabulary1.oml @@ -2,9 +2,9 @@ @dc:creator "Example Company" @dc:rights "Copyright 2019, by Example Company" vocabulary as vocabulary1 { - + extends as dc - + // Example aspect aspect A