VirtBulkRDFLoaderExampleMultiple Example for Multiple RDF Source Files Upload The following example demonstrates how to upload multiple RDF source files using the Bulk Loading Sequence. Assuming there is a folder with name "tmp" in your FS and it is under a directory specified in the DirsAllowed param defined in your virtuoso ini file. Also assume in the folder "tmp" you have the files: "file1.n3" and "file2.n3", that contain: -- file1.n3 <http://www.openlinksw.com/dataspace/kidehen@openlinksw.com#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://rdfs.org/sioc/ns#User> . <http://www.openlinksw.com/dataspace/kidehen@openlinksw.com#this> <http://rdfs.org/sioc/ns#name> "Kingsley Uyi Idehen" . <http://www.openlinksw.com/dataspace/kidehen@openlinksw.com#this> <http://rdfs.org/sioc/ns#has_function> <http://www.openlinksw.com/dataspace/kidehen@openlinksw.com/briefcase/My%20Web%20Drive#owner> . --file2.n3 <http://www.openlinksw.com/dataspace/kidehen@openlinksw.com#this> <http://rdfs.org/sioc/ns#id> "kidehen@openlinksw.com" . <http://www.openlinksw.com/dataspace/kidehen@openlinksw.com#this> <http://rdfs.org/sioc/ns#link> <http://www.openlinksw.com/dataspace/kidehen@openlinksw.com> . <http://www.openlinksw.com/dataspace/kidehen@openlinksw.com#this> <http://rdfs.org/sioc/ns#account_of> <http://www.openlinksw.com/dataspace/person/kidehen@openlinksw.com#this> . Make sure the Bulk Loading script is executed. Register the files file1.n3 and file2.n3 with graph IRI the triples to go to "http://kidehendata.com#": SQL>ld_dir ('tmp', '*.n3', 'http://kidehendata.com#'); Done. -- 90 msec. Note that if there are other *.n3 files in your folder (tmp), then their content also will go to the location specified by the above graph. Also is recommended files with *. ext.graph to be deleted from the tmp folder. Create in the "tmp" folder an empty file with name: global.graph Edit the global.graph by adding the graph URI, so the content of the file to be: http://kidehendata.com# Finally execute: SQL>rdf_loader_run (); Done. -- 100 msec. As result in the Virtuoso log should be notification of the loading having completed: 10:21:50 PL LOG: Loader started 10:21:50 PL LOG: No more files to load. Loader has finished To check the inserted triples for the given graph, execute: SQL>SPARQL SELECT * FROM <http://kidehendata.com#> WHERE { ?s ?p ?o } ; s p o VARCHAR VARCHAR VARCHAR _______________________________________________________________________________ http://www.openlinksw.com/dataspace/kidehen@openlinksw.com#this http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://rdfs.org/sioc/ns#User http://www.openlinksw.com/dataspace/kidehen@openlinksw.com#this http://rdfs.org/sioc/ns#name Kingsley Uyi Idehen http://www.openlinksw.com/dataspace/kidehen@openlinksw.com#this http://rdfs.org/sioc/ns#has_function http://www.openlinksw.com/dataspace/kidehen@openlinksw.com/briefcase/My%20Web%20Drive#owner http://www.openlinksw.com/dataspace/kidehen@openlinksw.com#this http://rdfs.org/sioc/ns#id kidehen@openlinksw.com http://www.openlinksw.com/dataspace/kidehen@openlinksw.com#this http://rdfs.org/sioc/ns#link http://www.openlinksw.com/dataspace/kidehen@openlinksw.com http://www.openlinksw.com/dataspace/kidehen@openlinksw.com#this http://rdfs.org/sioc/ns#account_of http://www.openlinksw.com/dataspace/person/kidehen@openlinksw.com#this 6 Rows. -- 20 msec.