{"action":"created","issue":{"url":"https://api.github.com/repos/NRGI/resourceprojects.org-frontend/issues/20","labels_url":"https://api.github.com/repos/NRGI/resourceprojects.org-frontend/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/NRGI/resourceprojects.org-frontend/issues/20/comments","events_url":"https://api.github.com/repos/NRGI/resourceprojects.org-frontend/issues/20/events","html_url":"https://github.com/NRGI/resourceprojects.org-frontend/issues/20","id":91759516,"number":20,"title":"Provide lookup of provenance information","user":{"login":"timgdavies","id":342624,"avatar_url":"https://avatars.githubusercontent.com/u/342624?v=3","gravatar_id":"","url":"https://api.github.com/users/timgdavies","html_url":"https://github.com/timgdavies","followers_url":"https://api.github.com/users/timgdavies/followers","following_url":"https://api.github.com/users/timgdavies/following{/other_user}","gists_url":"https://api.github.com/users/timgdavies/gists{/gist_id}","starred_url":"https://api.github.com/users/timgdavies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timgdavies/subscriptions","organizations_url":"https://api.github.com/users/timgdavies/orgs","repos_url":"https://api.github.com/users/timgdavies/repos","events_url":"https://api.github.com/users/timgdavies/events{/privacy}","received_events_url":"https://api.github.com/users/timgdavies/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NRGI/resourceprojects.org-frontend/labels/1%20-%20Ready","name":"1 - Ready","color":"CCCCCC"}],"state":"open","locked":false,"assignee":{"login":"caprenter","id":185467,"avatar_url":"https://avatars.githubusercontent.com/u/185467?v=3","gravatar_id":"","url":"https://api.github.com/users/caprenter","html_url":"https://github.com/caprenter","followers_url":"https://api.github.com/users/caprenter/followers","following_url":"https://api.github.com/users/caprenter/following{/other_user}","gists_url":"https://api.github.com/users/caprenter/gists{/gist_id}","starred_url":"https://api.github.com/users/caprenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caprenter/subscriptions","organizations_url":"https://api.github.com/users/caprenter/orgs","repos_url":"https://api.github.com/users/caprenter/repos","events_url":"https://api.github.com/users/caprenter/events{/privacy}","received_events_url":"https://api.github.com/users/caprenter/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/NRGI/resourceprojects.org-frontend/milestones/1","html_url":"https://github.com/NRGI/resourceprojects.org-frontend/milestones/Sprint%203","labels_url":"https://api.github.com/repos/NRGI/resourceprojects.org-frontend/milestones/1/labels","id":1185024,"number":1,"title":"Sprint 3","description":"w/c 29th June","creator":{"login":"caprenter","id":185467,"avatar_url":"https://avatars.githubusercontent.com/u/185467?v=3","gravatar_id":"","url":"https://api.github.com/users/caprenter","html_url":"https://github.com/caprenter","followers_url":"https://api.github.com/users/caprenter/followers","following_url":"https://api.github.com/users/caprenter/following{/other_user}","gists_url":"https://api.github.com/users/caprenter/gists{/gist_id}","starred_url":"https://api.github.com/users/caprenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caprenter/subscriptions","organizations_url":"https://api.github.com/users/caprenter/orgs","repos_url":"https://api.github.com/users/caprenter/repos","events_url":"https://api.github.com/users/caprenter/events{/privacy}","received_events_url":"https://api.github.com/users/caprenter/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":7,"state":"closed","created_at":"2015-06-29T10:41:20Z","updated_at":"2015-10-23T13:33:43Z","due_on":"2015-07-02T23:00:00Z","closed_at":"2015-07-09T17:19:23Z"},"comments":6,"created_at":"2015-06-29T09:47:59Z","updated_at":"2015-10-23T13:36:25Z","closed_at":null,"body":"## Background\r\n\r\nFor most URIs in our dataset, it should be possible to run a query to find out which datasets it was derived from. We set ```prov:wasDerivedFrom``` properties at the entity level, pointing to the dataset row it came from, and pointing from the dataset row to the source dataset. \r\n\r\n```ttl\r\n<http://www.resourceprojects.org/companypayment/id/55895f579368d23a> a base:CompanyPayment ;\r\n    base:currency \"USD\" ;\r\n    base:date \"2009-01-01T00:00:00\"^^xsd:dateTime ;\r\n    base:payee <http://www.resourceprojects.org/country/id> ;\r\n    base:payer <http://www.resourceprojects.org/company/id/55895f53000630e0> ;\r\n    base:relatedProject <http://www.resourceprojects.org/project/id/se-rjz70i> ;\r\n    base:value 6,175,000\";\r\n    prov:wasDerivedFrom <http://www.resourceprojects.org/prov/source/55895de27e6f4cf3/row/39> .\r\n\r\n<http://www.resourceprojects.org/prov/source/55895de27e6f4cf3/row/39> a base:SourceRecord ;\r\n    prov:wasDerivedFrom <http://www.resourceprojects.org/prov/source/55895de27e6f4cf3> .\r\n\r\n<http://www.resourceprojects.org/prov/source/55895de27e6f4cf3> a prov:Entity ;\r\n    base:Converted \"2015-06-01\" ;\r\n    base:Source_Type \"official\" ;\r\n    base:author \"Tim Davies\" . # Example properties only. \r\n```\r\n\r\n\r\nWith the [provenance ontology](http://www.w3.org/TR/prov-o/#wasDerivedFrom) loaded into our datastore, and reasoning enabled, the ```prov:wasDerivedFrom``` property should be transitive, allowing a query which looks for:\r\n\r\n```sparql\r\n  <uri> prov:wasDerivedFrom ?x.\r\n```\r\n\r\nto find both the row, and the dataset, in which a particular entity has been discovered. Datasets *should* be marked up with some meta-data about the source, and the point of importing that data. \r\n\r\n## Proposal\r\n\r\nWe should provide a LODSPeakr page which retrieves the provenance information for any given URI it is handed. \r\n\r\nWe should add a mouse-over link for any URI in the data, which links to that provenance information (this might be possible to do by adding RDFa or data attribute markup to entities on the page, and then using jQuery etc. to manage those pop-ups). \r\n\r\n> Note: It is possible for an entity to have properties derived from multiple datasets, so this method does not 100% show where every fact came from: to do that we may need to segment data into different graphs...\r\n\r\n<!---\r\n@huboard:{\"order\":47.0,\"milestone_order\":20,\"custom_state\":\"\"}\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/NRGI/resourceprojects.org-frontend/issues/comments/150574485","html_url":"https://github.com/NRGI/resourceprojects.org-frontend/issues/20#issuecomment-150574485","issue_url":"https://api.github.com/repos/NRGI/resourceprojects.org-frontend/issues/20","id":150574485,"user":{"login":"caprenter","id":185467,"avatar_url":"https://avatars.githubusercontent.com/u/185467?v=3","gravatar_id":"","url":"https://api.github.com/users/caprenter","html_url":"https://github.com/caprenter","followers_url":"https://api.github.com/users/caprenter/followers","following_url":"https://api.github.com/users/caprenter/following{/other_user}","gists_url":"https://api.github.com/users/caprenter/gists{/gist_id}","starred_url":"https://api.github.com/users/caprenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caprenter/subscriptions","organizations_url":"https://api.github.com/users/caprenter/orgs","repos_url":"https://api.github.com/users/caprenter/repos","events_url":"https://api.github.com/users/caprenter/events{/privacy}","received_events_url":"https://api.github.com/users/caprenter/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T13:36:25Z","updated_at":"2015-10-23T13:36:25Z","body":"This work is now being done in the beta milestone. I think most of it is covered, but will bump this to beta"}}