Skip to content

Command Line Arguments

Henrik Jürges edited this page Nov 21, 2016 · 12 revisions

Dwerft tools command line arguments

The dwerft tools follow the git style within cli parsing. Thus, you get help by either use help as program argument or by using help <command> on a specific sub commando. The usable sub commandos are convert, version, help.
Attention: Please do not use spaces in file names at the moment, since it can break various things under linux and windows.

convert

Convert structured input into linked data.

Usage: convert -u <project uri> <input> <output> <mapping>

  • -u, --project-uri: This argument is mandatory and specifies the project entity which is used as context.
  • -p, --print: Prints the RDF output to console. If used the output file has to be omitted.
  • -f, --format: Specify an RDF output format. The default is Turtle but besides that all other jena formats are allowed.
  • valid input files are
    • *.dq for dramaqueen (needs a rdf output file);
    • *.(xml|json|csv|ale) for generic conversion
    • no input file for preproducer
  • valid output files are *.(rdf|ttl|nt)
  • valid mappings are *.rml.ttl and has to be omitted for dramaqueen und preproducer conversion.

version

Print information from the tailr versioning system.

Usage : version -(l|s|d) <key>

  • -l, --list : List revisions in tailr
  • -s, --show : Show a specific revision or the latest when the latest keyword is used
  • -d, --delta : Shows the diff between the current and a previous revision or the latest delta if the latest keyword is used

upload

Upload a file to the dwerft web service, see Webservice

Usage: upload -k <tailr-key> -m <method> -g <graphname> <file>

  • -m, --method: Provide a granularity. Possible options are 0, 1, 2, where 0 deletes from remote graph; 1 inserts into remote graph and 2 inserts a diff. Default is 1.
  • -g, --graph: Provide a graph name (uri) where the data is stored.
  • -k, --key: Provide a key for tailr. In most cases this might be the project base URI in conjunction with the tool which has generated the data.

Clone this wiki locally