docker-compose up -d --build
Access Point: http://127.0.0.1:5000
- To execute a query :
URL: http://127.0.0.1:5000/retrieve_data
TYPE: POST
BODY: {"query":"SPARQL Query String"}
RETURN: JSON
Example:
POST /retrieve_data HTTP/1.1
Host: qualichain.epu.ntua.gr:5000
Content-Type: application/json
{
"query": "prefix saro: <http://w3id.org/saro/> prefix qc: <http://w3id.org/qualichain/> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT ?entity ?type WHERE { ?entity rdf:type ?type. {?entity saro:relatedTo saro:java. } UNION {?entity qc:refersToExperience saro:java. } }"
}
- To submit data to the knowledge graph:
URL:http://127.0.0.1:5000/submit_data
TYPE: POST
BODY: {"text":"job_description"}
Example:
POST /submit_data HTTP/1.1
Host: qualichain.epu.ntua.gr:5000
Content-Type: application/json
{
"text": "supervised learning, sas, web applications, meshing, dba"
}
python manage.py db init
python manage.py db migrate
python manage.py db upgrade
You can access Mediator API endpoints from this link
- Load Saro skills:
- cd /application
python loaders/ttl_loaders.py
- Load NTUA Courses
- cd /application
python loader/load_courses.py