{"action":"created","issue":{"url":"https://api.github.com/repos/okfn/datapackagist/issues/44","labels_url":"https://api.github.com/repos/okfn/datapackagist/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/okfn/datapackagist/issues/44/comments","events_url":"https://api.github.com/repos/okfn/datapackagist/issues/44/events","html_url":"https://github.com/okfn/datapackagist/issues/44","id":85049651,"number":44,"title":"Integration with CKAN/DKAN","user":{"login":"pwalsh","id":791678,"avatar_url":"https://avatars.githubusercontent.com/u/791678?v=3","gravatar_id":"","url":"https://api.github.com/users/pwalsh","html_url":"https://github.com/pwalsh","followers_url":"https://api.github.com/users/pwalsh/followers","following_url":"https://api.github.com/users/pwalsh/following{/other_user}","gists_url":"https://api.github.com/users/pwalsh/gists{/gist_id}","starred_url":"https://api.github.com/users/pwalsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwalsh/subscriptions","organizations_url":"https://api.github.com/users/pwalsh/orgs","repos_url":"https://api.github.com/users/pwalsh/repos","events_url":"https://api.github.com/users/pwalsh/events{/privacy}","received_events_url":"https://api.github.com/users/pwalsh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/okfn/datapackagist/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"gvidon","id":58164,"avatar_url":"https://avatars.githubusercontent.com/u/58164?v=3","gravatar_id":"","url":"https://api.github.com/users/gvidon","html_url":"https://github.com/gvidon","followers_url":"https://api.github.com/users/gvidon/followers","following_url":"https://api.github.com/users/gvidon/following{/other_user}","gists_url":"https://api.github.com/users/gvidon/gists{/gist_id}","starred_url":"https://api.github.com/users/gvidon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvidon/subscriptions","organizations_url":"https://api.github.com/users/gvidon/orgs","repos_url":"https://api.github.com/users/gvidon/repos","events_url":"https://api.github.com/users/gvidon/events{/privacy}","received_events_url":"https://api.github.com/users/gvidon/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/okfn/datapackagist/milestones/4","html_url":"https://github.com/okfn/datapackagist/milestones/Current","labels_url":"https://api.github.com/repos/okfn/datapackagist/milestones/4/labels","id":1149508,"number":4,"title":"Current","description":"","creator":{"login":"pwalsh","id":791678,"avatar_url":"https://avatars.githubusercontent.com/u/791678?v=3","gravatar_id":"","url":"https://api.github.com/users/pwalsh","html_url":"https://github.com/pwalsh","followers_url":"https://api.github.com/users/pwalsh/followers","following_url":"https://api.github.com/users/pwalsh/following{/other_user}","gists_url":"https://api.github.com/users/pwalsh/gists{/gist_id}","starred_url":"https://api.github.com/users/pwalsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwalsh/subscriptions","organizations_url":"https://api.github.com/users/pwalsh/orgs","repos_url":"https://api.github.com/users/pwalsh/repos","events_url":"https://api.github.com/users/pwalsh/events{/privacy}","received_events_url":"https://api.github.com/users/pwalsh/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":4,"state":"open","created_at":"2015-06-04T14:00:22Z","updated_at":"2015-06-08T09:18:40Z","due_on":"2015-06-11T21:00:00Z","closed_at":null},"comments":5,"created_at":"2015-06-04T11:25:23Z","updated_at":"2015-06-08T09:41:14Z","closed_at":null,"body":"First take on the way we'll implement:\r\n\r\n* On some CKAN/DKAN instance, there is a button on a dataset page to \"Create a Data Package\"\r\n* That makes a GET request to a Data Packagist instance, with some param like: `?source=ckan&api_version=3&identifier={the_dataset_id}`\r\n* When datapackagist gets these params, it know it needs to build a datapackage **from** the source (`datapackage-from-remote` ?)\r\n* based on the source & version, `datapackage-from-remote` uses the `identifier` to query the remote endpoint, and correctly get the data it needs from the response object\r\n  * so, `datapackage-from-remote` has some built in config for different remotes by default - eg: ckan api to start with, which dkan also supports\r\n  * user could write a custom remote in code\r\n* From here, all the normal Data Packagist stuff happens\r\n\r\n\r\nSo, we are implementing a generic API to build a datapackage from some remote API endpoint, where that endpoint is expected to have certain properties that give us the metadata we need, and of course the references to the files the package describes. We implement this through some \"Remote\" backend config interface that does those simple mappings we need, and we ship with a CKAN/DKAN remote, supporting V2 and V3 apis (if they are different in any way).\r\n"},"comment":{"url":"https://api.github.com/repos/okfn/datapackagist/issues/comments/109931408","html_url":"https://github.com/okfn/datapackagist/issues/44#issuecomment-109931408","issue_url":"https://api.github.com/repos/okfn/datapackagist/issues/44","id":109931408,"user":{"login":"pwalsh","id":791678,"avatar_url":"https://avatars.githubusercontent.com/u/791678?v=3","gravatar_id":"","url":"https://api.github.com/users/pwalsh","html_url":"https://github.com/pwalsh","followers_url":"https://api.github.com/users/pwalsh/followers","following_url":"https://api.github.com/users/pwalsh/following{/other_user}","gists_url":"https://api.github.com/users/pwalsh/gists{/gist_id}","starred_url":"https://api.github.com/users/pwalsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwalsh/subscriptions","organizations_url":"https://api.github.com/users/pwalsh/orgs","repos_url":"https://api.github.com/users/pwalsh/repos","events_url":"https://api.github.com/users/pwalsh/events{/privacy}","received_events_url":"https://api.github.com/users/pwalsh/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T09:41:14Z","updated_at":"2015-06-08T09:41:14Z","body":"@gvidon truth is: no obvious benefit, apart from the logical grouping."}}