Installation
Install Python
As DHTK is a Python modules, make sure you have Python installed on your system. You can do this in three different ways:
- Manually search the common locations where your system saves applications.
- You can use the search file options from you system to find the Python application
- You can type python --version on your command line or powershell (Windows)
If you don't have Python 3 installs, please download it and follow the instructions. We recommend using the most up-to-date Python 3 version, but DHTK is compatible with at least Python 3.7+.
Install Docker
In addition to Python 3, you are likely to use a local SPARQL endpoint when using DHTK to search pre-processed data. This requires setting up a Fuseki server container on the Docker application. To do so, you will need to download Docker before running DHTK.
note
DHTK may attempt to install docker (macOS systems only) and set up all required containers and volumes.
Install DHTK
DHTK can be installed as a regular python modules, using the package installer for Python (pip):
$ pip install git+https://gitlab.com/dhtk/dhtk.git
Alternatively, you may download the DHTK source code in your preferred format. Once you extract the DHTK files from the archive, you can access them via command line (or powershell).
$ cd dhtk
$
$ python setup.py # or
$ pip install .
Install extensions
DHTK Extensions can be installed as a regular python modules, using the package installer for Python (pip):
$ pip install git+https://gitlab.com/dhtk/dhtk-extensions/dhtk-extension-<name_extension>.git
where
Alternatively, you may download the DHTK source code in your preferred format. Once you extract the DHTK files from the archive, you can access them via command line (or powershell).
$ cd dhtk
$
$ python setup.py # or
$ pip install .
note
DHTK runs a number of system check to try to guarantee if can run without any problem. If this is the first time you're running it, keep in mind that it may take considerable time to complete the the full set.