Open kaestli opened 5 years ago
This seems to duplicate #480 ?
As for my 2c on the matter
+1 on your 2cents. That's something we tried to initiate during the EPOS-IP project mapping OGC WMS & WFS GetCaps with Hydra reuse in EPOS_DCAT_AP. Ideally I would have prototyped an implementation of such mapping in Geoserver (which we highly use here for WMS, WFS and OGC API - Features). I have not been able to push this further (other projects runnings). I know that @rpaciello worked recently in a equivalent exercise to parse WMS GetCaps outputs to feed the corresponding part in EPOS_DCAT_AP. Now is maybe a better time fo finalize this ?
The older OGC Web Service (OWS) APIs (WMS/WFS/WCS/WPS etc) inherit from OWS Common which dictates only XML output. The XML response is schema driven (and as such fulfils the REST requirement for APIs driven by hypermedia), so if REST archictecture is the requirement... These APIs are also not bound to any protocol (another REST requirement)
Newer OGC APIs are now being developed / released using JSON. These APIs are bound to the HTTP(s) protocol, and thus fail a REST condition ~ hence they are normally marketed as Web APIs.
This proposal seems to fit well with example in DCAT3 for data services ~ https://www.w3.org/TR/vocab-dcat-3/#examples-data-service
like ...
dcat:endpointDescription <http://services.ga.gov.au/gis/services/Judicial_Courts/MapServer/WMSServer?request=GetCapabilities&service=WMS> ;
dcat:endpointURL <http://services.ga.gov.au/gis/services/Judicial_Courts/MapServer/WMSServer> ;
a dcat description of of a wms by the description of its getMap request
This is clumsy for large, and changing layer sets (imagine shakemap collections, requiring updated metadata each time a new event happens) It would be much more elegant if just the getCapabilities request is represented in dcat. Guis and services would retrieve the list of available layers, and their description in real time from the getCapabilities service