This project uses logica to interacts with ontologies. Logica is an open source declarative logic programming language for data manipulation. It transforms datalog queries into SQL queries that are executed against a data source.
Data source supported include:
- SQLite
- DuckDB
- Pandas dataframes
The project uses poetry
to manage dependencies. However, a requirements.txt
file is also provided.
Test data is provided using a simple dental material ontology.
Two SQLite databases are created using the ontology:
Details on how to build the databases are provide in data/READMe.md.
Jupyter can be run in poetry
environment using the command:
poetry run jupyter lab --autoreload
(the--autoreload
is optional)