stardog vcs diff Manual Page

NAME


stardog vcs diff —Prints the difference between two versions.

SYNOPSIS


stardog [ --krb5 ] [ --krb5-disable-rdns ]vcs diff [ --canonical ] [ {-f | --format} <resultFormat> ] [ {-p | --passwd} <password> ] [ {-P | --ask-password} ] [ --single ] [ {-u | --username} <username> ] [ {-v | --verbose} ] [--] <database> <startVersion> <endVersion>...

OPTIONS


--canonical
Combines all additions and removals such that all redundant updates are filtered. Note that, this operaiton requires to store all the changes in memory and might run out of memory if changes are large.
-f <resultFormat>, --format <resultFormat>
Result format for diffs [SPARQL, PATCH].
--krb5
Use the Kerberos environment.
--krb5-disable-rdns
Disable reverse DNS lookup for Kerberos clients.
-p <password>, --passwd <password>
Password.
-P, --ask-password
Prompt for password.
--single
Displays the diff for a single commit.
-u <username>, --username <username>
User name.
-v, --verbose
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
<database> <startVersion> <endVersion>
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. Subsequent arguments specify the versions to the compute diff. If endVersion is not given the HEAD version will be used. If --single is used then startVersion should be omitted and the version right before endVersion will be used. If both versions are omitted then --single is assumed. Versions can be identified with their full IRI, local name, or a tag (if one exists).

EXAMPLES


Prints the differences between the head version and the previous version; i.e. the changes in last commit

    $ stardog vcs diff myDb

Prints the differences between the head version and a specific version

    $ stardog vcs diff myDb de44369d-cc7b-4244-a3fb-3f6e271420b0 

Prints the differences between two versions, i.e. all the changes committed after the first version until the second version (inclusive)

    $ stardog vcs diff myDb de44369d-cc7b-4244-a3fb-3f6e271420b0 bd5b2cc8-c625-46ca-a5ce-934327d27e3c

Prints the difference between the given version and its previous version, i.e. the changes committed in a specific version

    $ stardog vcs diff --single myDb de44369d-cc7b-4244-a3fb-3f6e271420b0 

Prints the difference between a tagged version and the head version

    $ stardog vcs diff myDb myTag