Re: [dxwg] Add property to link from Distribution -> Dataset (inverse of dcat:distribution)

@dr-shorthair said:

> Thanks @andrea-perego . Can you confirm if WMS and WFS end-points were also described? Which DCAT class was used?

The short answer is yes, and the class is `dctype:Service`, plus a couple of properties to specify the service type (`dct:type`) and protocol (`dct:conformsTo`). 

The long answer:

GeoDCAT-AP basically follows the ISO 19115/19119 approach, i.e., a service is a first-class resource documented by a metadata record registered in a catalogue. As such it stands at the same level of `dcat:Dataset` in DCAT, as I explained in https://github.com/w3c/dxwg/issues/64#issuecomment-361561597 . Hence, my proposal in #116 to have a more general property than `dcat:dataset` to link a `dcat:Catalog` to the described resources (in this case, a service).

As such, a service is not described as a `dcat:Distribution`: rather, the `dcat:Distribution` links to the service via `dcat:accessURL`. The reason is the one I explained earlier: the distribution is about the data that can be accessed via the service, not the service itself.

About the details on how a service and the distribution pointing to it is described in GeoDCAT-AP, I think we can refer to what said in [UC20](https://www.w3.org/TR/dcat-ucr/#ID20) and [UC18](https://www.w3.org/TR/dcat-ucr/#ID18), respectively. However, I include below a revised and extended version of the example in [UC18](https://www.w3.org/TR/dcat-ucr/#ID18), to better illustrate the catalogue-service-distribution relationship:

````turtle
a:Catalog a dcat:Catalog ;
  dcat:dataset a:Dataset ;
# The relationship between the catalogue and the documented service 
# is specified with dct:hasPart as super-property of dcat:dataset
  dct:hasPart a:Service .

a:Dataset a dcat:Dataset; 
  dcat:distribution [ a dcat:Distribution ;
    dct:title "Data from a WMS"@en ;
    dct:description "This data is available from a Web Map Service (WMS)"@en ;
    dct:license <https://creativecommons.org/licenses/by/4.0/> ;
# The URL of the service API endpoint
    dcat:accessURL <http://some.site/service/wms> ;
# The distribution points to a service
    dct:type <http://publications.europa.eu/resource/authority/distribution-type/WEB_SERVICE> ;
# The service conforms to the WMS specification
    dct:conformsTo <http://www.opengis.net/def/serviceType/ogc/wms> ] .

a:Service a dctype:Service ;
  dct:title "WMS"@en ;
  dct:description "Web Map Service (WMS)"@en ;
  dct:license <https://creativecommons.org/publicdomain/zero/1.0/> ;
# The URL of the service API endpoint
  foaf:homepage <http://some.site/service/wms> ;
# The service is a view service
  dct:type <http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/view> ;
# The service conforms to the WMS specification
  dct:conformsTo <http://www.opengis.net/def/serviceType/ogc/wms> .
````


-- 
GitHub Notification of comment by andrea-perego
Please view or discuss this issue at https://github.com/w3c/dxwg/issues/166#issuecomment-373878749 using your GitHub account

Received on Saturday, 17 March 2018 00:27:32 UTC