Transfer is a part of the VIVO Harvester which moves data in to, out of, and between jena model. In general, it reads data from a specified input model and moves it to the specified output model. While it works exclusively with RDF data (therefore a tool such as Translate may need to be used first to convert the data to RDF), it can handle many different record formats such as H2 or text files. In conjunction with Score and Match, it can be used for such purposes as adding fetched data into VIVO that does not match anything already in VIVO, or adding only fetched data into VIVO that matches something already in VIVO and ignoring the rest, and other permutations.
Parameters
Must provide at least one input argument via -i
, -r
or -h
.
Must provide at least one output argument via -o
, -O
or -d
.
Short Option | Long Option | Parameter Value Map | Description | Required |
---|---|---|---|---|
i | input | CONFIG_FILE | config file for jena model to load into | false |
I | inputOverride | override the JENA_PARAM of input jena model config using VALUE | false | |
r | rdf | RDF_FILE | rdf filename to load into output model | false |
R | rdfLang | LANGUAGE | rdf language of rdf file | false |
h | recordHandler | RECORD_HANDLER | record handler to load into output model | false |
H | recordHandlerOverride | override the RH_PARAM of recordhandler using VALUE | false | |
n | namespace | URI_BASE | use URI_BASE when importing relative uris | false |
m | modeRemove |
| remove from output rather than add | false |
o | output | CONFIG_FILE | config file for output jena model | false |
O | outputOverride | override the JENA_PARAM of output jena model config using VALUE | false | |
d | dumptofile | FILENAME | File name to which the output model should be dumped as RDF/XML | false |
Usage
Transfer is used just after translation in a script to transfer from a recordhandler to a jena model.
Example
No Format |
---|
# Execute Transfer to import from record handler into local temp model $Transfer -o $H2MODEL -OmodelName=$MODELNAME -OdbUrl=$MODELDBURL -h $H2RH -HdbUrl=$RDFRHDBURL -n $NAMESPACE |
Possible operation
The dump ability is useful for debugging on small models, or for backing up models.
The rdf switch can be used for importing new data or restoring a previous dump.
Note: Backing up and restoring models is usually done through direct database manipulation, not transfer.