stardog-admin virtual import Manual Page
NAME
stardog-admin virtual import —Registers a new virtual graph.
SYNOPSIS
stardog-admin [ --krb5 ] [ --krb5-disable-rdns ]virtual import [ {-f | --format} <Mappings format> ] [ {-g | --named-graph} <named graph> ] [ {-p | --passwd} <password> ] [ {-P | --ask-password} ] [ --remove-all ] [ {-u | --username} <username> ] [ {-v | --verbose} ] [--] <database name> <configFile> <mappingsFile> <inputFile>...
OPTIONS
-f <Mappings format>, --format <Mappings format>
Format of the mappings; one of [STARDOG, R2RML]
-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 imported into.
Use the Kerberos environment.
Disable reverse DNS lookup for Kerberos clients.
-p <password>, --passwd <password>
Remove all flag. If this flag is set, all data in destination named graph will be removed before the import.
-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
<database name> <configFile> <mappingsFile> <inputFile>
The name of the database to import the data followed by a configuration file, a mappings file and an inputfile. When importing from an RDBMS the configuration file is required, the mappings file is optional (when absent direct mapping is used), and input file argument is not used. When importing CSV, the configuration file is optional, the mappings file and the input file (should be a valid CSV file) are required.
EXAMPLES
Import all of the contents of a virtual graph with direct mappings into database myDB
$ stardog-admin virtual import myDB source.properties
Import all of the contents of a virtual graph with the mappings written in Stardog mappings syntax
$ stardog-admin virtual import myDB source.properties source.ttl
Import all of the contents of a virtual graph with the mappings written in standard R2RML Turtle syntax
$ stardog-admin virtual import --format r2rml myDB source.properties source.ttl
Import the contents of a CSV file with the given mappings
$ stardog-admin virtual import myDB mappings.ttl input.csv