{"action":"created","issue":{"url":"https://api.github.com/repos/srophe/persons/issues/5","labels_url":"https://api.github.com/repos/srophe/persons/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/srophe/persons/issues/5/comments","events_url":"https://api.github.com/repos/srophe/persons/issues/5/events","html_url":"https://github.com/srophe/persons/issues/5","id":114158127,"number":5,"title":"Mapping author matches back into works","user":{"login":"nathangibson","id":3083452,"avatar_url":"https://avatars.githubusercontent.com/u/3083452?v=3","gravatar_id":"","url":"https://api.github.com/users/nathangibson","html_url":"https://github.com/nathangibson","followers_url":"https://api.github.com/users/nathangibson/followers","following_url":"https://api.github.com/users/nathangibson/following{/other_user}","gists_url":"https://api.github.com/users/nathangibson/gists{/gist_id}","starred_url":"https://api.github.com/users/nathangibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathangibson/subscriptions","organizations_url":"https://api.github.com/users/nathangibson/orgs","repos_url":"https://api.github.com/users/nathangibson/repos","events_url":"https://api.github.com/users/nathangibson/events{/privacy}","received_events_url":"https://api.github.com/users/nathangibson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/srophe/persons/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"wsalesky","id":1168206,"avatar_url":"https://avatars.githubusercontent.com/u/1168206?v=3","gravatar_id":"","url":"https://api.github.com/users/wsalesky","html_url":"https://github.com/wsalesky","followers_url":"https://api.github.com/users/wsalesky/followers","following_url":"https://api.github.com/users/wsalesky/following{/other_user}","gists_url":"https://api.github.com/users/wsalesky/gists{/gist_id}","starred_url":"https://api.github.com/users/wsalesky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsalesky/subscriptions","organizations_url":"https://api.github.com/users/wsalesky/orgs","repos_url":"https://api.github.com/users/wsalesky/repos","events_url":"https://api.github.com/users/wsalesky/events{/privacy}","received_events_url":"https://api.github.com/users/wsalesky/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-10-29T22:09:32Z","updated_at":"2015-10-29T23:10:05Z","closed_at":null,"body":"@wsalesky, not done with the author matching yet, but wanted to check before I get too far if the following will work OK for getting the author refs back into the work records:\r\nhttps://github.com/srophe/persons/blob/master/xml/spreadsheets/authors-from-hagiography-NER-all-names-reconciled.xml#L6\r\n\r\nFor authors we already have in our database, I've just added a ref attribute to the author element, like so:\r\n```\r\n<author ref=\"http://syriaca.org/person/13\" xml:lang=\"fr\" source=\"#bib1000-1\">Éphrem</author> \r\n```\r\nI used find and replace to add that ref to each of the authors having that name. \r\n\r\nWe should be able to identify the URI of each work record it goes back into by parsing the source attribute (removing the \"#bib\" and the \"-1\"), right? \r\n\r\nFor authors we do not yet have in our database, I have provided a temporary xml:id and supplied the information that should go into the new person record that is created, including an English persName and sometimes a note type=\"abstract\" or idno. Any of that info that needs to be sourced, I sourced to a Syriaca URI. For example,\r\n```\r\n<author source=\"#bib1039-1\" xml:id=\"Amphiloque-d’Iconium\">\r\n                    <persName xml:lang=\"fr\">Amphiloque d’Iconium</persName>\r\n                    <persName xml:lang=\"en-x-gedsh\" source=\"http://syriaca.org/bibl/233\">Amphilochius of Iconium</persName>\r\n                    <idno>https://en.wikipedia.org/wiki/Amphilochius_of_Iconium</idno>\r\n                </author>\r\n```\r\nWhere there are multiple works with one of these new authors, I have put a ref to the xml:id (e.g., \"#Amphiloque-d’Iconium\"). \r\n\r\nSo I don't know if creating those new persons and putting their URIs into the works as refs can be automated. If not, no big deal, or if I need to do something differently here, let me know. Thanks!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/srophe/persons/issues/comments/152353208","html_url":"https://github.com/srophe/persons/issues/5#issuecomment-152353208","issue_url":"https://api.github.com/repos/srophe/persons/issues/5","id":152353208,"user":{"login":"wsalesky","id":1168206,"avatar_url":"https://avatars.githubusercontent.com/u/1168206?v=3","gravatar_id":"","url":"https://api.github.com/users/wsalesky","html_url":"https://github.com/wsalesky","followers_url":"https://api.github.com/users/wsalesky/followers","following_url":"https://api.github.com/users/wsalesky/following{/other_user}","gists_url":"https://api.github.com/users/wsalesky/gists{/gist_id}","starred_url":"https://api.github.com/users/wsalesky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsalesky/subscriptions","organizations_url":"https://api.github.com/users/wsalesky/orgs","repos_url":"https://api.github.com/users/wsalesky/repos","events_url":"https://api.github.com/users/wsalesky/events{/privacy}","received_events_url":"https://api.github.com/users/wsalesky/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T23:10:05Z","updated_at":"2015-10-29T23:10:05Z","body":"@nathangibson, that looks fine to me. And yes, this can be automated. \r\nLet me know when it is ready to go, I can write the script or coach you through it, depending on your level of interest in xquery. "}}