{"action":"created","issue":{"url":"https://api.github.com/repos/vivo-project/Vitro/issues/21","labels_url":"https://api.github.com/repos/vivo-project/Vitro/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/vivo-project/Vitro/issues/21/comments","events_url":"https://api.github.com/repos/vivo-project/Vitro/issues/21/events","html_url":"https://github.com/vivo-project/Vitro/pull/21","id":92413884,"number":21,"title":"Fix string conversion","user":{"login":"patrickmcelwee","id":808015,"avatar_url":"https://avatars.githubusercontent.com/u/808015?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickmcelwee","html_url":"https://github.com/patrickmcelwee","followers_url":"https://api.github.com/users/patrickmcelwee/followers","following_url":"https://api.github.com/users/patrickmcelwee/following{/other_user}","gists_url":"https://api.github.com/users/patrickmcelwee/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickmcelwee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickmcelwee/subscriptions","organizations_url":"https://api.github.com/users/patrickmcelwee/orgs","repos_url":"https://api.github.com/users/patrickmcelwee/repos","events_url":"https://api.github.com/users/patrickmcelwee/events{/privacy}","received_events_url":"https://api.github.com/users/patrickmcelwee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-01T15:30:49Z","updated_at":"2015-07-28T15:59:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/vivo-project/Vitro/pulls/21","html_url":"https://github.com/vivo-project/Vitro/pull/21","diff_url":"https://github.com/vivo-project/Vitro/pull/21.diff","patch_url":"https://github.com/vivo-project/Vitro/pull/21.patch"},"body":"I ran into this problem when running VIVO on MarkLogic, which always returns\r\ntype annotations for strings (which is consistent with the SPARQL spec, but\r\ndifferent from the Jena SDB behavior)\r\n\r\nStrings of the form, \"1^^http://www.w3.org/2001/XMLSchema#string\", were\r\nbeing created and then not correctly parsed into ints. (The\r\nRDFNode.toString() method maintains the type annotation.)\r\n\r\nTo fix, make sure we remove the type information if it exists before trying to\r\nparseInt."},"comment":{"url":"https://api.github.com/repos/vivo-project/Vitro/issues/comments/125663146","html_url":"https://github.com/vivo-project/Vitro/pull/21#issuecomment-125663146","issue_url":"https://api.github.com/repos/vivo-project/Vitro/issues/21","id":125663146,"user":{"login":"j2blake","id":1633937,"avatar_url":"https://avatars.githubusercontent.com/u/1633937?v=3","gravatar_id":"","url":"https://api.github.com/users/j2blake","html_url":"https://github.com/j2blake","followers_url":"https://api.github.com/users/j2blake/followers","following_url":"https://api.github.com/users/j2blake/following{/other_user}","gists_url":"https://api.github.com/users/j2blake/gists{/gist_id}","starred_url":"https://api.github.com/users/j2blake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j2blake/subscriptions","organizations_url":"https://api.github.com/users/j2blake/orgs","repos_url":"https://api.github.com/users/j2blake/repos","events_url":"https://api.github.com/users/j2blake/events{/privacy}","received_events_url":"https://api.github.com/users/j2blake/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T15:59:45Z","updated_at":"2015-07-28T15:59:45Z","body":"Hi, Patrick -- sorry it's taken me so long to respond. This slipped past me while I was on vacation.\r\n\r\nAre you saying that MarkLogic doesn't distinguish between plain (untyped) literals and String literals?"}}