{"action":"created","issue":{"url":"https://api.github.com/repos/SNAPminions/snapcode/issues/1","labels_url":"https://api.github.com/repos/SNAPminions/snapcode/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/SNAPminions/snapcode/issues/1/comments","events_url":"https://api.github.com/repos/SNAPminions/snapcode/issues/1/events","html_url":"https://github.com/SNAPminions/snapcode/issues/1","id":59260084,"number":1,"title":"Person merging script (Python)","user":{"login":"emmadking","id":10981168,"avatar_url":"https://avatars.githubusercontent.com/u/10981168?v=3","gravatar_id":"","url":"https://api.github.com/users/emmadking","html_url":"https://github.com/emmadking","followers_url":"https://api.github.com/users/emmadking/followers","following_url":"https://api.github.com/users/emmadking/following{/other_user}","gists_url":"https://api.github.com/users/emmadking/gists{/gist_id}","starred_url":"https://api.github.com/users/emmadking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmadking/subscriptions","organizations_url":"https://api.github.com/users/emmadking/orgs","repos_url":"https://api.github.com/users/emmadking/repos","events_url":"https://api.github.com/users/emmadking/events{/privacy}","received_events_url":"https://api.github.com/users/emmadking/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SNAPminions/snapcode/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"FLawrence","id":1065311,"avatar_url":"https://avatars.githubusercontent.com/u/1065311?v=3","gravatar_id":"","url":"https://api.github.com/users/FLawrence","html_url":"https://github.com/FLawrence","followers_url":"https://api.github.com/users/FLawrence/followers","following_url":"https://api.github.com/users/FLawrence/following{/other_user}","gists_url":"https://api.github.com/users/FLawrence/gists{/gist_id}","starred_url":"https://api.github.com/users/FLawrence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FLawrence/subscriptions","organizations_url":"https://api.github.com/users/FLawrence/orgs","repos_url":"https://api.github.com/users/FLawrence/repos","events_url":"https://api.github.com/users/FLawrence/events{/privacy}","received_events_url":"https://api.github.com/users/FLawrence/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/SNAPminions/snapcode/milestones/2","html_url":"https://github.com/SNAPminions/snapcode/milestones/Merge%20script","labels_url":"https://api.github.com/repos/SNAPminions/snapcode/milestones/2/labels","id":1008230,"number":2,"title":"Merge script","description":"","creator":{"login":"gabrielbodard","id":612845,"avatar_url":"https://avatars.githubusercontent.com/u/612845?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielbodard","html_url":"https://github.com/gabrielbodard","followers_url":"https://api.github.com/users/gabrielbodard/followers","following_url":"https://api.github.com/users/gabrielbodard/following{/other_user}","gists_url":"https://api.github.com/users/gabrielbodard/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielbodard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielbodard/subscriptions","organizations_url":"https://api.github.com/users/gabrielbodard/orgs","repos_url":"https://api.github.com/users/gabrielbodard/repos","events_url":"https://api.github.com/users/gabrielbodard/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielbodard/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-03-05T20:43:39Z","updated_at":"2015-03-05T21:01:55Z","due_on":"2015-03-24T00:00:00Z","closed_at":null},"comments":2,"created_at":"2015-02-27T16:37:33Z","updated_at":"2015-03-06T11:36:54Z","closed_at":null,"body":"This script already exists, but it should be parameterised so it can be used on more data sets.\r\n1.testing and expanding to deal with known edge cases\r\n2.generalizing the script, more parameters, more ids\r\n3.code improvement/optimization and documentation\r\n"},"comment":{"url":"https://api.github.com/repos/SNAPminions/snapcode/issues/comments/77546179","html_url":"https://github.com/SNAPminions/snapcode/issues/1#issuecomment-77546179","issue_url":"https://api.github.com/repos/SNAPminions/snapcode/issues/1","id":77546179,"user":{"login":"FLawrence","id":1065311,"avatar_url":"https://avatars.githubusercontent.com/u/1065311?v=3","gravatar_id":"","url":"https://api.github.com/users/FLawrence","html_url":"https://github.com/FLawrence","followers_url":"https://api.github.com/users/FLawrence/followers","following_url":"https://api.github.com/users/FLawrence/following{/other_user}","gists_url":"https://api.github.com/users/FLawrence/gists{/gist_id}","starred_url":"https://api.github.com/users/FLawrence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FLawrence/subscriptions","organizations_url":"https://api.github.com/users/FLawrence/orgs","repos_url":"https://api.github.com/users/FLawrence/repos","events_url":"https://api.github.com/users/FLawrence/events{/privacy}","received_events_url":"https://api.github.com/users/FLawrence/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T11:36:54Z","updated_at":"2015-03-06T11:36:54Z","body":"Specification for Merge Script:\r\n\r\nInput:\r\nCSV file (2 columns) - Columns contain the paired ID's of the given datasets\r\nOutput: \r\nRDF Statement discribing merged person \r\nRDF Statements about original SNAP records stating that they have been superceded and giving a link to the new SNAP record\r\n\r\n* Script must be able to take in the base URIs for the given datasets and create the full URI for the given ID (currently base URI is hardcoded as only working with one example, but need to be able to specify the URIs when the script is run so that it can be used with any two datasets) \r\n* Script must then query the endpoint to discover the SNAP ID for that person\r\n* Script must then output the RDF to describe the new, merged person, and the statements for addition to the original SNAP person information pointing to the new SNAP person\r\n\r\n* Script needs to be able to deal with cases where more then two records should be merged into one record - the records all need to be merged into one rather then one for each pairing \r\ne.g. \r\nABC, XYZ\r\nABC, 123\r\n\r\n-> \r\n\r\nSNAP4475 (SNAP34, SNAP88, SNAP10034)\r\n\r\nNOT:\r\nSNAP4475 (SNAP34, SNAP88)\r\nSNAP4476 (SNAP34, SNAP10034)\r\n\r\n* Script needs to be able to fail gracefully when SNAP ID can't be found or there is something otherwise odd going on with the data - it needs to do this in such a way that it flags the questionnable data for human checking."}}