{"action":"created","comment":{"url":"https://api.github.com/repos/dubious-developments/UnSHACLed/pulls/comments/175772755","pull_request_review_id":105356136,"id":175772755,"diff_hunk":"@@ -0,0 +1,1611 @@\n+/* global $SolidTestEnvironment */\n+/**\n+ *\n+ * Project: rdflib.js\n+ *\n+ * File: fetcher.js\n+ *\n+ * Description: contains functions for requesting/fetching/retracting\n+ *  This implements quite a lot of the web architecture.\n+ * A fetcher is bound to a specific knowledge base graph, into which\n+ * it loads stuff and into which it writes its metadata\n+ * @@ The metadata should be optionally a separate graph\n+ *\n+ * - implements semantics of HTTP headers, Internet Content Types\n+ * - selects parsers for rdf/xml, n3, rdfa, grddl\n+ */\n+\n+/**\n+ * Things to test: callbacks on request, refresh, retract\n+ *   loading from HTTP, HTTPS, FTP, FILE, others?\n+ * To do:\n+ * Firing up a mail client for mid:  (message:) URLs\n+ */\n+const log = require('./log')\n+const N3Parser = require('./n3parser')\n+const NamedNode = require('./named-node')\n+const Namespace = require('./namespace')\n+const rdfParse = require('./parse')\n+const parseRDFaDOM = require('./rdfaparser').parseRDFaDOM\n+const RDFParser = require('./rdfxmlparser')\n+const Uri = require('./uri')\n+const Util = require('./util')\n+const serialize = require('./serialize')\n+\n+const fetch = require('solid-auth-client').fetch\n+\n+const Parsable = {\n+  'text/n3': true,\n+  'text/turtle': true,\n+  'application/rdf+xml': true,\n+  'application/xhtml+xml': true,\n+  'text/html': true,\n+  'application/ld+json': true\n+}\n+\n+// This is a minimal set to allow the use of damaged servers if necessary\n+const CONTENT_TYPE_BY_EXT = {\n+  'rdf': 'application/rdf+xml',\n+  'owl': 'application/rdf+xml',\n+  'n3': 'text/n3',\n+  'ttl': 'text/turtle',\n+  'nt': 'text/n3',","path":"src/persistence/rdflib/fetcher.js","position":52,"original_position":52,"commit_id":"6d4f841ac2e9cb04d4d58ab5d6e3e43a4d9b0bf7","original_commit_id":"6d4f841ac2e9cb04d4d58ab5d6e3e43a4d9b0bf7","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Strings must use doublequote. (quotes)](https://app.codacy.com/app/jonathanvdc/UnSHACLed/pullRequest?prid=1449646)","created_at":"2018-03-20T13:54:59Z","updated_at":"2018-03-20T13:54:59Z","html_url":"https://github.com/dubious-developments/UnSHACLed/pull/18#discussion_r175772755","pull_request_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/pulls/18","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/dubious-developments/UnSHACLed/pulls/comments/175772755"},"html":{"href":"https://github.com/dubious-developments/UnSHACLed/pull/18#discussion_r175772755"},"pull_request":{"href":"https://api.github.com/repos/dubious-developments/UnSHACLed/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/dubious-developments/UnSHACLed/pulls/18","id":176033119,"html_url":"https://github.com/dubious-developments/UnSHACLed/pull/18","diff_url":"https://github.com/dubious-developments/UnSHACLed/pull/18.diff","patch_url":"https://github.com/dubious-developments/UnSHACLed/pull/18.patch","issue_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/issues/18","number":18,"state":"open","locked":false,"title":"Start work on conformance","user":{"login":"mweyns","id":34154791,"avatar_url":"https://avatars3.githubusercontent.com/u/34154791?v=4","gravatar_id":"","url":"https://api.github.com/users/mweyns","html_url":"https://github.com/mweyns","followers_url":"https://api.github.com/users/mweyns/followers","following_url":"https://api.github.com/users/mweyns/following{/other_user}","gists_url":"https://api.github.com/users/mweyns/gists{/gist_id}","starred_url":"https://api.github.com/users/mweyns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mweyns/subscriptions","organizations_url":"https://api.github.com/users/mweyns/orgs","repos_url":"https://api.github.com/users/mweyns/repos","events_url":"https://api.github.com/users/mweyns/events{/privacy}","received_events_url":"https://api.github.com/users/mweyns/received_events","type":"User","site_admin":false},"body":"This pull request adds the rdflib.js and shacl.js libraries to the project, with a few minor adjustments to allow validation directly on graph structures (instead of having to parse from strings). It also adds conversion support to the existing Graph class, so that when triples are added they are also immediately available for validation. Also fixed a minor issue where prefixes weren't properly added to the Graph.","created_at":"2018-03-19T21:39:36Z","updated_at":"2018-03-20T13:54:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39d8b27baaff9f57214b0e491088903c7cd0f198","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/pulls/18/commits","review_comments_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/pulls/18/comments","review_comment_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/issues/18/comments","statuses_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/statuses/6d4f841ac2e9cb04d4d58ab5d6e3e43a4d9b0bf7","head":{"label":"mweyns:conformance","ref":"conformance","sha":"6d4f841ac2e9cb04d4d58ab5d6e3e43a4d9b0bf7","user":{"login":"mweyns","id":34154791,"avatar_url":"https://avatars3.githubusercontent.com/u/34154791?v=4","gravatar_id":"","url":"https://api.github.com/users/mweyns","html_url":"https://github.com/mweyns","followers_url":"https://api.github.com/users/mweyns/followers","following_url":"https://api.github.com/users/mweyns/following{/other_user}","gists_url":"https://api.github.com/users/mweyns/gists{/gist_id}","starred_url":"https://api.github.com/users/mweyns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mweyns/subscriptions","organizations_url":"https://api.github.com/users/mweyns/orgs","repos_url":"https://api.github.com/users/mweyns/repos","events_url":"https://api.github.com/users/mweyns/events{/privacy}","received_events_url":"https://api.github.com/users/mweyns/received_events","type":"User","site_admin":false},"repo":{"id":122095401,"name":"UnSHACLed","full_name":"mweyns/UnSHACLed","owner":{"login":"mweyns","id":34154791,"avatar_url":"https://avatars3.githubusercontent.com/u/34154791?v=4","gravatar_id":"","url":"https://api.github.com/users/mweyns","html_url":"https://github.com/mweyns","followers_url":"https://api.github.com/users/mweyns/followers","following_url":"https://api.github.com/users/mweyns/following{/other_user}","gists_url":"https://api.github.com/users/mweyns/gists{/gist_id}","starred_url":"https://api.github.com/users/mweyns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mweyns/subscriptions","organizations_url":"https://api.github.com/users/mweyns/orgs","repos_url":"https://api.github.com/users/mweyns/repos","events_url":"https://api.github.com/users/mweyns/events{/privacy}","received_events_url":"https://api.github.com/users/mweyns/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mweyns/UnSHACLed","description":"A visual editor for SHACL.","fork":true,"url":"https://api.github.com/repos/mweyns/UnSHACLed","forks_url":"https://api.github.com/repos/mweyns/UnSHACLed/forks","keys_url":"https://api.github.com/repos/mweyns/UnSHACLed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mweyns/UnSHACLed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mweyns/UnSHACLed/teams","hooks_url":"https://api.github.com/repos/mweyns/UnSHACLed/hooks","issue_events_url":"https://api.github.com/repos/mweyns/UnSHACLed/issues/events{/number}","events_url":"https://api.github.com/repos/mweyns/UnSHACLed/events","assignees_url":"https://api.github.com/repos/mweyns/UnSHACLed/assignees{/user}","branches_url":"https://api.github.com/repos/mweyns/UnSHACLed/branches{/branch}","tags_url":"https://api.github.com/repos/mweyns/UnSHACLed/tags","blobs_url":"https://api.github.com/repos/mweyns/UnSHACLed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mweyns/UnSHACLed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mweyns/UnSHACLed/git/refs{/sha}","trees_url":"https://api.github.com/repos/mweyns/UnSHACLed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mweyns/UnSHACLed/statuses/{sha}","languages_url":"https://api.github.com/repos/mweyns/UnSHACLed/languages","stargazers_url":"https://api.github.com/repos/mweyns/UnSHACLed/stargazers","contributors_url":"https://api.github.com/repos/mweyns/UnSHACLed/contributors","subscribers_url":"https://api.github.com/repos/mweyns/UnSHACLed/subscribers","subscription_url":"https://api.github.com/repos/mweyns/UnSHACLed/subscription","commits_url":"https://api.github.com/repos/mweyns/UnSHACLed/commits{/sha}","git_commits_url":"https://api.github.com/repos/mweyns/UnSHACLed/git/commits{/sha}","comments_url":"https://api.github.com/repos/mweyns/UnSHACLed/comments{/number}","issue_comment_url":"https://api.github.com/repos/mweyns/UnSHACLed/issues/comments{/number}","contents_url":"https://api.github.com/repos/mweyns/UnSHACLed/contents/{+path}","compare_url":"https://api.github.com/repos/mweyns/UnSHACLed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mweyns/UnSHACLed/merges","archive_url":"https://api.github.com/repos/mweyns/UnSHACLed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mweyns/UnSHACLed/downloads","issues_url":"https://api.github.com/repos/mweyns/UnSHACLed/issues{/number}","pulls_url":"https://api.github.com/repos/mweyns/UnSHACLed/pulls{/number}","milestones_url":"https://api.github.com/repos/mweyns/UnSHACLed/milestones{/number}","notifications_url":"https://api.github.com/repos/mweyns/UnSHACLed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mweyns/UnSHACLed/labels{/name}","releases_url":"https://api.github.com/repos/mweyns/UnSHACLed/releases{/id}","deployments_url":"https://api.github.com/repos/mweyns/UnSHACLed/deployments","created_at":"2018-02-19T17:16:09Z","updated_at":"2018-02-19T17:16:11Z","pushed_at":"2018-03-20T13:51:12Z","git_url":"git://github.com/mweyns/UnSHACLed.git","ssh_url":"git@github.com:mweyns/UnSHACLed.git","clone_url":"https://github.com/mweyns/UnSHACLed.git","svn_url":"https://github.com/mweyns/UnSHACLed","homepage":"","size":1635,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dubious-developments:master","ref":"master","sha":"e26435d4223318c9dfb8398cb017d45578e456d7","user":{"login":"dubious-developments","id":32493225,"avatar_url":"https://avatars1.githubusercontent.com/u/32493225?v=4","gravatar_id":"","url":"https://api.github.com/users/dubious-developments","html_url":"https://github.com/dubious-developments","followers_url":"https://api.github.com/users/dubious-developments/followers","following_url":"https://api.github.com/users/dubious-developments/following{/other_user}","gists_url":"https://api.github.com/users/dubious-developments/gists{/gist_id}","starred_url":"https://api.github.com/users/dubious-developments/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dubious-developments/subscriptions","organizations_url":"https://api.github.com/users/dubious-developments/orgs","repos_url":"https://api.github.com/users/dubious-developments/repos","events_url":"https://api.github.com/users/dubious-developments/events{/privacy}","received_events_url":"https://api.github.com/users/dubious-developments/received_events","type":"Organization","site_admin":false},"repo":{"id":121768003,"name":"UnSHACLed","full_name":"dubious-developments/UnSHACLed","owner":{"login":"dubious-developments","id":32493225,"avatar_url":"https://avatars1.githubusercontent.com/u/32493225?v=4","gravatar_id":"","url":"https://api.github.com/users/dubious-developments","html_url":"https://github.com/dubious-developments","followers_url":"https://api.github.com/users/dubious-developments/followers","following_url":"https://api.github.com/users/dubious-developments/following{/other_user}","gists_url":"https://api.github.com/users/dubious-developments/gists{/gist_id}","starred_url":"https://api.github.com/users/dubious-developments/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dubious-developments/subscriptions","organizations_url":"https://api.github.com/users/dubious-developments/orgs","repos_url":"https://api.github.com/users/dubious-developments/repos","events_url":"https://api.github.com/users/dubious-developments/events{/privacy}","received_events_url":"https://api.github.com/users/dubious-developments/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dubious-developments/UnSHACLed","description":"A visual editor for SHACL.","fork":false,"url":"https://api.github.com/repos/dubious-developments/UnSHACLed","forks_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/forks","keys_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/teams","hooks_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/hooks","issue_events_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/issues/events{/number}","events_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/events","assignees_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/assignees{/user}","branches_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/branches{/branch}","tags_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/tags","blobs_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/git/refs{/sha}","trees_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/statuses/{sha}","languages_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/languages","stargazers_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/stargazers","contributors_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/contributors","subscribers_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/subscribers","subscription_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/subscription","commits_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/commits{/sha}","git_commits_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/git/commits{/sha}","comments_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/comments{/number}","issue_comment_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/issues/comments{/number}","contents_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/contents/{+path}","compare_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/merges","archive_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/downloads","issues_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/issues{/number}","pulls_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/pulls{/number}","milestones_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/milestones{/number}","notifications_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/labels{/name}","releases_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/releases{/id}","deployments_url":"https://api.github.com/repos/dubious-developments/UnSHACLed/deployments","created_at":"2018-02-16T15:43:56Z","updated_at":"2018-03-20T11:43:14Z","pushed_at":"2018-03-20T13:51:14Z","git_url":"git://github.com/dubious-developments/UnSHACLed.git","ssh_url":"git@github.com:dubious-developments/UnSHACLed.git","clone_url":"https://github.com/dubious-developments/UnSHACLed.git","svn_url":"https://github.com/dubious-developments/UnSHACLed","homepage":"","size":1255,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":9,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dubious-developments/UnSHACLed/pulls/18"},"html":{"href":"https://github.com/dubious-developments/UnSHACLed/pull/18"},"issue":{"href":"https://api.github.com/repos/dubious-developments/UnSHACLed/issues/18"},"comments":{"href":"https://api.github.com/repos/dubious-developments/UnSHACLed/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/dubious-developments/UnSHACLed/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/dubious-developments/UnSHACLed/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dubious-developments/UnSHACLed/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/dubious-developments/UnSHACLed/statuses/6d4f841ac2e9cb04d4d58ab5d6e3e43a4d9b0bf7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}