diff --git a/pygeoapi-config.yml b/pygeoapi-config.yml index 3a1a42dc3..b8dc96e01 100644 --- a/pygeoapi-config.yml +++ b/pygeoapi-config.yml @@ -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: @@ -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 @@ -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: @@ -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 diff --git a/pygeoapi/provider/csw_facade_dcat.py b/pygeoapi/provider/csw_facade_dcat.py index b5950c5eb..446ed9c42 100644 --- a/pygeoapi/provider/csw_facade_dcat.py +++ b/pygeoapi/provider/csw_facade_dcat.py @@ -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: @@ -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', + } ] }