I am going to use Apache Jena and it takes RDF as the input format. But I've data in the CSV format. I researched a lot and couldn't find a way to convert it. Does anyone know how to do that efficiently.
I have gone thru tools like xml123 but the download link wasn't working.
Using jena-arq and jena-csv (both v3.0.1) the following way is working for me:
The input (test.csv):
The output (rdf in turtle):
See official doc jena-csv
UPDATE:
Starting jena-3.10.0 jena-csv has been retired. The last jena-csv release is 3.9.0. Instead you can use any other csv2rdf converters. For example, tarql.
A quick demonstration example for
com.github.tarql:tarqlversionv1.2(obtained through jitpack.io - it seems, there is no maven-central release):This snippet will generate the following RDF: