1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
-
- This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
- project.
-
- Copyright (C) 1998-2018 OpenLink Software
-
- This project is free software; you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by the
- Free Software Foundation; only version 2 of the License, dated June 1991.
-
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-->
<refentry id="fn_ld_dir">
<refmeta>
<refentrytitle>ld_dir</refentrytitle>
<refmiscinfo>rdf</refmiscinfo>
</refmeta>
<refnamediv>
<refname>ld_dir</refname>
<refpurpose>Adds files to control list set up in the virtuoso.ini file.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis id="fsyn_ld_dir">
<funcprototype id="fproto_ld_dir">
<funcdef><function>ld_dir</function></funcdef>
<paramdef>in <parameter>dir_path</parameter> varchar</paramdef>
<paramdef>in <parameter>file_mask</parameter> varchar</paramdef>
<paramdef>in <parameter>target_graph</parameter> varchar</paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="desc_ld_dir">
<title>Description</title>
<para>Adds files to control list set up in the virtuoso.ini file.</para>
</refsect1>
<refsect1 id="params_ld_dir">
<title>Parameters</title>
<refsect2><title>dir_path</title>
<para>path to the folder where the files will be loaded</para>
</refsect2>
<refsect2><title>file_mask</title>
<para>SQL like pattern to match against the files in the directory</para>
</refsect2>
<refsect2><title>target_graph</title>
<para>target graph IRI, parsed triples will appear in that graph.</para>
</refsect2>
</refsect1>
<refsect1 id="ret_ld_dir"><title>Return Types</title>
<para>The return value is not specified and may be changed in future versions.</para>
</refsect1>
<!-- <refsect1 id="errors_ld_dir">
<title>Errors</title>
<para>This function can generate the following errors:</para>
<errorcode></errorcode>
</refsect1>
-->
<refsect1 id="examples_ld_dir">
<title>Examples</title>
<example id="ex_ld_dir"><title>Simple Use</title>
<programlisting><![CDATA[
ld_dir ('/data8/2848260', '%.gz', 'http://bsbm.org');
]]></programlisting>
<para>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.</para>
<para>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.</para>
<para>A .graph file contains the target graph URI without any other content or whitespace.</para>
</example>
</refsect1>
<refsect1 id="seealso_ld_dir">
<title>See Also</title>
<para><link linkend="fn_rdf_audit_metadata"><function>DB.DBA.RDF_AUDIT_METADATA()</function></link></para>
<para><link linkend="fn_rdf_backup_metadata"><function>DB.DBA.RDF_BACKUP_METADATA()</function></link></para>
<para><link linkend="fn_rdf_load_rdfxml"><function>DB.DBA.RDF_LOAD_RDFXML()</function></link></para>
<para><link linkend="fn_rdf_load_rdfxml_mt"><function>DB.DBA.RDF_LOAD_RDFXML_MT()</function></link></para>
<para><link linkend="fn_ttlp_mt"><function>DB.DBA.TTLP_MT()</function></link></para>
<para><link linkend="fn_ttlp"><function>DB.DBA.TTLP()</function></link></para>
<para><link linkend="fn_ttlp_mt_local_file"><function>DB.DBA.TTLP_MT_LOCAL_FILE()</function></link></para>
<para><link linkend="rdfperfloadingutility">RDF Bulk Load Utility</link></para>
</refsect1>
</refentry>
|