Re: [dxwg] Is one of dcat:accessURL, dcat:accessService and dcat:downloadURL required in a dcat:Distribution? (#1197)

 @andrea-perego  said:
>An alternative option would of course be to instantiate the SPARQL endpoint URL with the query itself, and use it as the dcat:downloadURL of the distribution.

For the record,  I expand and make a little more explicit what was already said by @andrea-perego as a possible alternative.  I think this can be useful to others for future reference.
  
You (@nfreire) can indicate the URL for the  SPARQL query in a dcat:Distribution. Something like
  dcat:accessURL <http://data.nationallibrary.fi/bib/sparql?query=PREFIX+schema%3A+%3Chttp%3A%2F%2Fschema.org%2F%3E+++Select+%3Furi+where+%7B%3Furi+a+schema%3ACreativeWork+.+%3Furi+schema%3Aurl+%3Furl%7D+%0D%0ALIMIT+10%0D%0A&format=application%2Fsparql-results%2Bjson>

In this way, you do not need to specify a dcat:dataService as you are neglecting the fact that there is an endpoint.    You might need to specify the proper media type (application/sparql-results+json,  I guess).

This alternative is compatible with DCAT 2 and DCAT 2014. 



-- 
GitHub Notification of comment by riccardoAlbertoni
Please view or discuss this issue at https://github.com/w3c/dxwg/issues/1197#issuecomment-609871568 using your GitHub account

Received on Monday, 6 April 2020 15:40:31 UTC