{"action":"closed","issue":{"url":"https://api.github.com/repos/epimorphics/elda/issues/53","labels_url":"https://api.github.com/repos/epimorphics/elda/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/epimorphics/elda/issues/53/comments","events_url":"https://api.github.com/repos/epimorphics/elda/issues/53/events","html_url":"https://github.com/epimorphics/elda/issues/53","id":29737834,"number":53,"title":"unbound variables in multi-language string max/min queries","user":{"login":"ehedgehog","id":455956,"avatar_url":"https://avatars.githubusercontent.com/u/455956?v=3","gravatar_id":"","url":"https://api.github.com/users/ehedgehog","html_url":"https://github.com/ehedgehog","followers_url":"https://api.github.com/users/ehedgehog/followers","following_url":"https://api.github.com/users/ehedgehog/following{/other_user}","gists_url":"https://api.github.com/users/ehedgehog/gists{/gist_id}","starred_url":"https://api.github.com/users/ehedgehog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehedgehog/subscriptions","organizations_url":"https://api.github.com/users/ehedgehog/orgs","repos_url":"https://api.github.com/users/ehedgehog/repos","events_url":"https://api.github.com/users/ehedgehog/events{/privacy}","received_events_url":"https://api.github.com/users/ehedgehog/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/epimorphics/elda/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"ehedgehog","id":455956,"avatar_url":"https://avatars.githubusercontent.com/u/455956?v=3","gravatar_id":"","url":"https://api.github.com/users/ehedgehog","html_url":"https://github.com/ehedgehog","followers_url":"https://api.github.com/users/ehedgehog/followers","following_url":"https://api.github.com/users/ehedgehog/following{/other_user}","gists_url":"https://api.github.com/users/ehedgehog/gists{/gist_id}","starred_url":"https://api.github.com/users/ehedgehog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehedgehog/subscriptions","organizations_url":"https://api.github.com/users/ehedgehog/orgs","repos_url":"https://api.github.com/users/ehedgehog/repos","events_url":"https://api.github.com/users/ehedgehog/events{/privacy}","received_events_url":"https://api.github.com/users/ehedgehog/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2014-03-19T14:45:42Z","updated_at":"2015-01-13T12:08:28Z","closed_at":"2015-01-13T12:08:28Z","body":"If a query performs (a) a range comparision [using max/min/etc], (b) on a string-valued property [eg rdfs:label], when (c) _lang (or api:lang) has been set to multiple languages,\r\nthe generated SELECT query refers to unbound variables.\r\n\r\nFor example using the example games dataset, the URL\r\n\r\nhttp://localhost:8080/standalone/again/games?_lang=cy,en&min-label=hello\r\n\r\ngenerates the SELECT query\r\n\r\n  PREFIX hello: <http://epimorphics.com/public/vocabulary/games.ttl#>\r\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\r\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\r\nSELECT DISTINCT ?item\r\nWHERE {\r\n?item rdfs:label ?___label_0 .\r\n?item rdf:type hello:BoardGame .\r\n FILTER ((str(?___1) = \"hello\") && ((lang(?___1) = \"cy\") || (lang(?___1) = \"en\")))\r\n FILTER (?___label_0 >= ?___1)\r\n}  ORDER BY  ?___label_0  ?item OFFSET 0 LIMIT 10\r\n  \r\nwhere ?___1 is unbound (and should be ?___label_0).\r\n"}}