Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map Distribution formats to something that CKAN understands #18

Closed
amercader opened this issue Jun 27, 2014 · 1 comment
Closed

Map Distribution formats to something that CKAN understands #18

amercader opened this issue Jun 27, 2014 · 1 comment

Comments

@amercader
Copy link
Member

Harvested DCAT metadata will have defined as media types (eg application/xml). In order for previews to work in CKAN, resource formats need to be defined as xml.

Eventually CKAN core should support media types (see ckan/ckan#1350 and ckan/ckan#1336), but in the meantime the extension could do the mapping automatically, perhaps using this:

https://github.com/ckan/ckan/blob/master/ckan/config/resource_formats.json

@amercader
Copy link
Member Author

The RDF harvester handles this, setting up resource['format'] and resource['mimetype'] accordingly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant