CTOntoAPI is an API designed to facilitate the interaction with the CircularTwAIn Ontology Library. This API provides various endpoints to query the data efficiently based on input string.
The backend provides API to:
- Query the ontology classes and properties based on string input.
- Retrive labels, data properties, object property of a node.
- Query the ontology with SPARQL query.
- Integration with the LamAPI for query Wikidata Knowledge Graph
The Frontend provide vizualization of the ontology and the query results.
To run the API server with Docker, run:
docker-compose up
GraphDB is required to run the API. The GraphDB image built with the ontologies is available at the CircularTwAIn Packages. To start it, run:
docker run -d -p 7200:7200 ghcr.io/circular-twain/ctontolib/graphdb-image:latest
Then run the backend and frontend with:
python run_backend.py
python run_frontend.py
You might need to install the required packages with:
pip install -r ./backend/requirements.txt
pip install -r ./frontend/requirements.txt
The backend is available at http://localhost:9001
and the frontend is available at http://localhost:9002
.
You can change the port in the environment and configuration folder.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or feedback, please contact me at An Lam.