Skip to content

Commit

Permalink
Create INSPIRE extension
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Feb 23, 2024
1 parent d8844ca commit 7d6e927
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 24 deletions.
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Template Extension Specification
# INSPIRE Extension Specification

- **Title:** Template
- **Identifier:** <https://fiboa.github.io/extension-template/v0.1.0/schema.yaml>
- **Property Name Prefix:** template
- **Extension Maturity Classification:** Proposal/Candidate/Stable
- **Owner**: @your-gh-handles @person2
- **Title:** INSPIRE
- **Identifier:** <https://fiboa.github.io/inspire/v0.1.0/schema.yaml>
- **Property Name Prefix:** inspire
- **Extension Maturity Classification:** Proposal
- **Owner**: @m-mohr

This document explains the Template Extension to the
This document explains the INSPIRE Extension to the
[Field Boundaries for Agriculture (fiboa) Specification](https://github.com/fiboa/specification).

This is the place to add a short introduction.
It adds support for a property that reflects the INSPIRE ID.

- Examples:
- [GeoJSON](examples/geojson/)
Expand All @@ -24,10 +24,9 @@ The fields in the table below can be used in these parts of fiboa documents:
- [ ] Collection
- [x] Feature Properties

| Property Name | Type | Description |
| --------------- | ------ | ----------- |
| template:field1 | string | **REQUIRED**. Describe the required field... |
| template:field2 | int32 | Describe the field... |
| Property Name | Type | Description |
| ------------- | ------ | ----------- |
| inspire:id | string | **REQUIRED**. INSPIRE-compliant ID, a absolute and fully resolvable URI. Example: `https://geodaten.nrw.de/id/inspire-lc-dgl/landcoverunit/6467974` |

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion examples/geojson/collection.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"fiboa_version": "0.0.2",
"fiboa_extensions": [
"https://fiboa.github.io/extension-template/v0.1.0/schema.yaml"
"https://fiboa.github.io/inspire/v0.1.0/schema.yaml"
],
"stac_version": "1.0.0",
"type": "Collection",
Expand Down
7 changes: 2 additions & 5 deletions examples/geojson/example.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "Feature",
"id": "example",
"id": "6467974",
"bbox": [
172.91173669923782,
1.3438851951615003,
Expand Down Expand Up @@ -35,9 +35,6 @@
]
},
"properties": {
"datetime": "2020-01-01T00:00:00Z",
"expires": "2021-01-01T00:00:00Z",
"template:field1": 1,
"template:field2": "abc"
"inspire:id": "https://geodaten.nrw.de/id/inspire-lc-dgl/landcoverunit/6467974"
}
}
Binary file modified examples/geoparquet/example.parquet
Binary file not shown.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "fiboa-extension-template",
"name": "fiboa-extension-inspire",
"version": "0.1.0",
"license": "Apache-2.0",
"scripts": {
"test": "npm run check-docs && npm run check-geojson-examples && npm run check-geoparquet-examples",
"check-geojson-examples": "fiboa-geojson-validator validate examples/geojson -c examples/geojson/collection.json",
"init": "pip install fiboa-cli",
"check-geoparquet-examples": "fiboa validate examples/geoparquet/example.parquet",
"check-geoparquet-examples": "fiboa validate examples/geoparquet -e https://fiboa.github.io/inspire/v0.1.0/schema.yaml,schema/schema.yaml",
"create-geoparquet-example": "fiboa create examples/geojson -o examples/geoparquet/example.parquet -c examples/geojson/collection.json -e https://fiboa.github.io/inspire/v0.1.0/schema.yaml,schema/schema.yaml",
"check-docs": "remark . -f -r .github/.remarkrc"
},
"dependencies": {
Expand Down
7 changes: 3 additions & 4 deletions schema/schema.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
properties:
template:field1:
type: uint8
template:field2:
type: string
inspire:id:
type: string
format: uri

0 comments on commit 7d6e927

Please sign in to comment.