{"id":19710812,"url":"https://github.com/vemonet/ontogpt-api","last_synced_at":"2025-08-22T06:14:14.204Z","repository":{"id":93871182,"uuid":"605005343","full_name":"vemonet/ontogpt-api","owner":"vemonet","description":"⛏️ An API to extract informations from text using OntoGPT","archived":false,"fork":false,"pushed_at":"2023-11-06T15:23:54.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T20:30:08.838Z","etag":null,"topics":["gpt-3","linkml","ontology"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vemonet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-02-22T08:40:05.000Z","updated_at":"2024-01-30T12:07:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"f554e229-c11f-4929-bdf2-5b9eb76663d6","html_url":"https://github.com/vemonet/ontogpt-api","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"ffb0a9b95acea96b738f3507949569673c99ebb2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vemonet/ontogpt-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vemonet%2Fontogpt-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vemonet%2Fontogpt-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vemonet%2Fontogpt-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vemonet%2Fontogpt-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vemonet","download_url":"https://codeload.github.com/vemonet/ontogpt-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vemonet%2Fontogpt-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271594379,"owners_count":24786707,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gpt-3","linkml","ontology"],"created_at":"2024-11-11T22:08:35.325Z","updated_at":"2025-08-22T06:14:14.154Z","avatar_url":"https://github.com/vemonet.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# ⛏️ OntoGPT API\n\n\u003c/div\u003e\n\nAn API to extract informations from text using [OntoGPT](https://github.com/monarch-initiative/ontogpt).\n\n## 🧑‍💻 Development setup\n\nTo run the API locally for development.\n\n\n### 📥️ Clone\n\nClone the repository:\n\n```bash\ngit clone https://github.com/vemonet/ontogpt-api\ncd ontogpt-api\n```\n### 🐣 Install dependencies\n\nInstall [Hatch](https://hatch.pypa.io), this will automatically handle virtual environments and make sure all dependencies are installed when you run a script in the project:\n\n```bash\npip install --upgrade hatch\n```\n\nInstall the dependencies in a local virtual environment:\n\n```bash\nhatch -v env create\n```\n\nCreate a `.env` file with your BioPortal and OpenAI API keys required to run OntoGPT:\n\n```bash\nBIOPORTAL_APIKEY=XXX\nOPENAI_APIKEY=XXX\n```\n\n###  🚀 Run the API\n\nOn http://localhost:8000\n\n```bash\nhatch run dev\n```\n\n### 🧹 Code formatting\n\nThe code will be automatically formatted when you commit your changes using `pre-commit`. But you can also run the script to format the code yourself:\n\n```\nhatch run fmt\n```\n\nCheck the code for errors, and if it is in accordance with the PEP8 style guide, by running `flake8` and `mypy`:\n\n```\nhatch run check\n```\n\n### ♻️ Reset the environment\n\nIn case you are facing issues with dependencies not updating properly you can easily reset the virtual environment with:\n\n```bash\nhatch env prune\n```\n\n## 🐳 Deploy in production with docker\n\nCreate a `.env` file with your BioPortal and OpenAI API keys:\n\n```bash\nBIOPORTAL_APIKEY=XXX\nOPENAI_APIKEY=XXX\n```\n\nDeploy with docker-compose:\n\n```bash\ndocker-compose up\n```\n\n\u003e Access on http://localhost:8000\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvemonet%2Fontogpt-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvemonet%2Fontogpt-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvemonet%2Fontogpt-api/lists"}