Use Terms4FAIRskills ontology to browse materials.
Requirements: PHP 7.4, MariaDB >= 10.3
PHP Module required :
php-cli
php-json
php-xml
php-opcache
php-mbstring
php-intl
php-process
php-mysqlnd
php-pdo
wget https://get.symfony.com/cli/installer -O - | bash
export PATH="$HOME/.symfony/bin:$PATH"
php composer-setup.php --install-dir=<intall-dir> --filename=<bin-name>
alias composer="<install-dir>/<bin-name>"
git clone https://dci-gitlab.cines.fr/dad/materials-browser-api.git
cd esgbu-api
composer install
# env.local data for local install
# MySQL Database
DATABASE_URL=mysql://<db_user>:<db_password>@127.0.0.1:3306/<db_name>?serverVersion=5.5
# Symfony env/debug parameters:
#APP_ENV=prod
#APP_DEBUG=0
Launch command to import T4FS ontology and materials into database from files t4fs.owl
and asset/materials.json
:
bin/console app:import-ontology
bin/console cache:clear && symfony server:start
Go to address http://localhost:8000/
from the internet browser. If the API documentation is displayed, the project is operational.
To add materials into database or add new concepts or relation from ontology, replace files materials.json
or/and t4fs.owl
with newest into asset
directory and relaunch command from step 7 to rebuild database with new data.