We have unified the disparate ways of creating a Jena Model through similar configuration files. By making a configuration file for each model it prevents minor typos and mis-coordinations from slowing adjustments that may need to be made.
type - defines which type of jena model
Possible Values:
dbDir - the directory to store a tdb model in
(only needed when type is tdb)
Example Values:
file - the path to the file that contains rdf data
(only needed when type is file)
Example Values:
rdfLang - the format of the rdf in the file
(optional, only used when type is file)
Possible Values:
dbLayout - the layout to use for an sdb model
(optional, only used when type is sdb)
Possible Values:
dbType - the name of the database type (as specified by jena)
(only needed when type is rdb or sdb)
Examples:
dbClass - the JDBC driver class to use
(only needed when type is rdb or sdb)
Examples:
dbUrl - the JDBC connection url
(only needed when type is rdb or sdb)
Examples:
modelName - the named model to use
(optional, uses default model if not specified, only used when type is rdb, tdb, or sdb )
Examples:
dbUser - the DB username to use
(only needed when type is rdb or sdb)
Example:
dbPass - the DB password to use
(only needed when type is rdb or sdb)
Example:
<Param name="type">tdb</Param> <Param name="dbDir">data/tdb-jena-rh</Param> |
<Config> <Param name="type">file</Param> <Param name="file">data/file-jena-rh.rdf.n3</Param> <Param name="rdfLang">N3</Param> </Config> |
<Config> <Param name="type">rdb</Param> <Param name="dbType">H2</Param> <Param name="dbClass">org.h2.Driver</Param> <Param name="dbUrl">jdbc:h2:data/jena-model/store</Param> <Param name="modelName">mySimpleModelName</Param> <Param name="dbUser">sa</Param> <Param name="dbPass"></Param> </Config> |
<Config> <Param name="type">sdb</Param> <Param name="dbLayout">layout2</Param> <Param name="dbType">H2</Param> <Param name="dbClass">org.h2.Driver</Param> <Param name="dbUrl">jdbc:h2:data/jena-model/store</Param> <Param name="modelName">mySimpleModelName</Param> <Param name="dbUser">sa</Param> <Param name="dbPass"></Param> </Config> |