- install python 3
- install libraries:
cd ./collectVocabularies
pip install -r libs.txt
- download vocabularies in rdf or owl format
- create folder ./vocabularies in ./collectVocabularies folder
- put all versions of each vocabulary into ./vocabularies/{vocabulary_name} (you can find examples here https://drive.google.com/drive/folders/1PriRBtywgzUX9tGJ9QAPcaVPgRZ__Ibx?usp=sharing )
- name vocabularies by pattern: yyyy-mm-dd.{rdf/n3/...}
After running, XML and CSV files of the metrics will be created in root directory with the program. These files are creating from vocabularies in ./vocabularies directory.
If you want to scip vocabularies, just add their folder name into ./scipVocabularies.txt. Each name should be added on new line. After that do next..
If you assign the value "yes" to the variable "scip folders from vocabularies directory (scip downloading XML files)" then 1st Rule will work for downloading XML files
If you assign the value "yes" to the variable "scip folders from metrics directory (scip creating CSV files)" then 1st Rule will work for creating CSV files
You can add "all" instead of list of vocabularies to scip all of them
- install Postgresql
- db backup is in ./collectVocabularies/database/init/onto_metrics.sql. Restore this db
- change db settings in database.config.json
- migrations is in ./collectVocabularies/database/migrations/
- run ./applyMigrations.py
- before adding new vocabularies into db you should be sure that all ONLY NEW vocabularies are in ./vocabularies folder (see CollectVocabularies -> Preparation in this file)
- run ./addMigrations.py
- run ./applyMigrations.py
- if something wrong, run ./rollbackMigrations.py, delete last files with migrations, solve the problem, and try again
- install last version of Node.js
- install libraries:
cd ./server
npm install
- Be sure that your db server is running
- run:
cd ./server
npm start
- install vue and vue-cli
- install libraries:
cd ./client
npm install
- be sure that your server is running
- run:
cd ./client
npm run serve