Depanker,
if your query is a string or a Query object:
Query query = QueryFactory.create(querystring) ;
Op op = Algebra.compile(query) ;
and look in the Op object (see the link from Diogo. If it's a simple
query, like
SELECT * {
?s ?p ?o
}
the op will be a OpBGP and you can get the BGP. For more complicated
queries, you'll need to walk the op in some way.
Andy
On 14/04/13 13:38, Diogo FC Patrao wrote:
Hi Depanker
Try the Transformer class; here is some examples:
http://jena.apache.org/documentation/query/manipulating_sparql_using_arq.html
--
diogo patrĂ£o
On Sun, Apr 14, 2013 at 3:01 AM, illusionz <[email protected]> wrote:
Hi,
I am currently creating an app that will extract BGP and based on the BGP's
load the graphs from a custom data source.
Kindly help me with a code snipplet that would return list of BGP's from a
SPARQL query so that I can traverse and load the graphs matching those
patterns.
Regards,
Depanker Sharna