{"action":"created","issue":{"url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/390","labels_url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/390/comments","events_url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/390/events","html_url":"https://github.com/openlink/virtuoso-opensource/issues/390","id":71574648,"number":390,"title":"SPARQL Sesame graph encapsulation","user":{"login":"ale003","id":7249534,"avatar_url":"https://avatars.githubusercontent.com/u/7249534?v=3","gravatar_id":"","url":"https://api.github.com/users/ale003","html_url":"https://github.com/ale003","followers_url":"https://api.github.com/users/ale003/followers","following_url":"https://api.github.com/users/ale003/following{/other_user}","gists_url":"https://api.github.com/users/ale003/gists{/gist_id}","starred_url":"https://api.github.com/users/ale003/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ale003/subscriptions","organizations_url":"https://api.github.com/users/ale003/orgs","repos_url":"https://api.github.com/users/ale003/repos","events_url":"https://api.github.com/users/ale003/events{/privacy}","received_events_url":"https://api.github.com/users/ale003/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-28T12:23:31Z","updated_at":"2015-04-29T12:52:57Z","closed_at":"2015-04-29T12:52:57Z","body":"Hi,\r\nI am using Virtuoso through the Sesame2 driver. I would like to make a SPARQL query to one specific graph without specifying this in the SPARQL FROM construct. Is this possible?\r\n\r\nI was expecting that if I created a VirtuosoRepository by giving explicitly the graphName, all insert and SPARQL queries will be executed only for the specific graph.\r\n\r\nThe problem is that the SPARQL queries are always executed for the default graph (so for all graphs at once).\r\n\r\nIn my application it is very important to keep encapsulated the various graph databases as they can belong to completely different users. Can I do this in Virtuoso?\r\n\r\n\r\nMy code looks like this:\r\nsr = new VirtuosoRepository(jdbcLocation,user,pass,graphName);\r\nsrc = sr.getConnection();\r\nvf = sr.getValueFactory();\r\nsrc.add(subj,pred,obj,graphName);\r\nTupleQuery tQuery = src.prepareTupleQuery(QueryLanguage.SPARQL, queryString,graphName);\r\nTupleQueryResult result = tQuery.evaluate();\r\n--> result contains the result from all graphs!\r\n\r\nThank you for your help!\r\n"},"comment":{"url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/comments/97417553","html_url":"https://github.com/openlink/virtuoso-opensource/issues/390#issuecomment-97417553","issue_url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/390","id":97417553,"user":{"login":"ale003","id":7249534,"avatar_url":"https://avatars.githubusercontent.com/u/7249534?v=3","gravatar_id":"","url":"https://api.github.com/users/ale003","html_url":"https://github.com/ale003","followers_url":"https://api.github.com/users/ale003/followers","following_url":"https://api.github.com/users/ale003/following{/other_user}","gists_url":"https://api.github.com/users/ale003/gists{/gist_id}","starred_url":"https://api.github.com/users/ale003/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ale003/subscriptions","organizations_url":"https://api.github.com/users/ale003/orgs","repos_url":"https://api.github.com/users/ale003/repos","events_url":"https://api.github.com/users/ale003/events{/privacy}","received_events_url":"https://api.github.com/users/ale003/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T12:52:57Z","updated_at":"2015-04-29T12:52:57Z","body":"Ok now it is clear.\r\nI must have lost some piece while compiling sesame with IKVM, I will check.\r\n\r\nThank you again for your help.\r\n"}}