City4Age Project's (H2020 grant agreement number 689731) LinkedData and RestAPI servers.
This repository contains two projects.
- LinkedDataInterface: An interface to infer new statements using a RuleEngine Reasoner and to serve it with SPARQL, Linked Data client or HTML endpoints.
- RestApiInterface: A REST API interface to manage some user personal information in a PostgreSQL relational database.
For more information, please read each project README.
There are other folders containing more information for installation purposes.
To install this project you need the following requirements.
- A local machine with Ubuntu 16.04 GNU/Linux distribution,
- Python 2.7.
- Python Fabric.
- A proper server configured with Ubuntu Server 16.04 GNU/Linux distribution.
To install the entire project please follow this steps.
- Cd to fabfile.py
- Edit env.hosts and env.user in fabfile.py with your favourite editor:
- env.host : Array of server hosts. Put here your destination(s) server(s)
- env.user : User to login in.
- Save and exit
- Run:
to see all available commands.
fab fabfile.py
- Run:
To install entire project
fab main_install
All needed dependencies for the project are installed automatically. The user does not need to bother about this issue. However, here is a complete list of project dependencies and some advices:
- Python 2.7
- Python-dev (2.7)
- PostgreSQL 9.5
- PostgreSQL Server Dev
- Virtualenv for Python 2.7
- Build-essential (gc++ compiler, fakeroot.....)
- Nginx
- OpenJDK-8 (JRE and JDK
- Tomcat 8
- uWSGI
You must provide a ssh password to establish connection to the server and run some sudo commands.
In some steps, application may ask some things such as ssl keys generation, d2rq mapping.tll file verification or rules verification.
The installation scripts installs the projects under /opt path.
This project is licensed under the terms of the GPL v3 license.