Skip to content

Commit 3169b92

Browse files
committed
Building blocks postprocessing
1 parent ffde692 commit 3169b92

File tree

41 files changed

+653
-271
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+653
-271
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
path
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
path @id
2+
/one http://example.com/hasOne
3+
/two http://example.com/hasTwo
4+
/string http://example.com/hasString
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"@context": {
3+
"one": "ex:hasOne",
4+
"two": "ex:hasTwo",
5+
"string": "ex:hasString",
6+
"ex": "http://example.com/",
7+
"@version": 1.1
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"type": "object",
3+
"properties": {
4+
"one": {
5+
"type": "number",
6+
"x-jsonld-id": "http://example.com/hasOne"
7+
},
8+
"two": {
9+
"type": "number",
10+
"x-jsonld-id": "http://example.com/hasTwo"
11+
},
12+
"string": {
13+
"type": "string",
14+
"x-jsonld-id": "http://example.com/hasString"
15+
}
16+
},
17+
"x-jsonld-prefixes": {
18+
"ex": "http://example.com/"
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
type: object
2+
properties:
3+
one:
4+
type: number
5+
x-jsonld-id: http://example.com/hasOne
6+
two:
7+
type: number
8+
x-jsonld-id: http://example.com/hasTwo
9+
string:
10+
type: string
11+
x-jsonld-id: http://example.com/hasString
12+
x-jsonld-prefixes:
13+
ex: http://example.com/

build/bblocks.jsonld

+44-5
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"name": "Building Blocks - Building Blocks Examples",
107107
"abstract": "This register provides a collection of **examples** designed to illustrate capabilities and implementation patterns for [Building Blocks (see more)](https://ogcincubator.github.io/bblocks-docs). \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",
108108
"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.\n",
109-
"modified": "2024-10-03T09:54:26.436589",
109+
"modified": "2024-10-03T10:26:36.220026",
110110
"tooling": {
111111
"bblocks-postprocess": {
112112
"commitId": "\"378933f155dfc4ed2cda77d7bb9d0f5c6082b10f",
@@ -168,6 +168,45 @@
168168
"dcat:Dataset"
169169
]
170170
},
171+
{
172+
"itemIdentifier": "ogc.bbr.examples.transforms.transforms-example",
173+
"name": "Transforms example",
174+
"status": "under-development",
175+
"dateTimeAddition": "2024-10-03T11:31:00+02:00",
176+
"itemClass": "schema",
177+
"version": "0.1",
178+
"dateOfLastChange": "2024-10-03",
179+
"shaclRules": {},
180+
"ldContext": "https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/transforms/transforms-example/context.jsonld",
181+
"schema": {
182+
"application/yaml": "https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/transforms/transforms-example/schema.yaml",
183+
"application/json": "https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/transforms/transforms-example/schema.json"
184+
},
185+
"sourceSchema": "https://ogcincubator.github.io/bblocks-examples/_sources/transforms/transforms-example/schema.yaml",
186+
"sourceLdContext": "https://ogcincubator.github.io/bblocks-examples/_sources/transforms/transforms-example/context.jsonld",
187+
"sourceFiles": "https://ogcincubator.github.io/bblocks-examples/_sources/transforms/transforms-example/",
188+
"validationPassed": true,
189+
"testOutputs": "https://github.com/ogcincubator/bblocks-examples/blob/master/build/tests/bbr/examples/transforms/transforms-example/",
190+
"documentation": {
191+
"markdown": {
192+
"mediatype": "text/markdown",
193+
"url": "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/transforms/transforms-example/index.md"
194+
},
195+
"json-full": {
196+
"mediatype": "application/json",
197+
"url": "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/transforms/transforms-example/index.json"
198+
},
199+
"bblocks-viewer": {
200+
"mediatype": "text/html",
201+
"url": "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.transforms.transforms-example"
202+
}
203+
},
204+
"@type": [
205+
"bblocks:Schema",
206+
"skos:Concept",
207+
"dcat:Dataset"
208+
]
209+
},
171210
{
172211
"itemIdentifier": "ogc.bbr.examples.feature.externalSchema",
173212
"name": "External Schema (Smart Data Models)",
@@ -441,8 +480,8 @@
441480
]
442481
},
443482
"dependsOn": [
444-
"ogc.bbr.examples.feature.propertySet",
445-
"ogc.geo.json-fg.feature-lenient"
483+
"ogc.geo.json-fg.feature-lenient",
484+
"ogc.bbr.examples.feature.propertySet"
446485
],
447486
"schema": {
448487
"application/yaml": "https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/feature/geojsonFeatureFGLenient/schema.yaml",
@@ -549,9 +588,9 @@
549588
"maturity": "development",
550589
"scope": "unstable",
551590
"dependsOn": [
552-
"ogc.sosa.properties.observation",
553-
"ogc.sosa.features.observationCollection",
554591
"ogc.bbr.examples.observation.vectorObservation",
592+
"ogc.sosa.features.observationCollection",
593+
"ogc.sosa.properties.observation",
555594
"ogc.sosa.features.observation"
556595
],
557596
"tags": [

build/bblocks.ttl

+54-34
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
rdfs:label "External Schema (Smart Data Models)" ;
1414
dct:abstract "This example shows a simple customisation for OGC API Feature using an externally defined domain schema." ;
1515
dct:created "2023-05-19T00:00:00+00:00"^^xsd:dateTime ;
16-
dct:description [ dct:format "text/markdown" ;
17-
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/feature/externalSchema/index.md" ],
16+
dct:description [ dct:format "application/json" ;
17+
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/feature/externalSchema/index.json" ],
1818
[ dct:format "text/html" ;
1919
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.feature.externalSchema" ],
20-
[ dct:format "application/json" ;
21-
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/feature/externalSchema/index.json" ] ;
20+
[ dct:format "text/markdown" ;
21+
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/feature/externalSchema/index.md" ] ;
2222
dct:hasVersion "1.0" ;
2323
dct:modified "2024-10-03"^^xsd:date ;
2424
dct:source <https://docs.ogc.org/is/17-069r3/17-069r3.html#_response_7>,
@@ -41,12 +41,12 @@
4141
rdfs:label "Custom Feature" ;
4242
dct:abstract "This example shows a simple customisation method for OGC API Feature schemas" ;
4343
dct:created "2023-05-19T00:00:00+00:00"^^xsd:dateTime ;
44-
dct:description [ dct:format "text/html" ;
44+
dct:description [ dct:format "text/markdown" ;
45+
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/feature/geojsonFeature/index.md" ],
46+
[ dct:format "text/html" ;
4547
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.feature.geojsonFeature" ],
4648
[ dct:format "application/json" ;
47-
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/feature/geojsonFeature/index.json" ],
48-
[ dct:format "text/markdown" ;
49-
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/feature/geojsonFeature/index.md" ] ;
49+
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/feature/geojsonFeature/index.json" ] ;
5050
dct:hasVersion "1.0" ;
5151
dct:modified "2024-10-03"^^xsd:date ;
5252
dct:source <https://docs.ogc.org/is/17-069r3/17-069r3.html#_response_7> ;
@@ -69,12 +69,12 @@
6969
rdfs:label "Custom JSON-FG (lenient) Feature" ;
7070
dct:abstract "This example shows a simple customisation method for a JSON-FG (lenient) feature" ;
7171
dct:created "2024-07-25T00:00:00+00:00"^^xsd:dateTime ;
72-
dct:description [ dct:format "text/html" ;
73-
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.feature.geojsonFeatureFGLenient" ],
74-
[ dct:format "text/markdown" ;
72+
dct:description [ dct:format "text/markdown" ;
7573
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/feature/geojsonFeatureFGLenient/index.md" ],
7674
[ dct:format "application/json" ;
77-
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/feature/geojsonFeatureFGLenient/index.json" ] ;
75+
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/feature/geojsonFeatureFGLenient/index.json" ],
76+
[ dct:format "text/html" ;
77+
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.feature.geojsonFeatureFGLenient" ] ;
7878
dct:hasVersion "1.0" ;
7979
dct:modified "2024-10-03"^^xsd:date ;
8080
skos:inScheme <https://ogcincubator.github.io/bblocks-examples/> ;
@@ -95,12 +95,12 @@
9595
rdfs:label "GeoJSON transformed to GeoSPARQL geometry" ;
9696
dct:abstract "This example includes an uplift step to use a GeoSPARQL geometry in a GeoJSON object" ;
9797
dct:created "2024-07-30T00:00:00+00:00"^^xsd:dateTime ;
98-
dct:description [ dct:format "application/json" ;
99-
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/feature/geosparqlFeature/index.json" ],
100-
[ dct:format "text/markdown" ;
98+
dct:description [ dct:format "text/markdown" ;
10199
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/feature/geosparqlFeature/index.md" ],
102100
[ dct:format "text/html" ;
103-
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.feature.geosparqlFeature" ] ;
101+
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.feature.geosparqlFeature" ],
102+
[ dct:format "application/json" ;
103+
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/feature/geosparqlFeature/index.json" ] ;
104104
dct:hasVersion "1.0" ;
105105
dct:modified "2024-10-03"^^xsd:date ;
106106
skos:inScheme <https://ogcincubator.github.io/bblocks-examples/> ;
@@ -122,10 +122,10 @@
122122
rdfs:label "Custom Result for Observation Feature" ;
123123
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" ;
124124
dct:created "2023-05-19T00:00:00+00:00"^^xsd:dateTime ;
125-
dct:description [ dct:format "text/html" ;
126-
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.observation.vectorObservationFeature" ],
127-
[ dct:format "application/json" ;
125+
dct:description [ dct:format "application/json" ;
128126
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/observation/vectorObservationFeature/index.json" ],
127+
[ dct:format "text/html" ;
128+
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.observation.vectorObservationFeature" ],
129129
[ dct:format "text/markdown" ;
130130
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/observation/vectorObservationFeature/index.md" ] ;
131131
dct:hasVersion "1.0" ;
@@ -169,6 +169,26 @@
169169
bblocks:hasSourceJsonLdContext <https://ogcincubator.github.io/bblocks-examples/_sources/semantic-uplift/pre-and-post-uplift/context.jsonld> ;
170170
bblocks:status <http://www.opengis.net/def/status/under-development> .
171171

172+
<https://ogcincubator.github.io/ogc.bbr.examples.transforms.transforms-example> a skos:Concept,
173+
dcat:Dataset,
174+
bblocks:Schema ;
175+
rdfs:label "Transforms example" ;
176+
dct:created "2024-10-03T11:31:00+02:00"^^xsd:dateTime ;
177+
dct:description [ dct:format "text/html" ;
178+
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.transforms.transforms-example" ],
179+
[ dct:format "application/json" ;
180+
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/transforms/transforms-example/index.json" ],
181+
[ dct:format "text/markdown" ;
182+
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/transforms/transforms-example/index.md" ] ;
183+
dct:hasVersion "0.1" ;
184+
dct:modified "2024-10-03"^^xsd:date ;
185+
skos:inScheme <https://ogcincubator.github.io/bblocks-examples/> ;
186+
bblocks:hasJsonLdContext <https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/transforms/transforms-example/context.jsonld> ;
187+
bblocks:hasSchema <https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/transforms/transforms-example/schema.json>,
188+
<https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/transforms/transforms-example/schema.yaml> ;
189+
bblocks:hasSourceJsonLdContext <https://ogcincubator.github.io/bblocks-examples/_sources/transforms/transforms-example/context.jsonld> ;
190+
bblocks:status <http://www.opengis.net/def/status/under-development> .
191+
172192
<https://github.com/smart-data-models/dataModel.ACRIS/tree/master/AirportFacility> rdfs:label "Smart Data Model: Airport Facility" .
173193

174194
<https://ogcincubator.github.io/ogc.bbr.examples.observation.vectorObservation> a skos:Concept,
@@ -177,12 +197,12 @@
177197
rdfs:label "Observation Result (Vector based on GeoPose)" ;
178198
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." ;
179199
dct:created "2023-05-19T00:00:00+00:00"^^xsd:dateTime ;
180-
dct:description [ dct:format "text/markdown" ;
181-
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/observation/vectorObservation/index.md" ],
200+
dct:description [ dct:format "application/json" ;
201+
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/observation/vectorObservation/index.json" ],
182202
[ dct:format "text/html" ;
183203
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.observation.vectorObservation" ],
184-
[ dct:format "application/json" ;
185-
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/observation/vectorObservation/index.json" ] ;
204+
[ dct:format "text/markdown" ;
205+
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/observation/vectorObservation/index.md" ] ;
186206
dct:hasVersion "1.0" ;
187207
dct:modified "2024-10-03"^^xsd:date ;
188208
skos:inScheme <https://ogcincubator.github.io/bblocks-examples/> ;
@@ -213,12 +233,12 @@
213233
rdfs:label "Example property set for Features" ;
214234
dct:abstract "This shows how to define a propertyset for a feature - which can be re-used in different containers - such as a GeoJSON Feature schema" ;
215235
dct:created "2023-05-19T00:00:00+00:00"^^xsd:dateTime ;
216-
dct:description [ dct:format "text/html" ;
217-
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.feature.propertySet" ],
236+
dct:description [ dct:format "text/markdown" ;
237+
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/feature/propertySet/index.md" ],
218238
[ dct:format "application/json" ;
219239
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/json-full/bbr/examples/feature/propertySet/index.json" ],
220-
[ dct:format "text/markdown" ;
221-
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/build/generateddocs/markdown/bbr/examples/feature/propertySet/index.md" ] ;
240+
[ dct:format "text/html" ;
241+
rdfs:isDefinedBy "https://ogcincubator.github.io/bblocks-examples/bblock/ogc.bbr.examples.feature.propertySet" ] ;
222242
dct:hasVersion "1.0" ;
223243
dct:modified "2024-10-03"^^xsd:date ;
224244
dct:source <https://www.w3.org/TR/vocab-ssn/> ;
@@ -254,15 +274,15 @@ More complex examples will include transformation testing - testing a format can
254274
<https://opengeospatial.github.io/ogcapi-sosa/build/register.json> .
255275

256276
[] a prov:Activity ;
257-
prov:endedAtTime "2024-10-03T09:54:34.170484"^^xsd:dateTime ;
258-
prov:startedAtTime "2024-10-03T09:54:34.103553"^^xsd:dateTime ;
277+
prov:endedAtTime "2024-10-03T10:26:43.618752"^^xsd:dateTime ;
278+
prov:startedAtTime "2024-10-03T10:26:43.549301"^^xsd:dateTime ;
259279
prov:used [ a prov:Entity ;
260-
dct:format "application/json" ;
261-
dct:hasVersion "git:5da516fca4b7379c29962bf1a5ac4e7378bf47be" ;
262-
rdfs:seeAlso <https://ogcincubator.github.io/bblocks-examples/build/register.json> ],
263-
[ a prov:Entity ;
264280
dct:format "application/yaml" ;
265-
rdfs:seeAlso <file:///src/ogc/bblocks/register-context.yaml> ] ;
281+
rdfs:seeAlso <file:///src/ogc/bblocks/register-context.yaml> ],
282+
[ a prov:Entity ;
283+
dct:format "application/json" ;
284+
dct:hasVersion "git:ffde692ee522be0acfab801587617d71573c18c2" ;
285+
rdfs:seeAlso <https://ogcincubator.github.io/bblocks-examples/build/register.json> ] ;
266286
prov:wasAssociatedWith [ a prov:Agent,
267287
schema:SoftwareApplication ;
268288
rdfs:label "OGC-NA tools" ;

0 commit comments

Comments
 (0)