Skip to content

Commit

Permalink
add SDI.europa example datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
SpeckiJ committed Nov 18, 2024
1 parent 7d269b0 commit 773bd7e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
29 changes: 27 additions & 2 deletions pygeoapi-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ server:
# cors: true
pretty_print: true
limit: 10
# templates:
# templates:
# path: /path/to/Jinja2/templates
# static: /path/to/static/folder # css/js/img
map:
Expand Down Expand Up @@ -124,6 +124,8 @@ resources:
spatial:
bbox: [ -180,-90,180,90 ]
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
linked-data:
item_template: schemas/dcat/dcat-template.jsonld
providers:
- type: record
name: CSWFacadeDCAT
Expand All @@ -140,7 +142,7 @@ resources:
- type: text/html
rel: canonical
title: documentation
href: hhttps://gdk.gdi-de.org/geonetwork/srv/api/records/158e4f28-8b89-41bd-a326-e9fd09ab3564
href: https://gdk.gdi-de.org
hreflang: en-US
extents:
spatial:
Expand All @@ -152,3 +154,26 @@ resources:
- type: record
name: CSWFacadeDCAT
data: https://apps.geoportal.nrw.de/csw/service
SDI.europa:
type: collection
title: SDI - geospatial data catalogue
description: metadata records from https://sdi.eea.europa.eu/
keywords:
- observations
- monitoring
links:
- type: text/html
rel: canonical
title: documentation
href: https://sdi.eea.europa.eu/
hreflang: en-US
extents:
spatial:
bbox: [ -180,-90,180,90 ]
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
linked-data:
item_template: schemas/dcat/dcat-template.jsonld
providers:
- type: record
name: CSWFacadeDCAT
data: https://sdi.eea.europa.eu/catalogue/srv/eng/csw
9 changes: 7 additions & 2 deletions pygeoapi/provider/csw_facade_dcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ def _get_csw(self) -> CatalogueServiceWeb:

try:
result = CatalogueServiceWeb(self.data, skip_caps=True)
LOGGER.warning(result.url)
return result

except Exception as err:
Expand Down Expand Up @@ -270,7 +269,13 @@ def _owslibrecord2record(self, record):
'time': record.date or None,
'properties': {},
'links': [
self._gen_getrecordbyid_link(record.identifier)
self._gen_getrecordbyid_link(record.identifier),
{
'rel': 'alternate',
'type': 'application/json+ld',
'title': 'This document as JSON-LD (GeoDCAT-upliftable)',
'href': f'./{record.identifier}?f=jsonld',
}
]
}

Expand Down

0 comments on commit 773bd7e

Please sign in to comment.