{"action":"opened","number":107,"pull_request":{"url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/pulls/107","id":120822200,"html_url":"https://github.com/OpenTriply/YASGUI.YASQE/pull/107","diff_url":"https://github.com/OpenTriply/YASGUI.YASQE/pull/107.diff","patch_url":"https://github.com/OpenTriply/YASGUI.YASQE/pull/107.patch","issue_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/issues/107","number":107,"state":"open","locked":false,"title":"Change tokenizer: add reserved Virtuoso function (sql:) to excluded p…","user":{"login":"ozq","id":12393971,"avatar_url":"https://avatars1.githubusercontent.com/u/12393971?v=3","gravatar_id":"","url":"https://api.github.com/users/ozq","html_url":"https://github.com/ozq","followers_url":"https://api.github.com/users/ozq/followers","following_url":"https://api.github.com/users/ozq/following{/other_user}","gists_url":"https://api.github.com/users/ozq/gists{/gist_id}","starred_url":"https://api.github.com/users/ozq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozq/subscriptions","organizations_url":"https://api.github.com/users/ozq/orgs","repos_url":"https://api.github.com/users/ozq/repos","events_url":"https://api.github.com/users/ozq/events{/privacy}","received_events_url":"https://api.github.com/users/ozq/received_events","type":"User","site_admin":false},"body":"**Issue:** tokenizer dosen't consider sql: reserved function.\r\n(code: `if (!state.prefixes[prefNs] && [\"bif\", \"xsd\"].indexOf(prefNs) < 0) { ... }`)\r\n\r\nSo, in the next sparql code:\r\n`SELECT ?resourceUri ?cardTemplate_sp ?cardTemplate (sql:BEST_LANGMATCH(?_cardTemplate, 'ru; en; all', '') AS ?_cardTemplate)` there will be syntax error, that sql prefix is not defined.\r\n\r\n**Solution:** I've added sql prefix to excluded validation prefixes array:\r\n(code: `if (!state.prefixes[prefNs] && [\"bif\", \"xsd\", \"sql\"].indexOf(prefNs) < 0) { ... }`)\r\n\r\n**Info about Virtuoso/PL functions and built-in SQL functions:**\r\n> A SPARQL expression can contain calls to Virtuoso/PL functions and built-in SQL functions in both the WHERE clause and in the result set. Two namespace prefixes, bif and sql are reserved for these purposes.\r\n(http://docs.openlinksw.com/virtuoso/rdfsqlfromsparql/)","created_at":"2017-05-16T13:04:48Z","updated_at":"2017-05-16T13:04:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/pulls/107/commits","review_comments_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/pulls/107/comments","review_comment_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/issues/107/comments","statuses_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/statuses/b012ab0d2a1f1b17822f6d487d754ca04d59d6b9","head":{"label":"ozq:gh-pages","ref":"gh-pages","sha":"b012ab0d2a1f1b17822f6d487d754ca04d59d6b9","user":{"login":"ozq","id":12393971,"avatar_url":"https://avatars1.githubusercontent.com/u/12393971?v=3","gravatar_id":"","url":"https://api.github.com/users/ozq","html_url":"https://github.com/ozq","followers_url":"https://api.github.com/users/ozq/followers","following_url":"https://api.github.com/users/ozq/following{/other_user}","gists_url":"https://api.github.com/users/ozq/gists{/gist_id}","starred_url":"https://api.github.com/users/ozq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozq/subscriptions","organizations_url":"https://api.github.com/users/ozq/orgs","repos_url":"https://api.github.com/users/ozq/repos","events_url":"https://api.github.com/users/ozq/events{/privacy}","received_events_url":"https://api.github.com/users/ozq/received_events","type":"User","site_admin":false},"repo":{"id":91444719,"name":"YASGUI.YASQE","full_name":"ozq/YASGUI.YASQE","owner":{"login":"ozq","id":12393971,"avatar_url":"https://avatars1.githubusercontent.com/u/12393971?v=3","gravatar_id":"","url":"https://api.github.com/users/ozq","html_url":"https://github.com/ozq","followers_url":"https://api.github.com/users/ozq/followers","following_url":"https://api.github.com/users/ozq/following{/other_user}","gists_url":"https://api.github.com/users/ozq/gists{/gist_id}","starred_url":"https://api.github.com/users/ozq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozq/subscriptions","organizations_url":"https://api.github.com/users/ozq/orgs","repos_url":"https://api.github.com/users/ozq/repos","events_url":"https://api.github.com/users/ozq/events{/privacy}","received_events_url":"https://api.github.com/users/ozq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ozq/YASGUI.YASQE","description":"Yet Another Sparql Editor","fork":true,"url":"https://api.github.com/repos/ozq/YASGUI.YASQE","forks_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/forks","keys_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/teams","hooks_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/hooks","issue_events_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/issues/events{/number}","events_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/events","assignees_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/assignees{/user}","branches_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/branches{/branch}","tags_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/tags","blobs_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/git/refs{/sha}","trees_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/statuses/{sha}","languages_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/languages","stargazers_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/stargazers","contributors_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/contributors","subscribers_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/subscribers","subscription_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/subscription","commits_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/commits{/sha}","git_commits_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/git/commits{/sha}","comments_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/comments{/number}","issue_comment_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/issues/comments{/number}","contents_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/contents/{+path}","compare_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/merges","archive_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/downloads","issues_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/issues{/number}","pulls_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/pulls{/number}","milestones_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/milestones{/number}","notifications_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/labels{/name}","releases_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/releases{/id}","deployments_url":"https://api.github.com/repos/ozq/YASGUI.YASQE/deployments","created_at":"2017-05-16T10:13:28Z","updated_at":"2017-05-16T10:13:30Z","pushed_at":"2017-05-16T10:49:02Z","git_url":"git://github.com/ozq/YASGUI.YASQE.git","ssh_url":"git@github.com:ozq/YASGUI.YASQE.git","clone_url":"https://github.com/ozq/YASGUI.YASQE.git","svn_url":"https://github.com/ozq/YASGUI.YASQE","homepage":null,"size":30970,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"OpenTriply:gh-pages","ref":"gh-pages","sha":"a46f9ee1c226c6293c7ce03f2c95db2c6888d4a5","user":{"login":"OpenTriply","id":16001259,"avatar_url":"https://avatars2.githubusercontent.com/u/16001259?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenTriply","html_url":"https://github.com/OpenTriply","followers_url":"https://api.github.com/users/OpenTriply/followers","following_url":"https://api.github.com/users/OpenTriply/following{/other_user}","gists_url":"https://api.github.com/users/OpenTriply/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenTriply/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenTriply/subscriptions","organizations_url":"https://api.github.com/users/OpenTriply/orgs","repos_url":"https://api.github.com/users/OpenTriply/repos","events_url":"https://api.github.com/users/OpenTriply/events{/privacy}","received_events_url":"https://api.github.com/users/OpenTriply/received_events","type":"Organization","site_admin":false},"repo":{"id":19752585,"name":"YASGUI.YASQE","full_name":"OpenTriply/YASGUI.YASQE","owner":{"login":"OpenTriply","id":16001259,"avatar_url":"https://avatars2.githubusercontent.com/u/16001259?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenTriply","html_url":"https://github.com/OpenTriply","followers_url":"https://api.github.com/users/OpenTriply/followers","following_url":"https://api.github.com/users/OpenTriply/following{/other_user}","gists_url":"https://api.github.com/users/OpenTriply/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenTriply/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenTriply/subscriptions","organizations_url":"https://api.github.com/users/OpenTriply/orgs","repos_url":"https://api.github.com/users/OpenTriply/repos","events_url":"https://api.github.com/users/OpenTriply/events{/privacy}","received_events_url":"https://api.github.com/users/OpenTriply/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenTriply/YASGUI.YASQE","description":"Yet Another Sparql Editor","fork":false,"url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE","forks_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/forks","keys_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/teams","hooks_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/hooks","issue_events_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/issues/events{/number}","events_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/events","assignees_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/assignees{/user}","branches_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/branches{/branch}","tags_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/tags","blobs_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/languages","stargazers_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/stargazers","contributors_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/contributors","subscribers_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/subscribers","subscription_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/subscription","commits_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/contents/{+path}","compare_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/merges","archive_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/downloads","issues_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/issues{/number}","pulls_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/labels{/name}","releases_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/releases{/id}","deployments_url":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/deployments","created_at":"2014-05-13T19:22:27Z","updated_at":"2017-05-09T11:18:55Z","pushed_at":"2017-05-12T13:23:19Z","git_url":"git://github.com/OpenTriply/YASGUI.YASQE.git","ssh_url":"git@github.com:OpenTriply/YASGUI.YASQE.git","clone_url":"https://github.com/OpenTriply/YASGUI.YASQE.git","svn_url":"https://github.com/OpenTriply/YASGUI.YASQE","homepage":null,"size":30796,"stargazers_count":46,"watchers_count":46,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":11,"forks":11,"open_issues":11,"watchers":46,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/pulls/107"},"html":{"href":"https://github.com/OpenTriply/YASGUI.YASQE/pull/107"},"issue":{"href":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/issues/107"},"comments":{"href":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/issues/107/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/pulls/107/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/pulls/107/commits"},"statuses":{"href":"https://api.github.com/repos/OpenTriply/YASGUI.YASQE/statuses/b012ab0d2a1f1b17822f6d487d754ca04d59d6b9"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":118,"deletions":117,"changed_files":12}}
{"actor":{"display_login":"ozq"}}