Usage

Syntax

usage: java -Xms512m -Xmx2048m  -jar metamed-2024.02.jar [-d <dir>]
       [-ds <code>] [-e <file>] [-ef <format>] [-empty] 
       [-fs <rootdir> | -mem | -virt <auth>] [-g <name>] [-h] [-i <file>] 
       [-if <format>] [-list <file>] [-o <dir>] [-of <fmt>] 
       [-p <extractor:priority>] [-pm <file>] [-q <file>] [-r <file>] [-s] 
       [-tc <count>] [-tmm] [-v]

Options

-d,--input-data dir
Input data directory or file. The whole directory is processed recursively.
-ds,--data-source code
Set the data source name.
-e,--export file
Export the whole graph to a file.
-ef,--export-format format
File serialization format for an output RDF file.
-empty,--empty-graph
Empty the graph.
-fs,--graph-file-system rootdir
Graph is in-memory only, but it is automatically backed from/to file system root directory. You have to specify a root directory for graph. Graph is always backed to the root directory. You can use options for export (-e) and export format (-ef) which will duplicate output to an another serialization file format. Please be patient, the graph is written twice in that case.
-g,--graph name
Set the graph name. The graph name a mandatory option for all supported operations. (default is 'metamedGraph')
-h,--help
Print this message.
-i,--import file
Import RDF files(s) to the graph.
-if,--import-format format
Import serialization format for RDF files(s).
-list,--file-list file
List of input data files for (selective) processing in the file. Each file name (relative or absolute) path is on one line. An input data (-d) option can append additional files for processing.
-mem,--graph-in-memory
Graph is in-memory only and it is destroyed when application exits. (default) You can use export option (-e) which will output the graph to a RDF file with format (-ef) you need. It is useful e.g. for a conversion between two serialization formats.
-o,--output dir
Output directory. Query results will be stored there with an appropriate file extension based on an output format.
-of,--output-format fmt
Output format - csv, json, ...
-p,--priority extractor:priority
Extractor class priority. The syntax is extractor class name or code, colon, priority. Priority is a positive integer number. Default value is 0. It is possible to disable Extractor using priority value 'disabled'.
-pm,--prefix-map file
Export an application built-in prefix map into a text file.
-q,--query file
File or directory with files that contain SPARQL query. Prefixes are appended automatically to each query.
-r,--remove file
Remove statements from the graph. One statement per line. Subject, predicate and value are divided by a tabulator char only. Only URI out prefixes are allowed. Any content in s, p or o is possible when you use ? or $ char (before name).
-s,--size
Print graph size.
-tc,--thread-count count
Number of threads used for meta data extraction of input files. One thread is a default value.
-tmm,--thread-graphs-merge
Enable merging graphs when more threads are used. It is automatically enabled when running queries or removing any statements. It is more efficient work out merging when you are extracting meta data.
-v,--verbose
Verbose output.
-virt,--graph-virtuoso auth
Graph is in Virtuoso database. You have to specify a connection configuration property file.