jena
Class dbload

java.lang.Object
jena.DBcmd
jena.dbload
- public class dbload
- extends DBcmd
Load data files into a Jena model in a database.
Usage:
jena.dbload [db spec] file [file ...]
where [db spec] is:
--spec file Contains an RDF description of the model
--db JDBC_url --dbUser userId --dbPassword password --dbType [--model modelName]
The syntax of a file is determimed by its extension (.n3, .nt) and defaults to RDF/XML.
- Version:
- $Id: dbload.java,v 1.6 2005/02/21 11:49:12 andy_seaborne Exp $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
usage
public static final java.lang.String[] usage
filename
java.lang.String filename
argDeclDbURL
protected final jena.cmdline.ArgDecl argDeclDbURL
argDeclDbType
protected final jena.cmdline.ArgDecl argDeclDbType
argDeclDbUser
protected final jena.cmdline.ArgDecl argDeclDbUser
argDeclDbPassword
protected final jena.cmdline.ArgDecl argDeclDbPassword
argDeclModelName
protected final jena.cmdline.ArgDecl argDeclModelName
argDeclDbDriver
protected final jena.cmdline.ArgDecl argDeclDbDriver
argDeclVerbose
protected final jena.cmdline.ArgDecl argDeclVerbose
verbose
protected boolean verbose
argDeclDebug
protected final jena.cmdline.ArgDecl argDeclDebug
debug
protected boolean debug
argDeclHelp
protected final jena.cmdline.ArgDecl argDeclHelp
argDbURL
protected java.lang.String argDbURL
argDbType
protected java.lang.String argDbType
argDbUser
protected java.lang.String argDbUser
argDbPassword
protected java.lang.String argDbPassword
argModelName
protected java.lang.String argModelName
drivers
static java.util.Map drivers
takesPositionalArgs
boolean takesPositionalArgs
cmdName
java.lang.String cmdName
cmdLine
jena.cmdline.CommandLine cmdLine
dbload
public dbload()
main
public static void main(java.lang.String[] args)
exec0
void exec0()
- Description copied from class:
DBcmd
- Called if there are no psoitional arguments
- Specified by:
exec0 in class DBcmd
exec1
boolean exec1(java.lang.String arg)
- Description copied from class:
DBcmd
- Called for each postional argument, inside a transaction.
Return true to continue this transaction, false to end it and start a new
one if there are any more args
- Specified by:
exec1 in class DBcmd
init
protected void init(java.lang.String[] args)
getRDBModel
protected com.hp.hpl.jena.db.ModelRDB getRDBModel()
getConnection
protected com.hp.hpl.jena.db.IDBConnection getConnection()
exec
protected void exec()
setUsage
protected void setUsage(java.lang.String a)
setUsage
protected void setUsage(java.lang.String[] a)
- Usage message: one line per entry
usage
protected void usage()