DB2 Version 10.1 for Linux, UNIX, and Windows

loadrdfstore command

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

Read syntax diagramSkip visual syntax diagram
>>-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