stardog namespace export Manual Page
NAME
stardog namespace export —Exports the namespace prefixes stored in a database in Turtle or SPARQL format.
SYNOPSIS
stardog [ --krb5 ] [ --krb5-disable-rdns ] namespace export [ {-p | --passwd} <password> ] [ {-P | --ask-password} ] [ --run-as <username> ] [ --sparql ] [ --token <token> ] [ {-u | --username} <username> ] [ {-v | --verbose} ] [--] <database> <file>...
OPTIONS
Use the Kerberos environment.
Disable reverse DNS lookup for Kerberos clients.
-p <password>, --passwd <password>
User to impersonate when running the command
Flag to use SPARQL format for namespaces, i.e. print 'PREFIX' instead of '@prefix' and no period at the end.
-u <username>, --username <username>
Flag that can cause more detailed information to be printed such as errors and status. Exact output depends upon the command and options used.
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 prepended 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 output file.
EXAMPLES
Exports the namespaces of 'myDb' in Turtle format:
$ stardog namespace export myDb
Exports the namespaces of 'myDb' in SPARQL format:
$ stardog namespace export --sparql myDb
Exports the namespaces of 'myDb' in Turtle format to a specified file:
$ stardog namespace export myDb ns.ttl