SPARQL Query Rendering with SERVICE Keyword Does'nt Work Sesame 2.8.6

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SPARQL Query Rendering with SERVICE Keyword Does'nt Work Sesame 2.8.6

saleem
This post has NOT been accepted by the mailing list yet.
This post was updated on .
Hi,

I am trying to parse a SPARQL query with SERVICE clause and render it back using the following code.

         String queryStr = "SELECT * { SERVICE <http://foo> { ?s ?p ?o } }";
        SPARQLParser parser = new SPARQLParser();
        ParsedQuery query = parser.parseQuery(queryStr, null);
        System.out.println("Parsed query: " + query);  

       SPARQLQueryRenderer renderer = new SPARQLQueryRenderer();  
       String  roundtrip =  renderer.render(query);
        System.out.println("Print Original Query: " + roundtrip);

The output is the following

select ?s ?p ?o
where {
  ?s ?p ?o.
}

The SERVICE Clause no more exist. Any idea how can i solve this problem? or is it a bug with Sesame 2.8.6? Thanks in advance.

Best,
Saleem

Best,
Saleem