In DB2® Version 10.1
Fix Pack 2 and later fix packs, the loadrdfstore command
provides a mechanism to conveniently load few triples to an existing
RDF store.
Command syntax
>>-loadrdfstore--storeName--+------------------+---------------->
'- -host--hostName-'
>--+--------------------+-- -db--dbName-- -user--userName------->
'- -port--portNumber-'
>-- -password--password--+------------------+--+----------+----><
'- -schema--schema-' '-loadFile-'
Command parameters
- storeName
- Specifies the RDF store to be queried.
- -host hostNames
- Specifies the host where the database is located.
- -port portNumber
- Specifies the port number of the database.
- -db dbName
- Specifies the database to which a connection is established.
- -user userName
- Specifies the authorization name that is used to establish the
connection.
- -password password
- Specifies the password that is used to establish the connection.
- -schema schemaName
- Specifies the database schema for the RDF store.
- loadFile
- Specifies the file that contains the triples to be loaded. Files
of type nquad, ntriple, or rdfxml. Ntriple and rdfxml are loaded to
the default graph only.
- The extension for nquad files is .nq.
- The extension for ntriples files is .nt.
- The extension for rdfxml files is .rdf or .xml.
Example
The following command loads a file
that contains triples for an RDF store named myStore in the RDFSAMPL
database.
loadrdfstore myStore -db RDFSAMPL -user db2admin
-password db2admin -schema db2admin c:\simple.nq
Usage notes
- You must issue the command and parameter names in lowercase.
- The input file must be sorted. NQuad files must be sorted by graphs
and NTriple or RDFXML files must be sorted by subjects.
- To bulk load many triples, use the createrdfstoreandloader command
instead of the loadrdfstore command.