ckan / ckanext-dcat

CKAN ♥ DCAT
https://docs.ckan.org/projects/ckanext-dcat
168 stars 148 forks source link

Improve serialization of statements #313

Closed amercader closed 1 month ago

amercader commented 1 month ago

Rather than just include a Literal, add it as a node (with a class if provided) with a RDFS.label property, eg:

dct:accessRights [ a dct:RightsStatement ;
rdfs:label "Statement about access rights" ] ;

An URI can also be used:

dct:accessRights <https://example.org/vocab/access-right/TODO/PUBLIC> ;

[...]

<https://example.org/vocab/access-right/TODO/PUBLIC> a dct:RightsStatement .

This is in line with the recommendation in the DCAT 3 spec:

https://www.w3.org/TR/vocab-dcat-3/#ex-license-and-access-rights