{"action":"created","issue":{"url":"https://api.github.com/repos/ckan/ckanext-dcat/issues/26","labels_url":"https://api.github.com/repos/ckan/ckanext-dcat/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/ckan/ckanext-dcat/issues/26/comments","events_url":"https://api.github.com/repos/ckan/ckanext-dcat/issues/26/events","html_url":"https://github.com/ckan/ckanext-dcat/issues/26","id":64587811,"number":26,"title":"Missing Owner Org when harvesting RDF source","user":{"login":"Hoedic","id":510886,"avatar_url":"https://avatars.githubusercontent.com/u/510886?v=3","gravatar_id":"","url":"https://api.github.com/users/Hoedic","html_url":"https://github.com/Hoedic","followers_url":"https://api.github.com/users/Hoedic/followers","following_url":"https://api.github.com/users/Hoedic/following{/other_user}","gists_url":"https://api.github.com/users/Hoedic/gists{/gist_id}","starred_url":"https://api.github.com/users/Hoedic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hoedic/subscriptions","organizations_url":"https://api.github.com/users/Hoedic/orgs","repos_url":"https://api.github.com/users/Hoedic/repos","events_url":"https://api.github.com/users/Hoedic/events{/privacy}","received_events_url":"https://api.github.com/users/Hoedic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-26T17:27:09Z","updated_at":"2015-03-27T09:31:14Z","closed_at":null,"body":"While running an import from a DCAT RDF source, the harvester tells the owner org is missing:\r\n\r\n```2015-03-26 01:54:24,757 INFO  [ckanext.harvest.queue] Received harvest object id: 68d9d538-313c-40f8-83e4-711bcc91afd7\r\n2015-03-26 01:54:24,793 DEBUG [ckanext.dcat.harvesters.rdf] In DCATRDFHarvester import_stage\r\n2015-03-26 01:54:24,836 DEBUG [ckanext.harvest.harvesters.base] Create validation Error: {'Owner org': 'Missing value'}```\r\n\r\nI am trying to import the RDF example : https://github.com/ckan/ckanext-dcat/blob/master/examples/catalog_datasets_list.rdf\r\n\r\nWhen 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.\r\n\r\nnow my configuration fields look like that (I don't know if it's of any use...):\r\n```{\r\n \"default_groups\":[\"a-group\"],\r\n \"user\":\"admin\",\r\n \"read_only\": false\r\n} ```\r\n\r\nAfter looking at the code, I don't see any place where the fetch process tries to read the configuration."},"comment":{"url":"https://api.github.com/repos/ckan/ckanext-dcat/issues/comments/86880025","html_url":"https://github.com/ckan/ckanext-dcat/issues/26#issuecomment-86880025","issue_url":"https://api.github.com/repos/ckan/ckanext-dcat/issues/26","id":86880025,"user":{"login":"amercader","id":200230,"avatar_url":"https://avatars.githubusercontent.com/u/200230?v=3","gravatar_id":"","url":"https://api.github.com/users/amercader","html_url":"https://github.com/amercader","followers_url":"https://api.github.com/users/amercader/followers","following_url":"https://api.github.com/users/amercader/following{/other_user}","gists_url":"https://api.github.com/users/amercader/gists{/gist_id}","starred_url":"https://api.github.com/users/amercader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amercader/subscriptions","organizations_url":"https://api.github.com/users/amercader/orgs","repos_url":"https://api.github.com/users/amercader/repos","events_url":"https://api.github.com/users/amercader/events{/privacy}","received_events_url":"https://api.github.com/users/amercader/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T09:31:14Z","updated_at":"2015-03-27T09:31:14Z","body":"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:\r\n\r\nhttps://github.com/ckan/ckanext-dcat/pull/27\r\n\r\nIt should set the harvested datasets to the same organization that the harvest source belongs to (the one you set when creating the harvest source)"}}