Skip to content

Script: source me.sh

timrdf edited this page Oct 18, 2011 · 38 revisions

source-me.sh has been renamed to my-csv2rdf4lod-source-me.sh to help make it clear that it sets up csv2rdf4lod for your system. my-csv2rdf4lod-source-me.sh should go under version control with the rest of your project, along with the [data root](csv2rdf4lod data root) and skeleton.

Simple use

Created once (by install.sh) during installation, my-csv2rdf4lod-source-me.sh sets the CSV2RDF4LOD environment variables needed while running conversions. You need to source this script within each shell that you open, so it makes sense to add it to your .profile, .bashrc, or the like. See Installing csv2rdf4lod automation.

Seeing the current environment variables

The script [cr-vars.sh](https://github.com/timrdf/csv2rdf4lod-automation/wiki/Script: cr vars.sh) will list the values for each environment variable and provide an indication about how it will be treated (e.g., not required, or will default to: false).

Project-specific environment variables

When invoking the conversion trigger from the conversion cockpit, the variables in csv2rdf4lod-source-me.sh will be set for to apply to this specific project.

bash-3.2$ cr-pwd.sh 
source/data-rpi-edu/research-centers/version/2011-Oct-18

bash-3.2$ cr-vars.sh | grep COMPRESS
CSV2RDF4LOD_PUBLISH_COMPRESS  true         # This will be overridden by ../csv2rdf4lod-source-me.sh 

bash-3.2$ cat ../csv2rdf4lod-source-me.sh 
CSV2RDF4LOD_PUBLISH_COMPRESS="false"       # This will be used when converting

Distributed use

For more advanced uses of the csv2rdf4lod-source-me.sh script in environments with many users, systems, and projects, see CSV2RDF4LOD environment variables (considerations for a distributed workflow).

Clone this wiki locally