On 16 March 2011 17:22, Olivier Grisel <[email protected]> wrote:
> 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)));
But what happens if I want to query multiple graphs?
I need for instance to query the enhancement graph and the result of
my /kres/reengineer process (another graph) together. This would open
to a variety of use cases, and in general this is how sparql endpoints
work.

Enrico

>
> --
> Olivier
>



-- 
Enrico Daga

--
http://www.enridaga.net
skype: enri-pan

Reply via email to