diff --git a/README.md b/README.md index 5b3fb10..50eb3d7 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@ -# Template Extension Specification +# INSPIRE Extension Specification -- **Title:** Template -- **Identifier:** -- **Property Name Prefix:** template -- **Extension Maturity Classification:** Proposal/Candidate/Stable -- **Owner**: @your-gh-handles @person2 +- **Title:** INSPIRE +- **Identifier:** +- **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/) @@ -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 diff --git a/examples/geojson/collection.json b/examples/geojson/collection.json index a81187e..2bfdff2 100644 --- a/examples/geojson/collection.json +++ b/examples/geojson/collection.json @@ -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", diff --git a/examples/geojson/example.json b/examples/geojson/example.json index 46119f2..5c2682a 100644 --- a/examples/geojson/example.json +++ b/examples/geojson/example.json @@ -1,6 +1,6 @@ { "type": "Feature", - "id": "example", + "id": "6467974", "bbox": [ 172.91173669923782, 1.3438851951615003, @@ -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" } } diff --git a/examples/geoparquet/example.parquet b/examples/geoparquet/example.parquet index a448c84..71783c0 100644 Binary files a/examples/geoparquet/example.parquet and b/examples/geoparquet/example.parquet differ diff --git a/package.json b/package.json index 7f7b2b7..2665a97 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/schema/schema.yaml b/schema/schema.yaml index cbf3bbe..60c1bde 100644 --- a/schema/schema.yaml +++ b/schema/schema.yaml @@ -1,5 +1,4 @@ properties: - template:field1: - type: uint8 - template:field2: - type: string \ No newline at end of file + inspire:id: + type: string + format: uri \ No newline at end of file