stanbol-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Enrico Daga <enricod...@gmail.com>
Subject Re: Do Stanbol have a global SPARQL endpoint?
Date Wed, 16 Mar 2011 16:27:57 GMT
On 16 March 2011 17:22, Olivier Grisel <olivier.grisel@ensta.org> 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

Mime
View raw message