[ckan-dev] ckanext-dcat doesn't create one field
Adrià Mercader
adria.mercader at okfn.org
Tue Mar 15 20:41:17 UTC 2016
Hi David,
You are correct, this is a bug or at least an oversight on
ckanext-dcat. I've created an issue to address it:
https://github.com/ckan/ckanext-dcat/issues/61
The reason is not implemented is that sadly DCAT defines licenses at
the resource (distribution) level as opposed to CKAN, and well,
everybody else, that does so at the dataset level. We didn't want to
make any assumptions when the first default parsers/serializers were
written but we probably should have a default behaviour that takes a
pragmatic approach (like set the first license found on a distribution
to the dataset).
In the meantime you can write a custom profile that sets the relevant
triples on `graph_from_dataset` from the dataset license if present:
https://github.com/ckan/ckanext-dcat#writing-custom-profiles
Thanks for flagging this,
Adrià
On 15 March 2016 at 12:20, David <davisoski at gmail.com> wrote:
> Hi.
>
> I'm using ckanext-dcat to create my .rdf file.
>
> In the example provided in:
> https://github.com/ckan/ckanext-dcat/blob/master/examples/catalog.rdf
>
> there is a tag called:
> <dct:license rdf:resource="https://data.some.org/link/to/license"/>
>
> but when I use:
> http://demo.ckan.org/dataset/newcastle-city-council-payments-over-500.rdf
>
> is not created, but it has a license type: Creative Commons Attribution
>
> am I missing somethin?. Any help?
>
> Thanks
> David.
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
More information about the ckan-dev
mailing list