Virtuoso Open-Source Wiki
Virtuoso Open-Source, OpenLink Data Spaces, and OpenLink Ajax Toolkit
Advanced Search
Help?
Location: / Dashboard / Main / VirtBulkRDFLoader

Bulk Loading of RDF Source Files into one or more Graph IRIs

This document details how large RDF large data sets files can be bulk uploaded into Virtuoso. The data sets can consist of multiple files loaded into a single or multiple graphs.

  1. Execute this script, which contains the Bulk Loader Procedure and Sub-procedures, against the Virtuoso Server using the command line isql program.
  2. Register the file(s) to load by running the following from isql :

    SQL> ld_dir ('<source-filename-or-directory>', '<file name pattern>', 'graph iri');

    e.g.,

    SQL> ld_dir ('/path/to/files', '*.n3', 'http://dbpedia.org');

  3. Setup the Graph IRI names by creating a file of the following form in the source directory where the datasets are located:

    <source-file>.ext.graph

    e.g.,

    my.file.ext.graph

  4. Place the graph IRI in the file, e.g., http://dbpedia.org .
  5. If all RDF source data is to end up in a single Graph IRI, the file should be named global.graph
  6. Finally, perform Bulk Data Load by executing:

    SQL> rdf_loader_run ();

Examples

Powered By Virtuoso