Bash
In IN5800 we will use Bash for
- downloading files
- gluing programs together
- executing SQL- and SPARQL-queries
- applying mappings
- invoking the semantic reasoner
- etc.
Guides and tutorials
Commonly used commands in IN5800
Below is a list of commonly used commands that are useful for making data pipelines.
cd
– Change working directorymkdir
– Create a new folderrm
– Delete file(s)grep
– Search within text and filesfind
– List and search for filessed
– Search and replace in filewget
– Download file(s)unzip
– Unpack a Zip-fileiconv
– Change encoding of a filecat
– Print content of file|
(pipe) – Send output from one command to anotherssh
– Connect to remote computer (e.g. at IFI)
To learn more about a patricular command, simply write
man <command>
(where <command>
is
replaced by the particular command’s name) in any Bash-shell.
In adition to the ones listed above, we will use Bash to invoke other programs. Below is a list of such programs.
git
– Interact with a Git-repopsql
– Interact with a Postgres databasejava
– Execute a Java program, such aslutra
– Work with OTTR templates and instanceskiwicli
– Interact with the KiWi Triplestore
make
– Execute a Makefile (see Make on this Wiki)ogr2ogr
– Transform spatial formats to PostgreSQL