stanbol-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Grisel <olivier.gri...@ensta.org>
Subject Re: Do Stanbol have a global SPARQL endpoint?
Date Wed, 16 Mar 2011 16:22:36 GMT
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

Mime
View raw message