Re: Writing Jena Model to CSV

2016-09-08 Thread lookman sanni
Thanks. That is what I did finally...laying the data down as wanted from a ResultSet. Rgds, On Thu, Sep 8, 2016 at 9:27 AM, Nikolaos Beredimas wrote: > CSV is not a valid RDF serialization format as mentioned (only as a format > for SPARQL results). > > If you want something similar to CSV for

Re: Writing Jena Model to CSV

2016-09-08 Thread Nikolaos Beredimas
CSV is not a valid RDF serialization format as mentioned (only as a format for SPARQL results). If you want something similar to CSV for serializing an RDF Model, try using N-triples. On Thu, Sep 8, 2016 at 10:22 AM, Martynas Jusevičius wrote: > I think CSV is for writing ResultSet (SELECT resu

Re: Writing Jena Model to CSV

2016-09-08 Thread Martynas Jusevičius
I think CSV is for writing ResultSet (SELECT results), not Model (CONSTRUCT/DESCRIBE results). On Wed, 7 Sep 2016 at 23:37, lookman sanni wrote: > Hi all, > > I am trying in vain to write a Jena model to a text file using > RDFDataMgr.write(outputstream, dataset2, lang). > > This works well for

Writing Jena Model to CSV

2016-09-07 Thread lookman sanni
Hi all, I am trying in vain to write a Jena model to a text file using RDFDataMgr.write(outputstream, dataset2, lang). This works well for Lang such as RDFXML, TRIG, TURTLE, NQUADS. However for Lang.CSV, it is firing a RiotException of which I have no idea: *Exception in thread "main" org.apach