{"action":"closed","number":673,"pull_request":{"url":"https://api.github.com/repos/RDFLib/rdflib/pulls/673","id":96336619,"html_url":"https://github.com/RDFLib/rdflib/pull/673","diff_url":"https://github.com/RDFLib/rdflib/pull/673.diff","patch_url":"https://github.com/RDFLib/rdflib/pull/673.patch","issue_url":"https://api.github.com/repos/RDFLib/rdflib/issues/673","number":673,"state":"closed","locked":false,"title":"Adding the option of using POST for queries in SPARQLStore","user":{"login":"SeguinBe","id":7132817,"avatar_url":"https://avatars.githubusercontent.com/u/7132817?v=3","gravatar_id":"","url":"https://api.github.com/users/SeguinBe","html_url":"https://github.com/SeguinBe","followers_url":"https://api.github.com/users/SeguinBe/followers","following_url":"https://api.github.com/users/SeguinBe/following{/other_user}","gists_url":"https://api.github.com/users/SeguinBe/gists{/gist_id}","starred_url":"https://api.github.com/users/SeguinBe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeguinBe/subscriptions","organizations_url":"https://api.github.com/users/SeguinBe/orgs","repos_url":"https://api.github.com/users/SeguinBe/repos","events_url":"https://api.github.com/users/SeguinBe/events{/privacy}","received_events_url":"https://api.github.com/users/SeguinBe/received_events","type":"User","site_admin":false},"body":"Solution to #672\r\n\r\nJust adding a small parameter to be able to use POST for queries in order to to perform long requests.\r\n\r\nPreviously :\r\n```python\r\ngraph = Graph('SPARQLUpdateStore', identifier='http://localhost:8890/WGA') \r\ngraph.query('<VERY LONG STRING>')\r\n# Query get cropped because it's done with HTTP GET\r\n```\r\n\r\nNow :\r\n```python\r\nfrom rdflib.plugins.stores.sparqlstore import SPARQLUpdateStore\r\nstore = sparqlstore.SPARQLUpdateStore(query_as_post=True)\r\ngraph = Graph(store, identifier='http://localhost:8890/WGA') \r\ngraph.query('<VERY LONG STRING>')\r\n# Works!\r\n```\r\n\r\nTiny changes based on [postAsEncoded param in SPARQLUpdateStore](https://github.com/RDFLib/rdflib/blob/master/rdflib/plugins/stores/sparqlstore.py#L763)","created_at":"2016-12-02T19:19:55Z","updated_at":"2016-12-05T10:37:43Z","closed_at":"2016-12-05T10:37:43Z","merged_at":"2016-12-05T10:37:43Z","merge_commit_sha":"2a869caa4a34197bc45e8c79302d559b026ef7b9","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/RDFLib/rdflib/milestones/7","html_url":"https://github.com/RDFLib/rdflib/milestones/rdflib%204.2.2","labels_url":"https://api.github.com/repos/RDFLib/rdflib/milestones/7/labels","id":1250300,"number":7,"title":"rdflib 4.2.2","description":"","creator":{"login":"joernhees","id":464192,"avatar_url":"https://avatars.githubusercontent.com/u/464192?v=3","gravatar_id":"","url":"https://api.github.com/users/joernhees","html_url":"https://github.com/joernhees","followers_url":"https://api.github.com/users/joernhees/followers","following_url":"https://api.github.com/users/joernhees/following{/other_user}","gists_url":"https://api.github.com/users/joernhees/gists{/gist_id}","starred_url":"https://api.github.com/users/joernhees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joernhees/subscriptions","organizations_url":"https://api.github.com/users/joernhees/orgs","repos_url":"https://api.github.com/users/joernhees/repos","events_url":"https://api.github.com/users/joernhees/events{/privacy}","received_events_url":"https://api.github.com/users/joernhees/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":84,"state":"open","created_at":"2015-08-11T17:00:01Z","updated_at":"2016-12-05T10:37:43Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/RDFLib/rdflib/pulls/673/commits","review_comments_url":"https://api.github.com/repos/RDFLib/rdflib/pulls/673/comments","review_comment_url":"https://api.github.com/repos/RDFLib/rdflib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RDFLib/rdflib/issues/673/comments","statuses_url":"https://api.github.com/repos/RDFLib/rdflib/statuses/87f71daa0a3685b982b350394cde366af41de939","head":{"label":"SeguinBe:master","ref":"master","sha":"87f71daa0a3685b982b350394cde366af41de939","user":{"login":"SeguinBe","id":7132817,"avatar_url":"https://avatars.githubusercontent.com/u/7132817?v=3","gravatar_id":"","url":"https://api.github.com/users/SeguinBe","html_url":"https://github.com/SeguinBe","followers_url":"https://api.github.com/users/SeguinBe/followers","following_url":"https://api.github.com/users/SeguinBe/following{/other_user}","gists_url":"https://api.github.com/users/SeguinBe/gists{/gist_id}","starred_url":"https://api.github.com/users/SeguinBe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeguinBe/subscriptions","organizations_url":"https://api.github.com/users/SeguinBe/orgs","repos_url":"https://api.github.com/users/SeguinBe/repos","events_url":"https://api.github.com/users/SeguinBe/events{/privacy}","received_events_url":"https://api.github.com/users/SeguinBe/received_events","type":"User","site_admin":false},"repo":{"id":75420088,"name":"rdflib","full_name":"SeguinBe/rdflib","owner":{"login":"SeguinBe","id":7132817,"avatar_url":"https://avatars.githubusercontent.com/u/7132817?v=3","gravatar_id":"","url":"https://api.github.com/users/SeguinBe","html_url":"https://github.com/SeguinBe","followers_url":"https://api.github.com/users/SeguinBe/followers","following_url":"https://api.github.com/users/SeguinBe/following{/other_user}","gists_url":"https://api.github.com/users/SeguinBe/gists{/gist_id}","starred_url":"https://api.github.com/users/SeguinBe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeguinBe/subscriptions","organizations_url":"https://api.github.com/users/SeguinBe/orgs","repos_url":"https://api.github.com/users/SeguinBe/repos","events_url":"https://api.github.com/users/SeguinBe/events{/privacy}","received_events_url":"https://api.github.com/users/SeguinBe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SeguinBe/rdflib","description":"RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.","fork":true,"url":"https://api.github.com/repos/SeguinBe/rdflib","forks_url":"https://api.github.com/repos/SeguinBe/rdflib/forks","keys_url":"https://api.github.com/repos/SeguinBe/rdflib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SeguinBe/rdflib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SeguinBe/rdflib/teams","hooks_url":"https://api.github.com/repos/SeguinBe/rdflib/hooks","issue_events_url":"https://api.github.com/repos/SeguinBe/rdflib/issues/events{/number}","events_url":"https://api.github.com/repos/SeguinBe/rdflib/events","assignees_url":"https://api.github.com/repos/SeguinBe/rdflib/assignees{/user}","branches_url":"https://api.github.com/repos/SeguinBe/rdflib/branches{/branch}","tags_url":"https://api.github.com/repos/SeguinBe/rdflib/tags","blobs_url":"https://api.github.com/repos/SeguinBe/rdflib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SeguinBe/rdflib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SeguinBe/rdflib/git/refs{/sha}","trees_url":"https://api.github.com/repos/SeguinBe/rdflib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SeguinBe/rdflib/statuses/{sha}","languages_url":"https://api.github.com/repos/SeguinBe/rdflib/languages","stargazers_url":"https://api.github.com/repos/SeguinBe/rdflib/stargazers","contributors_url":"https://api.github.com/repos/SeguinBe/rdflib/contributors","subscribers_url":"https://api.github.com/repos/SeguinBe/rdflib/subscribers","subscription_url":"https://api.github.com/repos/SeguinBe/rdflib/subscription","commits_url":"https://api.github.com/repos/SeguinBe/rdflib/commits{/sha}","git_commits_url":"https://api.github.com/repos/SeguinBe/rdflib/git/commits{/sha}","comments_url":"https://api.github.com/repos/SeguinBe/rdflib/comments{/number}","issue_comment_url":"https://api.github.com/repos/SeguinBe/rdflib/issues/comments{/number}","contents_url":"https://api.github.com/repos/SeguinBe/rdflib/contents/{+path}","compare_url":"https://api.github.com/repos/SeguinBe/rdflib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SeguinBe/rdflib/merges","archive_url":"https://api.github.com/repos/SeguinBe/rdflib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SeguinBe/rdflib/downloads","issues_url":"https://api.github.com/repos/SeguinBe/rdflib/issues{/number}","pulls_url":"https://api.github.com/repos/SeguinBe/rdflib/pulls{/number}","milestones_url":"https://api.github.com/repos/SeguinBe/rdflib/milestones{/number}","notifications_url":"https://api.github.com/repos/SeguinBe/rdflib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SeguinBe/rdflib/labels{/name}","releases_url":"https://api.github.com/repos/SeguinBe/rdflib/releases{/id}","deployments_url":"https://api.github.com/repos/SeguinBe/rdflib/deployments","created_at":"2016-12-02T18:18:13Z","updated_at":"2016-12-02T18:18:18Z","pushed_at":"2016-12-05T10:36:58Z","git_url":"git://github.com/SeguinBe/rdflib.git","ssh_url":"git@github.com:SeguinBe/rdflib.git","clone_url":"https://github.com/SeguinBe/rdflib.git","svn_url":"https://github.com/SeguinBe/rdflib","homepage":"https://rdflib.readthedocs.org/","size":12281,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"RDFLib:master","ref":"master","sha":"38445f5622209ae83a392bc0182776d01a538fde","user":{"login":"RDFLib","id":1401847,"avatar_url":"https://avatars.githubusercontent.com/u/1401847?v=3","gravatar_id":"","url":"https://api.github.com/users/RDFLib","html_url":"https://github.com/RDFLib","followers_url":"https://api.github.com/users/RDFLib/followers","following_url":"https://api.github.com/users/RDFLib/following{/other_user}","gists_url":"https://api.github.com/users/RDFLib/gists{/gist_id}","starred_url":"https://api.github.com/users/RDFLib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RDFLib/subscriptions","organizations_url":"https://api.github.com/users/RDFLib/orgs","repos_url":"https://api.github.com/users/RDFLib/repos","events_url":"https://api.github.com/users/RDFLib/events{/privacy}","received_events_url":"https://api.github.com/users/RDFLib/received_events","type":"Organization","site_admin":false},"repo":{"id":3342046,"name":"rdflib","full_name":"RDFLib/rdflib","owner":{"login":"RDFLib","id":1401847,"avatar_url":"https://avatars.githubusercontent.com/u/1401847?v=3","gravatar_id":"","url":"https://api.github.com/users/RDFLib","html_url":"https://github.com/RDFLib","followers_url":"https://api.github.com/users/RDFLib/followers","following_url":"https://api.github.com/users/RDFLib/following{/other_user}","gists_url":"https://api.github.com/users/RDFLib/gists{/gist_id}","starred_url":"https://api.github.com/users/RDFLib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RDFLib/subscriptions","organizations_url":"https://api.github.com/users/RDFLib/orgs","repos_url":"https://api.github.com/users/RDFLib/repos","events_url":"https://api.github.com/users/RDFLib/events{/privacy}","received_events_url":"https://api.github.com/users/RDFLib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RDFLib/rdflib","description":"RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.","fork":false,"url":"https://api.github.com/repos/RDFLib/rdflib","forks_url":"https://api.github.com/repos/RDFLib/rdflib/forks","keys_url":"https://api.github.com/repos/RDFLib/rdflib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RDFLib/rdflib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RDFLib/rdflib/teams","hooks_url":"https://api.github.com/repos/RDFLib/rdflib/hooks","issue_events_url":"https://api.github.com/repos/RDFLib/rdflib/issues/events{/number}","events_url":"https://api.github.com/repos/RDFLib/rdflib/events","assignees_url":"https://api.github.com/repos/RDFLib/rdflib/assignees{/user}","branches_url":"https://api.github.com/repos/RDFLib/rdflib/branches{/branch}","tags_url":"https://api.github.com/repos/RDFLib/rdflib/tags","blobs_url":"https://api.github.com/repos/RDFLib/rdflib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RDFLib/rdflib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RDFLib/rdflib/git/refs{/sha}","trees_url":"https://api.github.com/repos/RDFLib/rdflib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RDFLib/rdflib/statuses/{sha}","languages_url":"https://api.github.com/repos/RDFLib/rdflib/languages","stargazers_url":"https://api.github.com/repos/RDFLib/rdflib/stargazers","contributors_url":"https://api.github.com/repos/RDFLib/rdflib/contributors","subscribers_url":"https://api.github.com/repos/RDFLib/rdflib/subscribers","subscription_url":"https://api.github.com/repos/RDFLib/rdflib/subscription","commits_url":"https://api.github.com/repos/RDFLib/rdflib/commits{/sha}","git_commits_url":"https://api.github.com/repos/RDFLib/rdflib/git/commits{/sha}","comments_url":"https://api.github.com/repos/RDFLib/rdflib/comments{/number}","issue_comment_url":"https://api.github.com/repos/RDFLib/rdflib/issues/comments{/number}","contents_url":"https://api.github.com/repos/RDFLib/rdflib/contents/{+path}","compare_url":"https://api.github.com/repos/RDFLib/rdflib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RDFLib/rdflib/merges","archive_url":"https://api.github.com/repos/RDFLib/rdflib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RDFLib/rdflib/downloads","issues_url":"https://api.github.com/repos/RDFLib/rdflib/issues{/number}","pulls_url":"https://api.github.com/repos/RDFLib/rdflib/pulls{/number}","milestones_url":"https://api.github.com/repos/RDFLib/rdflib/milestones{/number}","notifications_url":"https://api.github.com/repos/RDFLib/rdflib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RDFLib/rdflib/labels{/name}","releases_url":"https://api.github.com/repos/RDFLib/rdflib/releases{/id}","deployments_url":"https://api.github.com/repos/RDFLib/rdflib/deployments","created_at":"2012-02-03T05:49:13Z","updated_at":"2016-11-29T09:08:17Z","pushed_at":"2016-12-05T10:37:43Z","git_url":"git://github.com/RDFLib/rdflib.git","ssh_url":"git@github.com:RDFLib/rdflib.git","clone_url":"https://github.com/RDFLib/rdflib.git","svn_url":"https://github.com/RDFLib/rdflib","homepage":"https://rdflib.readthedocs.org/","size":13653,"stargazers_count":533,"watchers_count":533,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":175,"mirror_url":null,"open_issues_count":129,"forks":175,"open_issues":129,"watchers":533,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RDFLib/rdflib/pulls/673"},"html":{"href":"https://github.com/RDFLib/rdflib/pull/673"},"issue":{"href":"https://api.github.com/repos/RDFLib/rdflib/issues/673"},"comments":{"href":"https://api.github.com/repos/RDFLib/rdflib/issues/673/comments"},"review_comments":{"href":"https://api.github.com/repos/RDFLib/rdflib/pulls/673/comments"},"review_comment":{"href":"https://api.github.com/repos/RDFLib/rdflib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RDFLib/rdflib/pulls/673/commits"},"statuses":{"href":"https://api.github.com/repos/RDFLib/rdflib/statuses/87f71daa0a3685b982b350394cde366af41de939"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"joernhees","id":464192,"avatar_url":"https://avatars.githubusercontent.com/u/464192?v=3","gravatar_id":"","url":"https://api.github.com/users/joernhees","html_url":"https://github.com/joernhees","followers_url":"https://api.github.com/users/joernhees/followers","following_url":"https://api.github.com/users/joernhees/following{/other_user}","gists_url":"https://api.github.com/users/joernhees/gists{/gist_id}","starred_url":"https://api.github.com/users/joernhees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joernhees/subscriptions","organizations_url":"https://api.github.com/users/joernhees/orgs","repos_url":"https://api.github.com/users/joernhees/repos","events_url":"https://api.github.com/users/joernhees/events{/privacy}","received_events_url":"https://api.github.com/users/joernhees/received_events","type":"User","site_admin":false},"comments":1,"review_comments":3,"commits":3,"additions":3,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"joernhees"}}