One should probably extend / adapt the JAX-RS SPARQL resource of the
enhancers to point to other graph ids as needed. One could make a new
JAX-RS resources such as /graph/{graphId}/sparql to build dynamically
sparql endpoint for all the clerezza graphs registered in stanbol for
instance:
In the class SparqlQueryResource, instead of the hard-coded:
Object result = tcManager.executeSparqlQuery(query,
store.getEnhancementGraph());
One could have something like:
Object result = tcManager.executeSparqlQuery(query,
tcManager.getGraph(new UriRef("urn:graph:" + graphId)));
--
Olivier