[ckan-dev] DCAT/RDF update

Adrià Mercader adria.mercader at okfn.org
Mon Jul 27 12:16:17 UTC 2015


Hi all,

TL;DR: new RDF based dataset representations (/dataset/{id}.rdf,
/dataset/{id}.n3, ...) available on ckanext-dcat, will replace the old ones
on CKAN core.


Those interested in the RDF and DCAT side of things should have a look at
the recent work that has been done on ckanext-dcat to provide RDF
serializations of CKAN metadata.

Historically you have been able to access an RDF representation of a CKAN
dataset metadata by navigating to /dataset/{id}.rdf or /dataset/{id}.n3.
These were rendered using templates, and were outdated, incomplete and
broken [1].

The same endpoints are now supported on ckanext-dcat, which will generate
serialization on many different formats (thanks to the underlying RDFlib
library):

https://github.com/ckan/ckanext-dcat#rdf-dcat-endpoints

Here are some live examples of the different formats supported:

http://demo.ckan.org/dataset/newcastle-city-council-payments-over-500.xml
http://demo.ckan.org/dataset/newcastle-city-council-payments-over-500.ttl
<http://demo.ckan.org/dataset/newcastle-city-council-payments-over-500.xml>
http://demo.ckan.org/dataset/newcastle-city-council-payments-over-500.n3
<http://demo.ckan.org/dataset/newcastle-city-council-payments-over-500.xml>
http://demo.ckan.org/dataset/newcastle-city-council-payments-over-500.jsonld


The serializations use the default  DCAT - CKAN mapping [2]  inspired on
the DCAT-AP [3] for data catalogs in Europe, but it should be generic
enough for most cases. Spatial fields are presented using guidance from the
currently in progress GeoDCAT-AP spec [4].

There is also a (paginated) catalog-wide endpoint.

The old RDF templates on CKAN core will be deprecated and removed [5].

Please check the recently updated ckanext-dcat README to know more about
this, and let me know if you have any feedback or doubt.

Cheers,

Adrià


[1] https://github.com/ckan/ckan/pull/348
[2] https://github.com/ckan/ckanext-dcat#rdf-dcat-to-ckan-dataset-mapping
[3]
https://joinup.ec.europa.eu/asset/dcat_application_profile/asset_release/dcat-application-profile-data-portals-europe-final#download-links
[4] https://joinup.ec.europa.eu/node/139283
[5] https://github.com/ckan/ckan/pull/2560
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150727/b0c8aca1/attachment-0002.html>


More information about the ckan-dev mailing list