Print the jena result set in html(servlet/jsp).

Posted by Udayanga on Stack Overflow See other posts from Stack Overflow or by Udayanga
Published on 2010-06-06T17:57:50Z Indexed on 2010/06/06 18:02 UTC
Read the original article Hit count: 357

Filed under:
|

hi, I'm using servlet for manipulating ontology.I got the result of my SPARQL query and I want to display(print) that result in JSP(Servlet).

Following code segment can be used to print the result in console.

. . . com.hp.hpl.jena.query.Query query = QueryFactory.create(queryStr); QueryExecution qe = QueryExecutionFactory.create(query,model); com.hp.hpl.jena.query.ResultSet rs = qe.execSelect(); ResultSetFormatter.out(System.out, rs);

any idea..? Thank in advance!

© Stack Overflow or respective owner

Related posts about jsp

Related posts about jena