Skip to content

Commit

Permalink
Building blocks postprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jul 25, 2024
1 parent ca4b4cd commit 5745752
Show file tree
Hide file tree
Showing 25 changed files with 239 additions and 183 deletions.
6 changes: 3 additions & 3 deletions build/bblocks.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"name": "Building Blocks - Building Blocks Examples",
"abstract": "This register provides a collection of **examples** designed to illustrate capabilities and implementation patterns for Building Blocks. \n\n*These buildings blocks may be copied and edited into a new repository based on the [template](https://github.com/opengeospatial/bblock-template) - but should not be referenced and extended for reuse*\n",
"description": "The aim of the highlighted examples is to illustrate implementation patterns for reusing OGC building blocks. The emphasis is on typical requirements to extend or constrain generic or abstract models such as OGC API Features, Observations etc. \n\n Other examples will illustrate different possible ways to use the Building Block machinery to semantically annotate externally defines schemas, develop and test logical constraints, or simply test examples using a published specification.\n\nMore complex examples will include transformation testing - testing a format can be transformed into a related structure and/or data model.",
"modified": "2024-07-25T08:33:01.979633",
"modified": "2024-07-25T08:36:39.941817",
"tooling": {
"bblocks-postprocess": {
"commitId": "\"68a2c711a7b9524049f33286a6021ae24ef34bbb",
Expand Down Expand Up @@ -335,9 +335,9 @@
"maturity": "development",
"scope": "unstable",
"dependsOn": [
"ogc.geo.features.feature",
"ogc.bbr.examples.feature.propertySet",
"ogc.bbr.examples.propertySet",
"ogc.geo.features.feature"
"ogc.bbr.examples.propertySet"
],
"tags": [
"feature",
Expand Down
42 changes: 21 additions & 21 deletions build/bblocks.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
dct:created "2023-05-19T00:00:00+00:00"^^xsd:dateTime ;
dct:description [ dct:format "text/markdown" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/feature/externalSchema/index.md" ],
[ dct:format "text/html" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.feature.externalSchema" ],
[ dct:format "application/json" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/feature/externalSchema/index.json" ] ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/feature/externalSchema/index.json" ],
[ dct:format "text/html" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.feature.externalSchema" ] ;
dct:hasVersion "1.0" ;
dct:modified "2024-07-25"^^xsd:date ;
dct:source <https://docs.ogc.org/is/17-069r3/17-069r3.html#_response_7>,
Expand Down Expand Up @@ -69,12 +69,12 @@
rdfs:label "Custom JSON-FG (lenient) Feature" ;
dct:abstract "This example shows a simple customisation method for a JSON-FG (lenient) feature" ;
dct:created "2024-07-25T00:00:00+00:00"^^xsd:dateTime ;
dct:description [ dct:format "text/markdown" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/feature/geojsonFeatureFGLenient/index.md" ],
dct:description [ dct:format "application/json" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/feature/geojsonFeatureFGLenient/index.json" ],
[ dct:format "text/html" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.feature.geojsonFeatureFGLenient" ],
[ dct:format "application/json" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/feature/geojsonFeatureFGLenient/index.json" ] ;
[ dct:format "text/markdown" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/feature/geojsonFeatureFGLenient/index.md" ] ;
dct:hasVersion "1.0" ;
dct:modified "2024-07-25"^^xsd:date ;
skos:inScheme <https://ogcincubator.github.io/bblocks-examples/> ;
Expand All @@ -95,12 +95,12 @@
rdfs:label "Custom Result for Observation Feature" ;
dct:abstract "This building block defines an example specialisation of an existing Feature specialisation (SOSA Observation), using another schema to define a result set - in this case the GeoPose model" ;
dct:created "2023-05-19T00:00:00+00:00"^^xsd:dateTime ;
dct:description [ dct:format "application/json" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/observation/vectorObservationFeature/index.json" ],
dct:description [ dct:format "text/html" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.observation.vectorObservationFeature" ],
[ dct:format "text/markdown" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/observation/vectorObservationFeature/index.md" ],
[ dct:format "text/html" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.observation.vectorObservationFeature" ] ;
[ dct:format "application/json" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/observation/vectorObservationFeature/index.json" ] ;
dct:hasVersion "1.0" ;
dct:modified "2024-07-25"^^xsd:date ;
dct:source <https://www.w3.org/TR/vocab-ssn/> ;
Expand Down Expand Up @@ -130,12 +130,12 @@
rdfs:label "Observation Result (Vector based on GeoPose)" ;
dct:abstract "This building block defines the *property set* for an example specialisation of a SOSA Observation using the GeoPose standard as a result. These two patterns are defined by other Building Blocks." ;
dct:created "2023-05-19T00:00:00+00:00"^^xsd:dateTime ;
dct:description [ dct:format "text/html" ;
dct:description [ dct:format "text/markdown" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/observation/vectorObservation/index.md" ],
[ dct:format "text/html" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.observation.vectorObservation" ],
[ dct:format "application/json" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/observation/vectorObservation/index.json" ],
[ dct:format "text/markdown" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/observation/vectorObservation/index.md" ] ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/observation/vectorObservation/index.json" ] ;
dct:hasVersion "1.0" ;
dct:modified "2024-07-25"^^xsd:date ;
skos:inScheme <https://ogcincubator.github.io/bblocks-examples/> ;
Expand Down Expand Up @@ -166,10 +166,10 @@
dct:created "2023-05-19T00:00:00+00:00"^^xsd:dateTime ;
dct:description [ dct:format "text/html" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.feature.propertySet" ],
[ dct:format "application/json" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/feature/propertySet/index.json" ],
[ dct:format "text/markdown" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/feature/propertySet/index.md" ] ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/feature/propertySet/index.md" ],
[ dct:format "application/json" ;
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/feature/propertySet/index.json" ] ;
dct:hasVersion "1.0" ;
dct:modified "2024-07-25"^^xsd:date ;
dct:source <https://www.w3.org/TR/vocab-ssn/> ;
Expand Down Expand Up @@ -206,14 +206,14 @@ More complex examples will include transformation testing - testing a format can
<https://opengeospatial.github.io/ogcapi-sosa/build/register.json> .

[] a prov:Activity ;
prov:endedAtTime "2024-07-25T08:33:08.938375"^^xsd:dateTime ;
prov:startedAtTime "2024-07-25T08:33:08.843585"^^xsd:dateTime ;
prov:endedAtTime "2024-07-25T08:36:46.619514"^^xsd:dateTime ;
prov:startedAtTime "2024-07-25T08:36:46.521127"^^xsd:dateTime ;
prov:used [ a prov:Entity ;
dct:format "application/yaml" ;
rdfs:seeAlso <file:///src/ogc/bblocks/register-context.yaml> ],
[ a prov:Entity ;
dct:format "application/json" ;
dct:hasVersion "git:369affbc46521ebfcc2592fbe67be66b3839a3a4" ;
dct:hasVersion "git:ca4b4cd62300939ffd50233e101739b5c5d31166" ;
rdfs:seeAlso <https://ogcincubator.github.io/bblocks-examples/build/register.json> ] ;
prov:wasAssociatedWith [ a prov:Agent,
schema:SoftwareApplication ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"maturity": "development",
"scope": "unstable",
"dependsOn": [
"ogc.geo.features.feature",
"ogc.bbr.examples.feature.propertySet",
"ogc.bbr.examples.propertySet",
"ogc.geo.features.feature"
"ogc.bbr.examples.propertySet"
],
"tags": [
"feature",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@
{
"language": "json",
"ref": "examples/feature.json",
"code": "{\n \"id\": \"f1\",\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"LineString\",\n \"coordinates\": [\n [\n -111.67183507997295,\n 40.056709946862874\n ],\n [\n -111.71,\n 40.156709946862874\n ]\n ]\n },\n \"properties\": {\n \"myProp\": \"Mandatory property example\"\n }\n}\n",
"code": "{\n \"id\": \"f1\",\n \"type\": \"Feature\",\n \"featureType\": \"app:building\",\n \"coordRefSys\": \"http://www.opengis.net/def/crs/EPSG/0/5555\",\n \"time\": { \"interval\": [\"2014-04-24T10:50:18Z\", \"..\"] },\n \"geometry\": {\n \"type\": \"LineString\",\n \"coordinates\": [\n [\n -111.67183507997295,\n 40.056709946862874\n ],\n [\n -111.71,\n 40.156709946862874\n ]\n ]\n },\n \"properties\": {\n \"myProp\": \"Mandatory property example\"\n }\n}\n",
"url": "https://ogcincubator.github.io/bblocks-examples/build/tests/bbr/examples/feature/geojsonFeatureFGLenient/example_1_1.json"
},
{
"language": "jsonld",
"code": "{\n \"id\": \"f1\",\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"LineString\",\n \"coordinates\": [\n [\n -111.67183507997295,\n 40.056709946862874\n ],\n [\n -111.71,\n 40.156709946862875\n ]\n ]\n },\n \"properties\": {\n \"myProp\": \"Mandatory property example\"\n },\n \"@context\": \"https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/feature/geojsonFeatureFGLenient/context.jsonld\"\n}",
"code": "{\n \"id\": \"f1\",\n \"type\": \"Feature\",\n \"featureType\": \"app:building\",\n \"coordRefSys\": \"http://www.opengis.net/def/crs/EPSG/0/5555\",\n \"time\": {\n \"interval\": [\n \"2014-04-24T10:50:18Z\",\n \"..\"\n ]\n },\n \"geometry\": {\n \"type\": \"LineString\",\n \"coordinates\": [\n [\n -111.67183507997295,\n 40.056709946862874\n ],\n [\n -111.71,\n 40.156709946862875\n ]\n ]\n },\n \"properties\": {\n \"myProp\": \"Mandatory property example\"\n },\n \"@context\": \"https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/feature/geojsonFeatureFGLenient/context.jsonld\"\n}",
"url": "https://ogcincubator.github.io/bblocks-examples/build/tests/bbr/examples/feature/geojsonFeatureFGLenient/example_1_1.jsonld"
},
{
"language": "ttl",
"code": "@prefix geojson: <https://purl.org/geojson/vocab#> .\n@prefix ns1: <http://example.org/myModel/> .\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n\n<http://example.com/features/f1> a geojson:Feature ;\n ns1:myProp \"Mandatory property example\" ;\n geojson:geometry [ a geojson:LineString ;\n geojson:coordinates ( ( -1.116718e+02 4.005671e+01 ) ( -1.1171e+02 4.015671e+01 ) ) ] .\n\n",
"code": "@prefix dcterms: <http://purl.org/dc/terms/> .\n@prefix geojson: <https://purl.org/geojson/vocab#> .\n@prefix ns1: <http://www.opengis.net/def/glossary/term/> .\n@prefix ns2: <http://example.org/myModel/> .\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n@prefix time: <http://www.w3.org/2006/time#> .\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n\n<http://example.com/features/f1> a <app:building>,\n geojson:Feature ;\n ns2:myProp \"Mandatory property example\" ;\n dcterms:time [ time:hasTime ( \"2014-04-24T10:50:18Z\" \"..\" ) ] ;\n ns1:CoordinateReferenceSystemCRS \"http://www.opengis.net/def/crs/EPSG/0/5555\" ;\n geojson:geometry [ a geojson:LineString ;\n geojson:coordinates ( ( -1.116718e+02 4.005671e+01 ) ( -1.1171e+02 4.015671e+01 ) ) ] .\n\n",
"url": "https://ogcincubator.github.io/bblocks-examples/build/tests/bbr/examples/feature/geojsonFeatureFGLenient/example_1_1.ttl"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ simplifying implementation.
{
"id": "f1",
"type": "Feature",
"featureType": "app:building",
"coordRefSys": "http://www.opengis.net/def/crs/EPSG/0/5555",
"time": { "interval": ["2014-04-24T10:50:18Z", ".."] },
"geometry": {
"type": "LineString",
"coordinates": [
Expand All @@ -60,6 +63,14 @@ simplifying implementation.
{
"id": "f1",
"type": "Feature",
"featureType": "app:building",
"coordRefSys": "http://www.opengis.net/def/crs/EPSG/0/5555",
"time": {
"interval": [
"2014-04-24T10:50:18Z",
".."
]
},
"geometry": {
"type": "LineString",
"coordinates": [
Expand All @@ -82,13 +93,19 @@ simplifying implementation.

#### ttl
```ttl
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix geojson: <https://purl.org/geojson/vocab#> .
@prefix ns1: <http://example.org/myModel/> .
@prefix ns1: <http://www.opengis.net/def/glossary/term/> .
@prefix ns2: <http://example.org/myModel/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix time: <http://www.w3.org/2006/time#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://example.com/features/f1> a geojson:Feature ;
ns1:myProp "Mandatory property example" ;
<http://example.com/features/f1> a <app:building>,
geojson:Feature ;
ns2:myProp "Mandatory property example" ;
dcterms:time [ time:hasTime ( "2014-04-24T10:50:18Z" ".." ) ] ;
ns1:CoordinateReferenceSystemCRS "http://www.opengis.net/def/crs/EPSG/0/5555" ;
geojson:geometry [ a geojson:LineString ;
geojson:coordinates ( ( -1.116718e+02 4.005671e+01 ) ( -1.1171e+02 4.015671e+01 ) ) ] .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ simplifying implementation.
{
"id": "f1",
"type": "Feature",
"featureType": "app:building",
"coordRefSys": "http://www.opengis.net/def/crs/EPSG/0/5555",
"time": { "interval": ["2014-04-24T10:50:18Z", ".."] },
"geometry": {
"type": "LineString",
"coordinates": [
Expand Down Expand Up @@ -96,6 +99,14 @@ simplifying implementation.
{
"id": "f1",
"type": "Feature",
"featureType": "app:building",
"coordRefSys": "http://www.opengis.net/def/crs/EPSG/0/5555",
"time": {
"interval": [
"2014-04-24T10:50:18Z",
".."
]
},
"geometry": {
"type": "LineString",
"coordinates": [
Expand Down Expand Up @@ -126,13 +137,19 @@ simplifying implementation.


```turtle
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix geojson: <https://purl.org/geojson/vocab#> .
@prefix ns1: <http://example.org/myModel/> .
@prefix ns1: <http://www.opengis.net/def/glossary/term/> .
@prefix ns2: <http://example.org/myModel/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix time: <http://www.w3.org/2006/time#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://example.com/features/f1> a geojson:Feature ;
ns1:myProp "Mandatory property example" ;
<http://example.com/features/f1> a <app:building>,
geojson:Feature ;
ns2:myProp "Mandatory property example" ;
dcterms:time [ time:hasTime ( "2014-04-24T10:50:18Z" ".." ) ] ;
ns1:CoordinateReferenceSystemCRS "http://www.opengis.net/def/crs/EPSG/0/5555" ;
geojson:geometry [ a geojson:LineString ;
geojson:coordinates ( ( -1.116718e+02 4.005671e+01 ) ( -1.1171e+02 4.015671e+01 ) ) ] .
Expand Down
6 changes: 3 additions & 3 deletions build/register.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Building Blocks Examples",
"abstract": "This register provides a collection of **examples** designed to illustrate capabilities and implementation patterns for Building Blocks. \n\n*These buildings blocks may be copied and edited into a new repository based on the [template](https://github.com/opengeospatial/bblock-template) - but should not be referenced and extended for reuse*\n",
"description": "The aim of the highlighted examples is to illustrate implementation patterns for reusing OGC building blocks. The emphasis is on typical requirements to extend or constrain generic or abstract models such as OGC API Features, Observations etc. \n\n Other examples will illustrate different possible ways to use the Building Block machinery to semantically annotate externally defines schemas, develop and test logical constraints, or simply test examples using a published specification.\n\nMore complex examples will include transformation testing - testing a format can be transformed into a related structure and/or data model.",
"modified": "2024-07-25T08:33:01.979633",
"modified": "2024-07-25T08:36:39.941817",
"tooling": {
"bblocks-postprocess": {
"commitId": "\"68a2c711a7b9524049f33286a6021ae24ef34bbb",
Expand Down Expand Up @@ -211,9 +211,9 @@
"maturity": "development",
"scope": "unstable",
"dependsOn": [
"ogc.geo.features.feature",
"ogc.bbr.examples.feature.propertySet",
"ogc.bbr.examples.propertySet",
"ogc.geo.features.feature"
"ogc.bbr.examples.propertySet"
],
"tags": [
"feature",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Validation report for ogc.bbr.examples.feature.externalSchema - External Schema (Smart Data Models)",
"bblockName": "External Schema (Smart Data Models)",
"bblockId": "ogc.bbr.examples.feature.externalSchema",
"generated": "2024-07-25T08:33:07.375225+00:00",
"generated": "2024-07-25T08:36:45.005974+00:00",
"result": true,
"items": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Validation report for ogc.bbr.examples.feature.externalSchema - External Schema (Smart Data Models)
Generated 2024-07-25T08:33:07.375157+00:00
Generated 2024-07-25T08:36:45.005904+00:00
=== Files ===
Using example_1_1.json from examples
JSON-LD context is present - uplifting
Expand Down
Loading

0 comments on commit 5745752

Please sign in to comment.