{"action":"created","issue":{"url":"https://api.github.com/repos/peterdesmet/movebank2gbif/issues/3","repository_url":"https://api.github.com/repos/peterdesmet/movebank2gbif","labels_url":"https://api.github.com/repos/peterdesmet/movebank2gbif/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/peterdesmet/movebank2gbif/issues/3/comments","events_url":"https://api.github.com/repos/peterdesmet/movebank2gbif/issues/3/events","html_url":"https://github.com/peterdesmet/movebank2gbif/issues/3","id":160117142,"number":3,"title":"Get data URL","user":{"login":"peterdesmet","id":600993,"avatar_url":"https://avatars.githubusercontent.com/u/600993?v=3","gravatar_id":"","url":"https://api.github.com/users/peterdesmet","html_url":"https://github.com/peterdesmet","followers_url":"https://api.github.com/users/peterdesmet/followers","following_url":"https://api.github.com/users/peterdesmet/following{/other_user}","gists_url":"https://api.github.com/users/peterdesmet/gists{/gist_id}","starred_url":"https://api.github.com/users/peterdesmet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterdesmet/subscriptions","organizations_url":"https://api.github.com/users/peterdesmet/orgs","repos_url":"https://api.github.com/users/peterdesmet/repos","events_url":"https://api.github.com/users/peterdesmet/events{/privacy}","received_events_url":"https://api.github.com/users/peterdesmet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-14T07:45:12Z","updated_at":"2016-07-27T07:19:27Z","closed_at":null,"body":"I have no info in the [metadata I got from DataCite](https://github.com/peterdesmet/movebank2gbif/blob/master/data/datasets.csv) regarding the URLs of the data + metadata files themselves (e.g. https://www.datarepository.movebank.org/bitstream/handle/10255/move.431/README.txt?sequence=2)\r\n\r\n@sarahcd, is their a Movebank Repo service that I can feed with a DOI and get those file URLs back? If not, we'll have to crawl those pages (which can work fine, but is potentially less stable)."},"comment":{"url":"https://api.github.com/repos/peterdesmet/movebank2gbif/issues/comments/235506258","html_url":"https://github.com/peterdesmet/movebank2gbif/issues/3#issuecomment-235506258","issue_url":"https://api.github.com/repos/peterdesmet/movebank2gbif/issues/3","id":235506258,"user":{"login":"peterdesmet","id":600993,"avatar_url":"https://avatars.githubusercontent.com/u/600993?v=3","gravatar_id":"","url":"https://api.github.com/users/peterdesmet","html_url":"https://github.com/peterdesmet","followers_url":"https://api.github.com/users/peterdesmet/followers","following_url":"https://api.github.com/users/peterdesmet/following{/other_user}","gists_url":"https://api.github.com/users/peterdesmet/gists{/gist_id}","starred_url":"https://api.github.com/users/peterdesmet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterdesmet/subscriptions","organizations_url":"https://api.github.com/users/peterdesmet/orgs","repos_url":"https://api.github.com/users/peterdesmet/repos","events_url":"https://api.github.com/users/peterdesmet/events{/privacy}","received_events_url":"https://api.github.com/users/peterdesmet/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T07:19:27Z","updated_at":"2016-07-27T07:19:27Z","body":"Way to proceed:\r\n\r\n1. Get `handle` from resolved DOI, e.g. http://doi.org/10.5441/001/1.TC76G560 points to https://www.datarepository.movebank.org/handle/10255/move.457. The handle is `move.457`.\r\n2. Use handle to query via METS or OAI-PMH. The latter will return absolute data file URLs, which is more useful. So, https://www.datarepository.movebank.org/oai/request?verb=GetRecord&identifier=oai:www.datarepository.movebank.org:10255/move.457&metadataPrefix=mets\r\n3. In `<fileSec>` get the URL of the data files. Ignore all `README.txt`\r\n\r\nUnfortunately, the `<fileSec>` will be empty for a dataset handle ([457](https://www.datarepository.movebank.org/oai/request?verb=GetRecord&identifier=oai:www.datarepository.movebank.org:10255/move.457&metadataPrefix=mets)), so we'll need to get each separate file handle ([458](https://www.datarepository.movebank.org/oai/request?verb=GetRecord&identifier=oai:www.datarepository.movebank.org:10255/move.458&metadataPrefix=mets), [459](https://www.datarepository.movebank.org/oai/request?verb=GetRecord&identifier=oai:www.datarepository.movebank.org:10255/move.459&metadataPrefix=mets), [460](https://www.datarepository.movebank.org/oai/request?verb=GetRecord&identifier=oai:www.datarepository.movebank.org:10255/move.460&metadataPrefix=mets)). Those could be retrieved via `HasPart` in `metadata.relatedIdentifier`."}}
{"actor":{"display_login":"peterdesmet"}}