generated from opengeospatial/bblock-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3dbed69
commit e19b460
Showing
14 changed files
with
1,427 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
call sda db create -n geotest -o spatial.enabled=true | ||
REM query.describe.strategy=bidirectional | ||
REM graphql.auto.schema | ||
REM graphql.auto.schema.source=shacl | ||
REM auto.schema.reasoning | ||
REM reasoning.sameas (ON,OFF, FULL) | ||
REM tag:stardog:api:context:schema | ||
REM reasoning.schemas prov=https://www.w3.org/ns/prov | ||
REM reasoning.schemas.graphs https://www.w3.org/ns/prov, tag:stardog:api:context:schema | ||
call sd data add -- --named-graph https://www.w3.org/ns/prov prov-o.ttl | ||
|
||
call sd reasoning schema --add prov --graphs https://www.w3.org/ns/prov | ||
|
||
call sd namespace add --prefix prov --uri "https://www.w3.org/ns/prov" | ||
REM call sd data model --named-graph https://www.w3.org/ns/prov prov-o.ttl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
REM sd data add -- build-local\tests\at\activities\aggregation\example_1_1.ttl | ||
sd data add -- _sources\activities\derivation\examples\path.ttl |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
prefix prov: <http://www.w3.org/ns/prov#> | ||
SELECT ?A ?p ?plabel ?o ?olabel | ||
SELECT DISTINCT $activity ?p ?plabel ?o ?olabel | ||
WHERE { | ||
$entity prov:wasGeneratedBy ?A . | ||
?A ?p ?o . | ||
$activity ?p ?o . | ||
OPTIONAL { ?p rdfs:label ?plabel } | ||
OPTIONAL { ?o rdfs:label ?olabel } | ||
OPTIONAL { | ||
FILTER(isBlank(?o)) | ||
?o rdfs:label ?blankNodeLabel . | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
prefix prov: <http://www.w3.org/ns/prov#> | ||
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
SELECT ?A ?p ?plabel ?o ?olabel | ||
WHERE { | ||
$entity prov:wasGeneratedBy ?A . | ||
?A ?p ?o . | ||
OPTIONAL { ?p rdfs:label ?plabel } | ||
OPTIONAL { ?o rdfs:label ?olabel } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
prefix prov: <http://www.w3.org/ns/prov#> | ||
SELECT $agent ?p ?plabel ?o ?olabel | ||
WHERE { | ||
$agent ?p ?o . | ||
OPTIONAL { ?p rdfs:label ?plabel } | ||
OPTIONAL { ?o rdfs:label ?olabel } | ||
OPTIONAL { | ||
FILTER(isBlank(?o)) | ||
?o rdfs:label ?blankNodeLabel . | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
prefix dim: <https://surroundaustralia.com/models/datadimensions/> | ||
prefix sdo: <https://schema.org/> | ||
SELECT DISTINCT ?targetRange ?name?order ?dimRange | ||
WHERE | ||
{ | ||
$object dim:value ?dv . | ||
OPTIONAL{ $object dim:targetRange ?targetRange } | ||
?dv dim:dimension ?d . | ||
?d rdfs:label ?name . | ||
|
||
OPTIONAL { ?d dim:order ?order } | ||
OPTIONAL { ?d dim:maxValue ?dimRange } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
prefix dim: <https://surroundaustralia.com/models/datadimensions/> | ||
prefix sdo: <https://schema.org/> | ||
SELECT ?d ?v | ||
WHERE | ||
{ | ||
$object dim:value ?dv . | ||
?dv sdo:value ?v . | ||
?dv dim:dimension/rdfs:label ?d . | ||
# ?d rdfs:label ?l | ||
# ?dc dim:dimension/dim:order ?order . | ||
# ?dc dim:dimension/dim:order ?order . | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
prefix prov: <http://www.w3.org/ns/prov#> | ||
SELECT $entity ?p ?plabel ?o ?olabel | ||
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
prefix geo: <http://www.opengis.net/ont/geosparql#> | ||
SELECT $entity ?p ?plabel ?o ?olabel ?blankNodeLabel | ||
WHERE { | ||
$entity ?p ?o . | ||
OPTIONAL { ?p rdfs:label ?plabel } | ||
OPTIONAL { ?o rdfs:label ?olabel } | ||
|
||
FILTER ( ?p != geo:hasGeometry ) | ||
OPTIONAL { | ||
FILTER(isBlank(?o)) | ||
?o rdfs:label ?blankNodeLabel . | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
prefix prov: <http://www.w3.org/ns/prov#> | ||
SELECT $object ?p ?plabel ?o ?olabel | ||
WHERE { | ||
$object ?p ?o . | ||
OPTIONAL { ?p rdfs:label ?plabel } | ||
OPTIONAL { ?o rdfs:label ?olabel } | ||
OPTIONAL { | ||
FILTER(isBlank(?o)) | ||
?o rdfs:label ?blankNodeLabel . | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
prefix prov: <http://www.w3.org/ns/prov#> | ||
prefix geo: <http://www.opengis.net/ont/geosparql#> | ||
SELECT $entity ?label ?geojson ?wkt | ||
WHERE { | ||
$entity geo:hasGeometry ?g . | ||
OPTIONAL { ?g geo:asGeoJSON ?geojson } | ||
OPTIONAL { ?g geo:asWKT ?wkt } | ||
OPTIONAL { $entity rdfs:label ?label } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
filename,uri,context,model | ||
../_sources/activities/derivation/examples/a-plus-b.ttl,tag:prov:a-plus-b,tag:prov-demo,tag:prov-demo-model | ||
../_sources/activities/derivation/examples/a-plus-b.ttl,tag:prov:a-plus-b,tag:prov-demo,tag:prov-demo-model | ||
../_sources/activities/derivation/examples/path.ttl,tag:prov:path,tag:prov-demo,tag:prov-demo-model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters