stardog-admin stored add Manual Page

NAME


stardog-admin stored add —Adds a new stored query

SYNOPSIS


stardog-admin [ --krb5 ] [ --krb5-disable-rdns ] [ --server <server url> ]stored add [ {-d | --database} <db> ] [ {-n | --name} <name> ] [ --overwrite ] [ {-p | --passwd} <password> ] [ {-P | --ask-password} ] [ --shared ] [ {-u | --username} <username> ] [ {-v | --verbose} ] [--] <query>

OPTIONS


-d <db>, --database <db>
The database the query will be associated with. By default, '*' will be used which means the query can be executed over any database.
--krb5
Use the Kerberos environment.
--krb5-disable-rdns
Disable reverse DNS lookup for Kerberos clients.
-n <name>, --name <name>
Unique name for the stored query. This name is used to retrieve the stored query later. If no name is given but a query file is provided the name of the file without the extension will be used. The first letter must be an alpha character. Subsequent characters may be alphanumeric, underscore, or dash.
--overwrite
Overwrite an existing stored query with the same name.
-p <password>, --passwd <password>
Password.
-P, --ask-password
Prompt for password.
--server <server url>
URL of Stardog Server. If this option isn't specified, it will be read from JVM argument 'stardog.default.cli.server'. If the JVM arg isn't set, the default value 'http://localhost:5820' is used. If server URL has no explicit port value, the default port value '5820' is used. Example: 'stardog-admin --server http://12.34.56.78:5820 server stop'
--shared
Share this query with other users. By default, only the user who stores the query can access it.
-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
<query>
The SPARQL query string to store. This can either be a file name or a SPARQL query string.

DISCUSSION


Adds a new stored query. Stored queries can be executed directly by using their name. Shared queries can be executed by any user. Private queries can only be executed by their creator or super users. Stored queries can be executed over the database associated with the query. The special value `*` can be used to indicate a query can be executed over any database.

EXAMPLES


Adds a new stored query over all databases:

    $ stardog-admin stored add listProperties.sparql

Adds a new shared stored query with a custom name and for database myDb:

    $ stardog-admin stored add --shared -d myDb -n listProperties query.sparql

Adds a new stored query overwriting previous query with same name:

    $ stardog-admin stored add --overwrite -d myDb -n listProperties query.sparql