{"action":"created","issue":{"url":"https://api.github.com/repos/marklogic/marklogic-sesame/issues/113","labels_url":"https://api.github.com/repos/marklogic/marklogic-sesame/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/marklogic/marklogic-sesame/issues/113/comments","events_url":"https://api.github.com/repos/marklogic/marklogic-sesame/issues/113/events","html_url":"https://github.com/marklogic/marklogic-sesame/issues/113","id":100941199,"number":113,"title":"Ability to apply rulesets across multiple graphs","user":{"login":"srinathgit","id":5034960,"avatar_url":"https://avatars.githubusercontent.com/u/5034960?v=3","gravatar_id":"","url":"https://api.github.com/users/srinathgit","html_url":"https://github.com/srinathgit","followers_url":"https://api.github.com/users/srinathgit/followers","following_url":"https://api.github.com/users/srinathgit/following{/other_user}","gists_url":"https://api.github.com/users/srinathgit/gists{/gist_id}","starred_url":"https://api.github.com/users/srinathgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srinathgit/subscriptions","organizations_url":"https://api.github.com/users/srinathgit/orgs","repos_url":"https://api.github.com/users/srinathgit/repos","events_url":"https://api.github.com/users/srinathgit/events{/privacy}","received_events_url":"https://api.github.com/users/srinathgit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marklogic/marklogic-sesame/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/marklogic/marklogic-sesame/labels/minor","name":"minor","color":"0052cc"},{"url":"https://api.github.com/repos/marklogic/marklogic-sesame/labels/new","name":"new","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"xquery","id":685000,"avatar_url":"https://avatars.githubusercontent.com/u/685000?v=3","gravatar_id":"","url":"https://api.github.com/users/xquery","html_url":"https://github.com/xquery","followers_url":"https://api.github.com/users/xquery/followers","following_url":"https://api.github.com/users/xquery/following{/other_user}","gists_url":"https://api.github.com/users/xquery/gists{/gist_id}","starred_url":"https://api.github.com/users/xquery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xquery/subscriptions","organizations_url":"https://api.github.com/users/xquery/orgs","repos_url":"https://api.github.com/users/xquery/repos","events_url":"https://api.github.com/users/xquery/events{/privacy}","received_events_url":"https://api.github.com/users/xquery/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/marklogic/marklogic-sesame/milestones/1","html_url":"https://github.com/marklogic/marklogic-sesame/milestones/marklogic-sesame-1.0.1","labels_url":"https://api.github.com/repos/marklogic/marklogic-sesame/milestones/1/labels","id":1245801,"number":1,"title":"marklogic-sesame-1.0.1","description":"The 1.0.1 release.","creator":{"login":"nwalsh-ml","id":8441564,"avatar_url":"https://avatars.githubusercontent.com/u/8441564?v=3","gravatar_id":"","url":"https://api.github.com/users/nwalsh-ml","html_url":"https://github.com/nwalsh-ml","followers_url":"https://api.github.com/users/nwalsh-ml/followers","following_url":"https://api.github.com/users/nwalsh-ml/following{/other_user}","gists_url":"https://api.github.com/users/nwalsh-ml/gists{/gist_id}","starred_url":"https://api.github.com/users/nwalsh-ml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwalsh-ml/subscriptions","organizations_url":"https://api.github.com/users/nwalsh-ml/orgs","repos_url":"https://api.github.com/users/nwalsh-ml/repos","events_url":"https://api.github.com/users/nwalsh-ml/events{/privacy}","received_events_url":"https://api.github.com/users/nwalsh-ml/received_events","type":"User","site_admin":false},"open_issues":36,"closed_issues":7,"state":"open","created_at":"2015-08-07T16:56:00Z","updated_at":"2015-08-14T19:57:34Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-08-14T05:57:47Z","updated_at":"2015-08-17T03:12:45Z","closed_at":null,"body":"Is it possible from sesame to apply rulesets across multiple graphs. Something similar to\r\n\r\nxquery version \"1.0-ml\";\r\nlet $store := sem:ruleset-store((\"equivalentClass.rules\"), sem:store((), cts:collection-query((\"Graph1\", \"Graph2\"))))\r\nlet $query := ' SELECT * WHERE { ?s ?p ?o . } '\r\nlet $results := sem:sparql($query, (), (), $store)\r\nreturn $results\r\n"},"comment":{"url":"https://api.github.com/repos/marklogic/marklogic-sesame/issues/comments/131665499","html_url":"https://github.com/marklogic/marklogic-sesame/issues/113#issuecomment-131665499","issue_url":"https://api.github.com/repos/marklogic/marklogic-sesame/issues/113","id":131665499,"user":{"login":"srinathgit","id":5034960,"avatar_url":"https://avatars.githubusercontent.com/u/5034960?v=3","gravatar_id":"","url":"https://api.github.com/users/srinathgit","html_url":"https://github.com/srinathgit","followers_url":"https://api.github.com/users/srinathgit/followers","following_url":"https://api.github.com/users/srinathgit/following{/other_user}","gists_url":"https://api.github.com/users/srinathgit/gists{/gist_id}","starred_url":"https://api.github.com/users/srinathgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srinathgit/subscriptions","organizations_url":"https://api.github.com/users/srinathgit/orgs","repos_url":"https://api.github.com/users/srinathgit/repos","events_url":"https://api.github.com/users/srinathgit/events{/privacy}","received_events_url":"https://api.github.com/users/srinathgit/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T03:12:45Z","updated_at":"2015-08-17T03:12:45Z","body":"Thanks Charles..  I think I should have phrased the issue better and shouldn't have brought the combination query into the picture.  So the issue is as follows:\r\n\r\nThere are only 2 graphs in the database (Graph1 and Graph2 with data specified in my last comment). In order apply the rulesets on the entire database, in xquery,  I run the following:\r\n\r\nxquery version \"1.0-ml\";\r\nlet $store := sem:ruleset-store((\"rdfs-plus-full.rules\"), sem:store(()))\r\nlet $query := '\r\nSELECT (COUNT(*) as ?count)\r\nWHERE\r\n{ ?s ?p ?o . } '\r\nlet $results := sem:sparql($query, (), (), $store)\r\nreturn $results\r\n\r\nThe count is 374.\r\n\r\nWhen I try to do the same thing from marklogic-sesame , I use the following snippet\r\n\r\n String query = \"select (count (?s)  as ?totalcount)  where {?s ?p ?o .} \";\r\n TupleQuery tupleQuery =  testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n ((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.RDFS_PLUS_FULL);\r\n TupleQueryResult result = tupleQuery.evaluate();\r\n\r\nOn iterating through the result set I see that the count is 353.\r\n\r\nSo this is the discrepancy I see."}}