DB2 Version 10.1 for Linux, UNIX, and Windows

createrdfstore command

The createrdfstore command creates an empty RDF store without any data.

To create an optimized RDF store that is uses existing data, use the createrdfstoreandloader command instead.

Command syntax

Read syntax diagramSkip visual syntax diagram
>>-createrdfstore--storeName--+-------------------------+------->
                              '- -objectnames--objNames-'   

>--+------------------+--+--------------------+-- -db--dbName--->
   '- -host--hostName-'  '- -port--portNumber-'                 

>-- -user--userName-- -password--password----------------------->

>--+----------------------+------------------------------------->
   '- -schema--schemaName-'   

>--+------------------------------------------------+----------->
   '- -predicatemappings -predicateMappingsFileName-'   

>--+----------------------------------------------+------------><
   '- -systempredicates--systemPredicatesFileName-'   

Command parameters

-storename storeName
Specifies a name for the RDF store. Ensure that the name satisfies the rules for DB2® database table names.
-objectnames objNames
Specifies a Java™ properties file that lists the names of the RDF store tables. This file can be any valid file name, but it must have the extension ".properties".

If you do not specify the objectNames parameter, system generated table names are used instead.

-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. The minimum database page size is 32 KB.
-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 in which to create the RDF store.
-predicatemappings predicateMappingsFileName
In DB2 Version 10.1 Fix Pack 2 and later fix packs, specifies the path of the file that contains the predicate mappings that are to be used in the store. The mappings occur between the predicates and their assigned columns. The mappings are computed based on predicate occurrence.
-systempredicates systemPredicatesFileName
In DB2 Version 10.1 Fix Pack 2 and later fix packs, specifies the properties file that contains the filter predicates that are to be applied to the query. These system predicates are stored in an RDF store to help enable graph level access control.

Example

Example 1: The following command creates a store named rdfStore1 in database DB1 with port 60000 and schema db2admin on host localhost:
createrdfstore rdfStore1 -host localhost -port 60000 -db DB1 
-user db2admin -password XXX -schema db2admin 
Example 2: The following command creates a store named rdfstore2 in database DB1 with port 60000 and schema db2admin by using system predicates from the syspreds.props file and predicate mappings from the predicatemappings.nq file.
createrdfstore rdfStore1 -host localhost -port 60000 -db DB1 
-user db2admin -password XXX -schema db2admin 
-predicatemappings predicatemappings.nq -systempredicates syspreds.props

Usage notes

You must issue command and parameter names in lowercase.