{"action":"created","comment":{"url":"https://api.github.com/repos/knowsys/vlog4j/pulls/comments/225143111","pull_request_review_id":164583643,"id":225143111,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTE0MzExMQ==","diff_hunk":"@@ -0,0 +1,167 @@\n+package org.semanticweb.vlog4j.examples.core;\n+\n+/*-\n+ * #%L\n+ * VLog4j Examples\n+ * %%\n+ * Copyright (C) 2018 VLog4j Developers\n+ * %%\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *      http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ * #L%\n+ */\n+\n+import static org.semanticweb.vlog4j.core.model.implementation.Expressions.makeAtom;\n+import static org.semanticweb.vlog4j.core.model.implementation.Expressions.makeConjunction;\n+import static org.semanticweb.vlog4j.core.model.implementation.Expressions.makeConstant;\n+import static org.semanticweb.vlog4j.core.model.implementation.Expressions.makePredicate;\n+import static org.semanticweb.vlog4j.core.model.implementation.Expressions.makeRule;\n+import static org.semanticweb.vlog4j.core.model.implementation.Expressions.makeVariable;\n+\n+import java.io.File;\n+import java.io.IOException;\n+\n+import org.semanticweb.vlog4j.core.model.api.Atom;\n+import org.semanticweb.vlog4j.core.model.api.Constant;\n+import org.semanticweb.vlog4j.core.model.api.Predicate;\n+import org.semanticweb.vlog4j.core.model.api.Rule;\n+import org.semanticweb.vlog4j.core.model.api.Variable;\n+import org.semanticweb.vlog4j.core.reasoner.DataSource;\n+import org.semanticweb.vlog4j.core.reasoner.Reasoner;\n+import org.semanticweb.vlog4j.core.reasoner.exceptions.EdbIdbSeparationException;\n+import org.semanticweb.vlog4j.core.reasoner.exceptions.IncompatiblePredicateArityException;\n+import org.semanticweb.vlog4j.core.reasoner.exceptions.ReasonerStateException;\n+import org.semanticweb.vlog4j.core.reasoner.implementation.CsvFileDataSource;\n+import org.semanticweb.vlog4j.examples.ExamplesUtils;\n+\n+/**\n+ * This example shows how facts can be imported from {@code .csv.gz} files, and\n+ * also how query answers can be exported to {@code .csv} files. <i>Note that\n+ * you can also import from {@code .csv} files.</i>\n+ *\n+ * For importing, a {@link CsvFileDataSource} that contains a path to the\n+ * corresponding {@code .csv.gz} file must be created. A {@code .csv} file\n+ * contains facts over exactly one predicate in the CSV format, while a\n+ * {@code .csv.gz} file is the gzipped version of such a {@code .csv} file. For\n+ * exporting, a path to the output {@code .csv} file must be specified.","path":"vlog4j-examples/src/main/java/org/semanticweb/vlog4j/examples/core/AddDataFromCsvFile.java","position":55,"original_position":55,"commit_id":"9d83efb71b2b4d6848b35291d1b010af63b24773","original_commit_id":"9d83efb71b2b4d6848b35291d1b010af63b24773","user":{"login":"irina-dragoste","id":26414082,"node_id":"MDQ6VXNlcjI2NDE0MDgy","avatar_url":"https://avatars2.githubusercontent.com/u/26414082?v=4","gravatar_id":"","url":"https://api.github.com/users/irina-dragoste","html_url":"https://github.com/irina-dragoste","followers_url":"https://api.github.com/users/irina-dragoste/followers","following_url":"https://api.github.com/users/irina-dragoste/following{/other_user}","gists_url":"https://api.github.com/users/irina-dragoste/gists{/gist_id}","starred_url":"https://api.github.com/users/irina-dragoste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irina-dragoste/subscriptions","organizations_url":"https://api.github.com/users/irina-dragoste/orgs","repos_url":"https://api.github.com/users/irina-dragoste/repos","events_url":"https://api.github.com/users/irina-dragoste/events{/privacy}","received_events_url":"https://api.github.com/users/irina-dragoste/received_events","type":"User","site_admin":false},"body":"Before \"For exporting...\" I would add, in a new paragraph: \"Also, facts resulting from answering a query can be exported into .csv files. \"","created_at":"2018-10-15T12:18:58Z","updated_at":"2018-10-15T12:38:04Z","html_url":"https://github.com/knowsys/vlog4j/pull/51#discussion_r225143111","pull_request_url":"https://api.github.com/repos/knowsys/vlog4j/pulls/51","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/knowsys/vlog4j/pulls/comments/225143111"},"html":{"href":"https://github.com/knowsys/vlog4j/pull/51#discussion_r225143111"},"pull_request":{"href":"https://api.github.com/repos/knowsys/vlog4j/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/knowsys/vlog4j/pulls/51","id":221356542,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxMzU2NTQy","html_url":"https://github.com/knowsys/vlog4j/pull/51","diff_url":"https://github.com/knowsys/vlog4j/pull/51.diff","patch_url":"https://github.com/knowsys/vlog4j/pull/51.patch","issue_url":"https://api.github.com/repos/knowsys/vlog4j/issues/51","number":51,"state":"open","locked":false,"title":"Added support for N-Triples and gzipped N-Triples","user":{"login":"chlewe","id":18557028,"node_id":"MDQ6VXNlcjE4NTU3MDI4","avatar_url":"https://avatars2.githubusercontent.com/u/18557028?v=4","gravatar_id":"","url":"https://api.github.com/users/chlewe","html_url":"https://github.com/chlewe","followers_url":"https://api.github.com/users/chlewe/followers","following_url":"https://api.github.com/users/chlewe/following{/other_user}","gists_url":"https://api.github.com/users/chlewe/gists{/gist_id}","starred_url":"https://api.github.com/users/chlewe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chlewe/subscriptions","organizations_url":"https://api.github.com/users/chlewe/orgs","repos_url":"https://api.github.com/users/chlewe/repos","events_url":"https://api.github.com/users/chlewe/events{/privacy}","received_events_url":"https://api.github.com/users/chlewe/received_events","type":"User","site_admin":false},"body":"Closes #45. _(For a more detailed description of the new features, please refer to the corresponding issue.)_\r\n\r\n- Added `RdfFileDataSource`.\r\n- Tested `RdfFileDataSource` on the _vlog java-bindings_ level, on the _vlog4j_ level, as well as on the __vlog4j_level_.\r\n- Wrote an example that uses `.nt.gz` files.\r\n- Did some minor code refactoring.","created_at":"2018-10-09T08:53:26Z","updated_at":"2018-10-15T12:38:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"206be21bf3a589aac31f3978eee8606b388d0f77","assignee":{"login":"irina-dragoste","id":26414082,"node_id":"MDQ6VXNlcjI2NDE0MDgy","avatar_url":"https://avatars2.githubusercontent.com/u/26414082?v=4","gravatar_id":"","url":"https://api.github.com/users/irina-dragoste","html_url":"https://github.com/irina-dragoste","followers_url":"https://api.github.com/users/irina-dragoste/followers","following_url":"https://api.github.com/users/irina-dragoste/following{/other_user}","gists_url":"https://api.github.com/users/irina-dragoste/gists{/gist_id}","starred_url":"https://api.github.com/users/irina-dragoste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irina-dragoste/subscriptions","organizations_url":"https://api.github.com/users/irina-dragoste/orgs","repos_url":"https://api.github.com/users/irina-dragoste/repos","events_url":"https://api.github.com/users/irina-dragoste/events{/privacy}","received_events_url":"https://api.github.com/users/irina-dragoste/received_events","type":"User","site_admin":false},"assignees":[{"login":"irina-dragoste","id":26414082,"node_id":"MDQ6VXNlcjI2NDE0MDgy","avatar_url":"https://avatars2.githubusercontent.com/u/26414082?v=4","gravatar_id":"","url":"https://api.github.com/users/irina-dragoste","html_url":"https://github.com/irina-dragoste","followers_url":"https://api.github.com/users/irina-dragoste/followers","following_url":"https://api.github.com/users/irina-dragoste/following{/other_user}","gists_url":"https://api.github.com/users/irina-dragoste/gists{/gist_id}","starred_url":"https://api.github.com/users/irina-dragoste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irina-dragoste/subscriptions","organizations_url":"https://api.github.com/users/irina-dragoste/orgs","repos_url":"https://api.github.com/users/irina-dragoste/repos","events_url":"https://api.github.com/users/irina-dragoste/events{/privacy}","received_events_url":"https://api.github.com/users/irina-dragoste/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":854675814,"node_id":"MDU6TGFiZWw4NTQ2NzU4MTQ=","url":"https://api.github.com/repos/knowsys/vlog4j/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/knowsys/vlog4j/pulls/51/commits","review_comments_url":"https://api.github.com/repos/knowsys/vlog4j/pulls/51/comments","review_comment_url":"https://api.github.com/repos/knowsys/vlog4j/pulls/comments{/number}","comments_url":"https://api.github.com/repos/knowsys/vlog4j/issues/51/comments","statuses_url":"https://api.github.com/repos/knowsys/vlog4j/statuses/9d83efb71b2b4d6848b35291d1b010af63b24773","head":{"label":"knowsys:rdf-extensions","ref":"rdf-extensions","sha":"9d83efb71b2b4d6848b35291d1b010af63b24773","user":{"login":"knowsys","id":40864390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwODY0Mzkw","avatar_url":"https://avatars2.githubusercontent.com/u/40864390?v=4","gravatar_id":"","url":"https://api.github.com/users/knowsys","html_url":"https://github.com/knowsys","followers_url":"https://api.github.com/users/knowsys/followers","following_url":"https://api.github.com/users/knowsys/following{/other_user}","gists_url":"https://api.github.com/users/knowsys/gists{/gist_id}","starred_url":"https://api.github.com/users/knowsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knowsys/subscriptions","organizations_url":"https://api.github.com/users/knowsys/orgs","repos_url":"https://api.github.com/users/knowsys/repos","events_url":"https://api.github.com/users/knowsys/events{/privacy}","received_events_url":"https://api.github.com/users/knowsys/received_events","type":"Organization","site_admin":false},"repo":{"id":123681471,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM2ODE0NzE=","name":"vlog4j","full_name":"knowsys/vlog4j","private":false,"owner":{"login":"knowsys","id":40864390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwODY0Mzkw","avatar_url":"https://avatars2.githubusercontent.com/u/40864390?v=4","gravatar_id":"","url":"https://api.github.com/users/knowsys","html_url":"https://github.com/knowsys","followers_url":"https://api.github.com/users/knowsys/followers","following_url":"https://api.github.com/users/knowsys/following{/other_user}","gists_url":"https://api.github.com/users/knowsys/gists{/gist_id}","starred_url":"https://api.github.com/users/knowsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knowsys/subscriptions","organizations_url":"https://api.github.com/users/knowsys/orgs","repos_url":"https://api.github.com/users/knowsys/repos","events_url":"https://api.github.com/users/knowsys/events{/privacy}","received_events_url":"https://api.github.com/users/knowsys/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/knowsys/vlog4j","description":"Java library based on the VLog rule engine","fork":false,"url":"https://api.github.com/repos/knowsys/vlog4j","forks_url":"https://api.github.com/repos/knowsys/vlog4j/forks","keys_url":"https://api.github.com/repos/knowsys/vlog4j/keys{/key_id}","collaborators_url":"https://api.github.com/repos/knowsys/vlog4j/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/knowsys/vlog4j/teams","hooks_url":"https://api.github.com/repos/knowsys/vlog4j/hooks","issue_events_url":"https://api.github.com/repos/knowsys/vlog4j/issues/events{/number}","events_url":"https://api.github.com/repos/knowsys/vlog4j/events","assignees_url":"https://api.github.com/repos/knowsys/vlog4j/assignees{/user}","branches_url":"https://api.github.com/repos/knowsys/vlog4j/branches{/branch}","tags_url":"https://api.github.com/repos/knowsys/vlog4j/tags","blobs_url":"https://api.github.com/repos/knowsys/vlog4j/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/knowsys/vlog4j/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/knowsys/vlog4j/git/refs{/sha}","trees_url":"https://api.github.com/repos/knowsys/vlog4j/git/trees{/sha}","statuses_url":"https://api.github.com/repos/knowsys/vlog4j/statuses/{sha}","languages_url":"https://api.github.com/repos/knowsys/vlog4j/languages","stargazers_url":"https://api.github.com/repos/knowsys/vlog4j/stargazers","contributors_url":"https://api.github.com/repos/knowsys/vlog4j/contributors","subscribers_url":"https://api.github.com/repos/knowsys/vlog4j/subscribers","subscription_url":"https://api.github.com/repos/knowsys/vlog4j/subscription","commits_url":"https://api.github.com/repos/knowsys/vlog4j/commits{/sha}","git_commits_url":"https://api.github.com/repos/knowsys/vlog4j/git/commits{/sha}","comments_url":"https://api.github.com/repos/knowsys/vlog4j/comments{/number}","issue_comment_url":"https://api.github.com/repos/knowsys/vlog4j/issues/comments{/number}","contents_url":"https://api.github.com/repos/knowsys/vlog4j/contents/{+path}","compare_url":"https://api.github.com/repos/knowsys/vlog4j/compare/{base}...{head}","merges_url":"https://api.github.com/repos/knowsys/vlog4j/merges","archive_url":"https://api.github.com/repos/knowsys/vlog4j/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/knowsys/vlog4j/downloads","issues_url":"https://api.github.com/repos/knowsys/vlog4j/issues{/number}","pulls_url":"https://api.github.com/repos/knowsys/vlog4j/pulls{/number}","milestones_url":"https://api.github.com/repos/knowsys/vlog4j/milestones{/number}","notifications_url":"https://api.github.com/repos/knowsys/vlog4j/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/knowsys/vlog4j/labels{/name}","releases_url":"https://api.github.com/repos/knowsys/vlog4j/releases{/id}","deployments_url":"https://api.github.com/repos/knowsys/vlog4j/deployments","created_at":"2018-03-03T10:21:45Z","updated_at":"2018-10-10T13:17:19Z","pushed_at":"2018-10-13T17:05:15Z","git_url":"git://github.com/knowsys/vlog4j.git","ssh_url":"git@github.com:knowsys/vlog4j.git","clone_url":"https://github.com/knowsys/vlog4j.git","svn_url":"https://github.com/knowsys/vlog4j","homepage":null,"size":33461,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1,"open_issues":18,"watchers":1,"default_branch":"master"}},"base":{"label":"knowsys:master","ref":"master","sha":"62e8ea8461493db810e607d2d50a36017911ab82","user":{"login":"knowsys","id":40864390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwODY0Mzkw","avatar_url":"https://avatars2.githubusercontent.com/u/40864390?v=4","gravatar_id":"","url":"https://api.github.com/users/knowsys","html_url":"https://github.com/knowsys","followers_url":"https://api.github.com/users/knowsys/followers","following_url":"https://api.github.com/users/knowsys/following{/other_user}","gists_url":"https://api.github.com/users/knowsys/gists{/gist_id}","starred_url":"https://api.github.com/users/knowsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knowsys/subscriptions","organizations_url":"https://api.github.com/users/knowsys/orgs","repos_url":"https://api.github.com/users/knowsys/repos","events_url":"https://api.github.com/users/knowsys/events{/privacy}","received_events_url":"https://api.github.com/users/knowsys/received_events","type":"Organization","site_admin":false},"repo":{"id":123681471,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM2ODE0NzE=","name":"vlog4j","full_name":"knowsys/vlog4j","private":false,"owner":{"login":"knowsys","id":40864390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwODY0Mzkw","avatar_url":"https://avatars2.githubusercontent.com/u/40864390?v=4","gravatar_id":"","url":"https://api.github.com/users/knowsys","html_url":"https://github.com/knowsys","followers_url":"https://api.github.com/users/knowsys/followers","following_url":"https://api.github.com/users/knowsys/following{/other_user}","gists_url":"https://api.github.com/users/knowsys/gists{/gist_id}","starred_url":"https://api.github.com/users/knowsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knowsys/subscriptions","organizations_url":"https://api.github.com/users/knowsys/orgs","repos_url":"https://api.github.com/users/knowsys/repos","events_url":"https://api.github.com/users/knowsys/events{/privacy}","received_events_url":"https://api.github.com/users/knowsys/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/knowsys/vlog4j","description":"Java library based on the VLog rule engine","fork":false,"url":"https://api.github.com/repos/knowsys/vlog4j","forks_url":"https://api.github.com/repos/knowsys/vlog4j/forks","keys_url":"https://api.github.com/repos/knowsys/vlog4j/keys{/key_id}","collaborators_url":"https://api.github.com/repos/knowsys/vlog4j/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/knowsys/vlog4j/teams","hooks_url":"https://api.github.com/repos/knowsys/vlog4j/hooks","issue_events_url":"https://api.github.com/repos/knowsys/vlog4j/issues/events{/number}","events_url":"https://api.github.com/repos/knowsys/vlog4j/events","assignees_url":"https://api.github.com/repos/knowsys/vlog4j/assignees{/user}","branches_url":"https://api.github.com/repos/knowsys/vlog4j/branches{/branch}","tags_url":"https://api.github.com/repos/knowsys/vlog4j/tags","blobs_url":"https://api.github.com/repos/knowsys/vlog4j/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/knowsys/vlog4j/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/knowsys/vlog4j/git/refs{/sha}","trees_url":"https://api.github.com/repos/knowsys/vlog4j/git/trees{/sha}","statuses_url":"https://api.github.com/repos/knowsys/vlog4j/statuses/{sha}","languages_url":"https://api.github.com/repos/knowsys/vlog4j/languages","stargazers_url":"https://api.github.com/repos/knowsys/vlog4j/stargazers","contributors_url":"https://api.github.com/repos/knowsys/vlog4j/contributors","subscribers_url":"https://api.github.com/repos/knowsys/vlog4j/subscribers","subscription_url":"https://api.github.com/repos/knowsys/vlog4j/subscription","commits_url":"https://api.github.com/repos/knowsys/vlog4j/commits{/sha}","git_commits_url":"https://api.github.com/repos/knowsys/vlog4j/git/commits{/sha}","comments_url":"https://api.github.com/repos/knowsys/vlog4j/comments{/number}","issue_comment_url":"https://api.github.com/repos/knowsys/vlog4j/issues/comments{/number}","contents_url":"https://api.github.com/repos/knowsys/vlog4j/contents/{+path}","compare_url":"https://api.github.com/repos/knowsys/vlog4j/compare/{base}...{head}","merges_url":"https://api.github.com/repos/knowsys/vlog4j/merges","archive_url":"https://api.github.com/repos/knowsys/vlog4j/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/knowsys/vlog4j/downloads","issues_url":"https://api.github.com/repos/knowsys/vlog4j/issues{/number}","pulls_url":"https://api.github.com/repos/knowsys/vlog4j/pulls{/number}","milestones_url":"https://api.github.com/repos/knowsys/vlog4j/milestones{/number}","notifications_url":"https://api.github.com/repos/knowsys/vlog4j/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/knowsys/vlog4j/labels{/name}","releases_url":"https://api.github.com/repos/knowsys/vlog4j/releases{/id}","deployments_url":"https://api.github.com/repos/knowsys/vlog4j/deployments","created_at":"2018-03-03T10:21:45Z","updated_at":"2018-10-10T13:17:19Z","pushed_at":"2018-10-13T17:05:15Z","git_url":"git://github.com/knowsys/vlog4j.git","ssh_url":"git@github.com:knowsys/vlog4j.git","clone_url":"https://github.com/knowsys/vlog4j.git","svn_url":"https://github.com/knowsys/vlog4j","homepage":null,"size":33461,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1,"open_issues":18,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/knowsys/vlog4j/pulls/51"},"html":{"href":"https://github.com/knowsys/vlog4j/pull/51"},"issue":{"href":"https://api.github.com/repos/knowsys/vlog4j/issues/51"},"comments":{"href":"https://api.github.com/repos/knowsys/vlog4j/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/knowsys/vlog4j/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/knowsys/vlog4j/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/knowsys/vlog4j/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/knowsys/vlog4j/statuses/9d83efb71b2b4d6848b35291d1b010af63b24773"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"irina-dragoste"}}