Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up files #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .fuseki.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
```
Expand Down
18 changes: 9 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

/*
Expand Down Expand Up @@ -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')
Expand All @@ -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')
Expand Down
6 changes: 3 additions & 3 deletions src/oml/opencaesar.io/template/description/bundle.oml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
@dc:creator "Example Company"
@dc:rights "Copyright 2019, by Example Company"
description bundle <http://opencaesar.io/template/description/bundle#> as description-bundle {
uses <http://purl.org/dc/elements/1.1/> as dc

uses <http://purl.org/dc/elements/1.1/> as dc

uses <http://opencaesar.io/template/vocabulary/bundle#>

includes <http://opencaesar.io/template/description/description1#>

}
6 changes: 3 additions & 3 deletions src/oml/opencaesar.io/template/description/description1.oml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
@dc:creator "Example Company"
@dc:rights "Copyright 2019, by Example Company"
description <http://opencaesar.io/template/description/description1#> as description1 {

uses <http://purl.org/dc/elements/1.1/> as dc

uses <http://opencaesar.io/template/vocabulary/vocabulary1#> 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
Expand Down
4 changes: 2 additions & 2 deletions src/oml/opencaesar.io/template/vocabulary/bundle.oml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
@dc:creator "Example Company"
@dc:rights "Copyright 2019, by Example Company"
vocabulary bundle <http://opencaesar.io/template/vocabulary/bundle#> as vocabulary-bundle {
includes <http://purl.org/dc/elements/1.1/> as dc

includes <http://purl.org/dc/elements/1.1/> as dc

includes <http://opencaesar.io/template/vocabulary/vocabulary1#>

Expand Down
4 changes: 2 additions & 2 deletions src/oml/opencaesar.io/template/vocabulary/vocabulary1.oml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
@dc:creator "Example Company"
@dc:rights "Copyright 2019, by Example Company"
vocabulary <http://opencaesar.io/template/vocabulary/vocabulary1#> as vocabulary1 {

extends <http://purl.org/dc/elements/1.1/> as dc

// Example aspect
aspect A

Expand Down