Name

ld_dir — Adds files to control list set up in the virtuoso.ini file.

Synopsis

ld_dir ( in dir_path varchar ,
in file_mask varchar ,
in target_graph varchar );

Description

Adds files to control list set up in the virtuoso.ini file.

Parameters

dir_path

path to the folder where the files will be loaded

file_mask

SQL like pattern to match against the files in the directory

target_graph

target graph IRI, parsed triples will appear in that graph.

Return Types

The return value is not specified and may be changed in future versions.

Examples

Example24.265.Simple Use

ld_dir ('/data8/2848260', '%.gz', 'http://bsbm.org');

would load the RDF in all files ending in .gz from the directory given as first parameter. The RDF would be loaded in the http://bsbm.org graph.

If NULL is given for the graph, each file may go to a different graph specified in a separate file with the name of the RDF source file plus the extension .graph.

A .graph file contains the target graph URI without any other content or whitespace.