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
Missing Owner Org when harvesting RDF source #26
Comments
You are correct @Hoedic, the harvester does not handle owner organizations and that will fail if your CKAN instance requires datasets to have one. Can you try this branch and see if it solves the issue: It should set the harvested datasets to the same organization that the harvest source belongs to (the one you set when creating the harvest source) |
Hi, could this also be done for a "DCAT JSON Harvester" source? |
@lubertorubior I've pushed changes to support the JSON harvester as well. Can you test the branch on #27 to see if it works as expected? |
It works great, thank you @amercader ! |
Fixed in #27 |
While running an import from a DCAT RDF source, the harvester tells the owner org is missing:
2015-03-26 01:54:24,757 INFO [ckanext.harvest.queue] Received harvest object id: 68d9d538-313c-40f8-83e4-711bcc91afd7 2015-03-26 01:54:24,793 DEBUG [ckanext.dcat.harvesters.rdf] In DCATRDFHarvester import_stage 2015-03-26 01:54:24,836 DEBUG [ckanext.harvest.harvesters.base] Create validation Error: {'Owner org': 'Missing value'}
I am trying to import the RDF example : https://github.com/ckan/ckanext-dcat/blob/master/examples/catalog_datasets_list.rdf
When configuring the harvester, I used the field "organization" in the for to specify an organization in CKAN. At some point I also tried to put owner_org: my-organization in the configuration textarea.
now my configuration fields look like that (I don't know if it's of any use...):
{ "default_groups":["a-group"], "user":"admin", "read_only": false }
After looking at the code, I don't see any place where the fetch process tries to read the configuration.
The text was updated successfully, but these errors were encountered: