OASIS provides an API and interface for Entity Linking and Light Semantics, designed to support ontology-driven reasoning in specialized Question-Answering systems.
This repository contains the FastAPI backend, exposing endpoints that process sessions, entities, and lightweight semantic relations.
git clone https://github.com/<user>/ontoqa-system.git
cd ontoqa-systempython -m venv .venv
source .venv/bin/activate # Linux/Mac
.venv\Scripts\activate # Windowspip install -r requirements.txtFrom the project root, execute:
uvicorn app.main:app --reloadMake sure you are in the project root directory, where the app/ folder is located.
http://127.0.0.1:8000
-
Swagger UI:
http://127.0.0.1:8000/docs -
ReDoc:
http://127.0.0.1:8000/redoc
POST /v1/entity-linking
{
"session": 142041
}curl -X POST "http://127.0.0.1:8000/v1/entity-linking" \
-H "Content-Type: application/json" \
-d "{\"session\": 142041}"POST /v1/light-semantics
{
"entities": ["17", "26", "30"]
}curl -X POST "http://127.0.0.1:8000/v1/light-semantics" \
-H "Content-Type: application/json" \
-d "{\"entities\": [\"17\", \"26\", \"30\"]}"Below are examples using the requests library.
import requests
url = "http://127.0.0.1:8000/v1/entity-linking"
payload = {"session": 142041}
response = requests.post(url, json=payload)
print(response.json())import requests
url = "http://127.0.0.1:8000/v1/light-semantics"
payload = {"entities": ["17", "26", "30"]}
response = requests.post(url, json=payload)
print(response.json())