The createrdfstoreandloader command analyzes RDF data and creates an empty RDF store whose schema is optimized for the existing RDF data. This command also generates the load files and the commands to load the store from these loader files.
>>-createrdfstoreandloader -storeName---------------------------> >--+-------------------------+--+------------------+------------> '- -objectnames--objNames-' '- -host--hostName-' >--+--------------------+-- -db--dbName-- -user--userName-------> '- -port--portNumber-' >-- -password--password--+----------------------+---------------> '- -schema--schemaName-' >-- -rdfdata--rdfDataFile---------------------------------------> >--+----------------------------------+-------------------------> '- -storeloadfile--loadCommandFile-' >--+----------------------------+-------------------------------> '- -storeschemafile--ddlFile-' >--+----------------------------------------------+------------>< '- -systempredicates--systemPredicatesFileName-'
If you do not specify the objectNames parameter, then system generated table names are used instead.
If you do not specify the -storeloadfile parameter, a file with the name loadCommands.sql is created in the current folder.
The load files are created in the folder where the file with the commands is created.
If you do not specify the -storeschemafile parameter, the DDL scripts file is not created.
createrdfstoreandloader rdfStore1 -host localhost -port 60000 -db DB1
-user db2admin -password XXX -schema db2admin
-rdfdatafile ./myRdfData.nq -storeloadfile ./rdfLoader/load.sql
You must issue the command and parameter names in lowercase.
The directory from which the command is issued must not have a space in its path. The storeloadfile and storeschemafile parameters must not have a space in their path either. On Windows platforms, if any paths that are specified contain a space in the folder or file name, the whole string must be enclosed within double quotation marks.
The Gawk utility required for this command is Versions 4.0 or later.
The Core utility required for this command is Version 8.14 or later.
'Cannot run program "sh": CreateProcess error=2, The system cannot find
the specified file.'
On Windows platforms, you can start the createrdfStoreAndLoader command either from a CygWin command prompt or default command prompt. When using a CygWin command prompt, all file paths (-rdfdata, -storeloadfile, -storeschemafile, -objectnames) must not include the 'cygdrive' prefix. Instead use a Windows path such as C:\.....