stardog vcs commit Manual Page
NAME
stardog vcs commit —Commits a new version by adding and removing triples specified in files. Different from the 'data add/remove' commands, this command allows one to add and remove triples in one commit and associate a commit message. Update queries can be executed as part of this transaction as well. Removals are performed before additions and queries are executed last.
SYNOPSIS
stardog [ --krb5 ] [ --krb5-disable-rdns ]vcs commit [ --add <add>... ] [ {-f | --format} <rdf format> ] [ {-g | --named-graph} <named graph> ] {-m | --message} <message> [ {-p | --passwd} <password> ] [ {-P | --ask-password} ] [ --query <query>... ] [ --remove <remove>... ] [ --remove-all ] [ --server-side ] [ {-u | --username} <username> ] [ {-v | --verbose} ] [--] <database>
OPTIONS
Files whose contents will be added to the database.
-f <rdf format>, --format <rdf format>
Data format. The supported formats are NTRIPLES, RDF/XML, TURTLE, PRETTY_TURTLE, TRIG, TRIX, N3, NQUADS. If no format is specified, the file name will be used to guess the required format.
-g <named graph>, --named-graph <named graph>
Target named graph. If no named graph is specified, the default graph will be used. This is the named graph where data will be modified. If a graph format that specifies context is used, such as TRIG, this will override the context specified in the by the format.
Use the Kerberos environment.
Disable reverse DNS lookup for Kerberos clients.
-m <message>, --message <message>
The commit message that will be associated with the version.
-p <password>, --passwd <password>
Update queries that will be executed.
Files whose contents will be removed from the database.
Remove all flag. If this flag is set, all data in the database will be removed.
Server-side file IO. If this flag is set, it will be assumed that the input files passed reside on the server and the client will just send the file path to the server.
-u <username>, --username <username>
Verbose flag that causes more detailed information to be printed
This option can be used to separate command-line options from the list of argument, (useful when arguments might be mistaken for command-line options
The name of the database or the full connection string of the database to connect to. If only the name is provided, the default server URL will be pre-pended to the name of the database in order to construct the connection string. Connection parameters such as ';reasoning=true' can be included in the provided database name. Connection parameters specified like this can be overridden by specific options on the command. The default server URL will be read from the JVM argument 'stardog.default.cli.server'. If the JVM argument is not set, the default value 'http://localhost:5820' is used. If the server URL has no explicit port value, the default port value '5820' is used. To use a secure connection, you should specify the full connection string and postfix 's' to the protocol, e.g. https.
EXAMPLES
Commits a new version by adding and removing some triples and specifying a commit message
$ stardog vcs commit --add add_file1.ttl add_file2.ttl --remove remove_file.ttl -m "This is an example commit" myDb