Skip to content

Commit

Permalink
Examples for *Feature* bblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-metalinkage committed Oct 13, 2023
1 parent 4f436a8 commit 83d4ed7
Show file tree
Hide file tree
Showing 11 changed files with 122 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ assets/img/.DS_Store
__pycache__

build-local/
.idea/
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ All the output files will be generated under `build-local`.
docker run --pull=always --rm --workdir /workspace -v $(pwd):/workspace --user $UID \
ghcr.io/opengeospatial/bblocks-postprocess --clean true \
--items-dir registereditems/ \
--generated-docs-path build-local/generateddocs \
--annotated-path build-local/annotated-schemas \
--register-file build-local/register.json \
--test-outputs build-local/tests \
--base-url https://opengeospatial.github.io/bblocks/
# Build Slate docs
docker run --pull=always --rm --user $UID \
Expand Down
14 changes: 14 additions & 0 deletions registereditems/geo/features/feature/example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"id": "f1",
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
174.7501603083,
-36.9307359096
]
},
"properties": {
"comment": "An attribute value"
}
}
10 changes: 10 additions & 0 deletions registereditems/geo/features/feature/examples.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- title: Example
content: |-
Minimal example of this schema.
NB. uses a local @context in the data example where application specialisations would apply such mappings.
snippets:
- language: json
ref: example.json
base-uri: http://www.example.com/features/
1 change: 1 addition & 0 deletions registereditems/geo/features/featureCollection/bblock.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"link": "https://docs.ogc.org/is/17-069r3/17-069r3.html#_response_5"
}
],
"ldContext": "../feature/context.jsonld",
"maturity": "mature",
"scope": "geo",
"group": "Common"
Expand Down
26 changes: 26 additions & 0 deletions registereditems/geo/features/featureCollection/example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"@context": {
"my": "http://my.org/featureTypes/",
"skos": "http://www.w3.org/2004/02/skos/core#",
"name": "skos:prefLabel"
},
"id": "MyFeatureCollection",
"name": "MyFeatureCollection",
"type": "FeatureCollection",
"features": [
{
"id": "f1",
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
174.7501603083,
-36.9307359096
]
},
"properties": {
"comment": "An attribute value"
}
}
]
}
10 changes: 10 additions & 0 deletions registereditems/geo/features/featureCollection/examples.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- title: Example
content: |-
Minimal example of this schema.
NB. uses a local @context in the data example where application specialisations would apply such mappings.
snippets:
- language: json
ref: example.json
base-uri: http://www.example.com/features/
30 changes: 30 additions & 0 deletions registereditems/geo/json-fg/featureCollection/example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"@context": {
"my": "http://my.org/featureTypes/",
"skos": "http://www.w3.org/2004/02/skos/core#",
"name": "skos:prefLabel"
},
"id": "MyFeatureCollection",
"name": "MyFeatureCollection",
"type": "FeatureCollection",
"features": [
{
"id": "f1",
"type": "Feature",
"featureType": "my:FeatureType",
"geometry": null,
"time": null,
"coordRefSys": "EPSG",
"place": {
"type": "Point",
"coordinates": [
174.7501603083,
-36.9307359096
]
},
"properties": {
"comment": "An attribute value"
}
}
]
}
10 changes: 10 additions & 0 deletions registereditems/geo/json-fg/featureCollection/examples.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- title: Example
content: |-
Minimal example of this schema.
NB. uses a local @context in the data example where application specialisations would apply such mappings.
snippets:
- language: json
ref: example.json
base-uri: http://www.example.com/features/
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "MyFeatureCollection",
"type": "FeatureCollection",
"features": [
{
"id": "f1",
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
174.7501603083,
-36.9307359096
]
},
"properties": {
"comment": "An attribute value"
}
}
]
}

0 comments on commit 83d4ed7

Please sign in to comment.