stardog vcs query Manual Page
NAME
stardog vcs query —Queries the version metadata in the database using a SPARQL query.
SYNOPSIS
stardog [ --krb5 ] [ --krb5-disable-rdns ]vcs query [ {-b | --bind} <variables to bind>... ] [ {-f | --format} <resultFormat> ] [ {-g | --named-graph} <Named graph> ] [ {-l | --limit} <N> ] [ {-o | --offset} <N> ] [ {-p | --passwd} <password> ] [ {-P | --ask-password} ] [ {-r | --reasoning} ] [ {-u | --username} <username> ] [ {-v | --verbose} ] [--] <database> <query>...
OPTIONS
-b <variables to bind>, --bind <variables to bind>
Variable bindings. One or more variable bindings to apply before executing query. Each binding is provided as a 'var=value' pair; multiple bindings should be separated with whitespaces. Variables must exist in the query and the value should be a valid RDF term in Turtle syntax. Namespaces stored in the database can be used in the values; e.g. x=ex:name. Quotes are needed around IRIs to avoid special characters to be evaluated by the shell; e.g. y="<http://example.org/test>". In Turtle syntax literals have quotes which need to be escaped to differentiate them from shell quotes; e.g. z=\"value\". Finally, if a literal contains special characters or a space then additional quotes are needed for the shell; e.g. z="\"another value\"".
-f <resultFormat>, --format <resultFormat>
Result format for RDF [NTRIPLES, RDF/XML, TURTLE, PRETTY_TURTLE, TRIG, TRIX, N3, NQUADS] or SPARQL [SPARQL, JSON, TEXT, TABLE, CSV, TSV, HTML].
-g <Named graph>, --named-graph <Named graph>
Default graph to run the queries against.
Use the Kerberos environment.
Disable reverse DNS lookup for Kerberos clients.
Limit the number of results the query will return. Specifying the limit will override any limit specified in the original query string
Skip the first N results the query will return. Specifying the offset will override any offset specified in the original query string
-p <password>, --passwd <password>
-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. The subsequent argument is the SPARQL query string to execute. This can either be a file name, a SPARQL query string, or a stored query name.
EXAMPLES
Query the versions in a database
$ stardog vcs query myDb 'select * where { ?s ?p ?o } limit 10'