-
Notifications
You must be signed in to change notification settings - Fork 1
Installing and configuring
In order to install this interface you need before to install MongoDB, the Ontology Wrapper and all the php5 packages listed below:
- Required dependancies
-
Service definitions repository
Clone the repo in your root folder, then edit thesite.js
file and insert the full pathdefinitions_dir
section (default value is/Service/Library/definitions
) - PHP5+
- php5-curl
- php5-json
- php5-mongo
If you want to manage your own database, you need also other packages listed below:
- Other dependancies
- MongoDB - http://www.mongodb.org/
- Ontology Wrapper - https://github.com/milko/OntologyWrapper
git clone https://github.com/bioversity/PGRDG.git .
Make sure to have right root permissions with these commands.
$ cd common/include/conf/.rsa_keys
$ openssl genrsa -out rsa_2048_priv.pem 2048
$ openssl rsa -pubout -in rsa_2048_priv.pem -out rsa_2048_pub.pem
In order to let the interface working, you must download at least the variables definitions.
Such definitions are synchronized with the OntologyWrapper queries and responses, in other word the interface must speak the OntolologyWrapper language.
In this way, the PGRDG interface and the OntologyWrapper can be placed in different machines, so you could use the definitions package as Proxy between them.
Open the common/include/conf/interface/site.js configuration file, and change the value of url
key and of definitions_dir
key.
The url
key expects an "http" host value and the definitions_dir
key expects a local path value.
Consider the sshfs
remote mounting if you want to use a remote Proxy definitions files.