HASCO is an ontology describing how instruments are used to acquire and collect data in support of scientific studies. The ontology has essential concepts for describing studies, study objects like subjects, instruments, instrument elements like detectors and items, instrument deployments enabling the use of instruments to acquire data, and a comprehensive semantic description of data in the context of studies and instrument deployments.
It is an API for handling HASCO-based knowledge graphs. The canonical representation of instruments and instrument elements are stored in RDF inside of the Fuseki triple store embedded in HASCOAPI.
git
and docker
git clone
, clone HASCOAPI from github/hascoapi/conf/application.conf
and replace the variable pac4.jwt.secret
value with another random string of around 40 characters. This is the JWT API token that needs to be shared with the REP application (https://github.com/HADatAc/rep)docker build .
, build HASCOAPI imagesdocker-compose up -d
, run HASCOAPIcd /hascoapi
docker-compose down
docker-compose system prune -a
git pull
docker-compose up -d
cd /hascoapi
docker-compose down
docker volume rm hascoapi_hascoapi-fuseki-data
docker-compose up -d
In the example below, we named the backup file with the backup date. This can be any date and it may also include the time of the backup.
cd /hascoapi
docker-compose down
cd ~
docker run --rm --volumes-from hascoapi_fuseki -v $PWD:/bkp ubuntu bash -c "tar -zcvf /bkp/fuseki-data_17Aug2023.tar.gz"
/bkp/fuseki-data_17Aug2023.tar.gz
out of the host machine/bkp/fuseki-data_17Aug2023.tar.gz
into the HASCOAPI host machinecd /hascoapi
docker-compose down
cd ~
docker run --rm --volumes-from hascoapi_fuseki -v $PWD:/bkp ubuntu bash -c "tar -zxvf /bkp/fuseki-data_17Aug2023.tar.gz"