I want to add triple data to my Model created in Oracle DB using Jena Code. There are millions of records to be added. Can anybody provide me sample code for Insert/update triple using Jena. I am using Oracle 11g release 2. I am looking for something like bulk upload.
You can use tools like http://www.mindswap.org/~anant/quidicrc/ or http://xlwrap.sourceforge.net/ to convert
the CSV to RDF. Once you have the RDF, it is easy to bulk load it into Oracle.
Note that I haven't used the aforementioned tools. So please sanity check the generated RDF to make sure
conversion is 100% correct.
Alternatively, you can read the CSV file yourself using a Java code.
For each line, you generate a triple and then add the triple to an in-memory Jena model.
After you are done with the whole file, addInBulk the whole Jena model to Oracle.
Thanks for your answer. Can you provide any sample code how to use addInBulk () function. I will try creating in-memory model reading the csv using java and then want to load complete data in one time. Can you share any sample code for bulk loading of data.