You might try using any23 (http://any23.apache.org/) to convert from csv to turtle or other format understood by Jena and then reading that file.
Claude On Thu, Oct 1, 2015 at 8:03 AM, Kim A. Jakobsen <[email protected]> wrote: > Hi > > I am trying to convert some CSV data into rdf. > > My code looks as following: > Model model_csv_array_impl = ModelFactory.createModelForGraph(new > GraphCSV(getDatasetPath()+"/item.dat")); // PropertyTableArrayImpl > Dataset dataset = TDBFactory.createDataset(directory) ; > dataset.begin(ReadWrite.WRITE); > dataset.addNamedModel("http://example/table1", model_csv_array_impl) ; > dataset.commit(); > > My problem is that my CSV file is "|" seperated, how can I tell the parser > what to expect? > Further then I need to tell it my base URI, how do I do that? > > Regards Kim > -- I like: Like Like - The likeliest place on the web <http://like-like.xenei.com> LinkedIn: http://www.linkedin.com/in/claudewarren
