On 22/05/13 07:24, huma seemab wrote:
First i made ontology using protege.then to extract its construct
e.g.... classes,properties i use jena and sparql...now i want to save
my result in excel file...how can i do this.i try the following code
but it am not getting proper result.Kindly please help me.
That's a lot of code and it's not clear to me what you're trying to
achieve. What is the "the proper result"?
Have you considered writing out CSV - Excel can read CSV files and Jena
writes them directly. ResultSetFormatter.outputAsCSV.
Otherwise, if you want to set Ecel details like column widths and
formatting, not available in CSV, something like the commented out code,
looping over the rows and then columns of the ResultSet, is what I'd expect.
Andy