Skip to main content

Multi purpose API Generator based on an Ontology Framework.

Project description

OntologyToAPI

This python package is an ontology-driven API generator designed for backend development by transforming structured domain knowledge, different data sources and implemented business models into fully functional APIs. The tool accepts ontologies specified in Turtle (.ttl), Resource Description Framework (.rdf) and Web Ontology Language (.owl).

Publish to PyPI and TestPyPI


Expected Results from a simple ontology specification

APIEndpoints

Supported communication technologies are (Currently):

Stateful Connections

  • "SOCKET" - For Socket connections using asyncio streams

Stateless Connections

  • "API" - For REST APIs using requests driver
  • "MYSQL" - For MySQL Databases using aiomysql driver
  • "SQLITE" - For SQLite Databases using aiosqlite driver
  • "POSTGRESQL" - For PostgreSQL Databases using asyncpg driver
  • "MONGODB" - For MongoDB Databases using motor driver
  • "UNQLITE" - For UnQLite Databases using unqlite+asyncio driver

Next Steps:

Next steps involve extending the support for new communication technologies.

  • "FILE" - For File operations using aiofiles driver
  • "WEBSOCKET" - For WebSocket connections using websockets driver
  • "MQTT" - For MQTT connections using asyncio-mqtt driver
  • "REDIS" - For Redis Databases using aioredis driver
  • "CASSANDRA" - For Cassandra Databases using cassandra-driver with asyncio support

Change Log

VERSION="0.0.21" LAST_UPDATE="11/02/2026"

  • Added a mechanism to automatically get the expected output from the ontology and add the expected response schema.
  • Added to the example the updates required to test the new feature of response schema.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ontologytoapi-0.0.21.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ontologytoapi-0.0.21-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file ontologytoapi-0.0.21.tar.gz.

File metadata

  • Download URL: ontologytoapi-0.0.21.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ontologytoapi-0.0.21.tar.gz
Algorithm Hash digest
SHA256 43a6a9124a8f662c9a2433f8ff1464979788f235ab4471e6404365dba850ee26
MD5 6006c65c0fd4c7a7fef6a45bbf72661e
BLAKE2b-256 9ac7f179a72f9d3bfc623fe7373462170204086870084ba47231dddd75d237a7

See more details on using hashes here.

File details

Details for the file ontologytoapi-0.0.21-py3-none-any.whl.

File metadata

  • Download URL: ontologytoapi-0.0.21-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ontologytoapi-0.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 e037bf83f2d800be23b6bcccf96632767305fbea90c5578c45e8ffe42f486857
MD5 b09ac0ce3ab0ab394c961c1340d49309
BLAKE2b-256 19d38af2f02ded0824b601e7c8e529b457329401523197dc16e0a88e1fa37974

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page