跳到正文

医学公开数据库查询与登记

使用有明确接口的公开数据库查询方法保存请求、筛选、分页与来源,可用于医学文献、临床试验及药物资料检索。

开源精选医疗业务86 个文件50,135 Stars浏览次数 0K-Dense-AI/scientific-agent-skills MIT版本 a1043ef
开始使用

下载前阅读 SKILL.md 中的使用条件,并确认所用工具支持对应能力。

输入资料
指定数据库和查询问题 实际接口、筛选条件及使用范围 阅读本节完整说明
交付内容
可复查的查询资料 请求、分页与来源记录 阅读本节完整说明
  1. 获取完整包,保留配套文件的目录结构。
  2. 按照原文准备所需工具、依赖与输入资料。
  3. 阅读对应使用步骤与输入输出说明,在自己的环境中验证结果。

使用提示摘自原文,配套文件保留来源版本;实际运行条件以各包说明为准。

正文

获取原文件

references/chebi.md

Base URLs

  • OLS (Ontology Lookup Service) API: https://www.ebi.ac.uk/ols4/api
  • ChEBI REST API: https://www.ebi.ac.uk/chebi/backend/api/public

Authentication

None required. All endpoints are public.

Rate Limits

No published hard limits. EBI general guidance: reasonable usage.

Important Note

ChEBI 2.0 replaced the deprecated SOAP service with a public REST API. Use ChEBI REST for chemical records and structure searches; OLS4 remains useful for ontology traversal.


1. Search ChEBI Terms

GET https://www.ebi.ac.uk/ols4/api/search?q={query}&ontology=chebi

Example:

GET https://www.ebi.ac.uk/ols4/api/search?q=aspirin&ontology=chebi

Returns JSON with matching ChEBI terms, IDs, definitions, synonyms.

2. Lookup by ChEBI ID

GET https://www.ebi.ac.uk/ols4/api/ontologies/chebi/terms?iri=http://purl.obolibrary.org/obo/CHEBI_{id}

Example:

GET https://www.ebi.ac.uk/ols4/api/ontologies/chebi/terms?iri=http://purl.obolibrary.org/obo/CHEBI_15365

Returns full term details: name, definition, synonyms, xrefs, relationships.

3. Get Term by Short Form

GET https://www.ebi.ac.uk/ols4/api/ontologies/chebi/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FCHEBI_{id}

(Double-encoded IRI in path.)

4. Term Hierarchy — Parents

GET https://www.ebi.ac.uk/ols4/api/ontologies/chebi/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FCHEBI_{id}/parents

5. Term Hierarchy — Children

GET https://www.ebi.ac.uk/ols4/api/ontologies/chebi/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FCHEBI_{id}/children

6. Ontology Metadata

GET https://www.ebi.ac.uk/ols4/api/ontologies/chebi

OLS Search Response Format

{
  "response": {
    "numFound": 5,
    "docs": [
      {
        "id": "chebi:15365",
        "iri": "http://purl.obolibrary.org/obo/CHEBI_15365",
        "label": "aspirin",
        "description": ["A member of the class of benzoic acids..."],
        "short_form": "CHEBI_15365",
        "obo_id": "CHEBI:15365",
        "ontology_name": "chebi",
        "type": "class"
      }
    ]
  }
}

ChEBI 2.0 REST endpoints

GET path (relative to the ChEBI REST base) Parameters / purpose
/compound/{chebi_id}/ Full entity; numeric ID or CHEBI: prefix
/es_search/ term required; page=1, size=15 defaults
/ontology/parents/{chebi_id}/ Ontology parents
/ontology/children/{chebi_id}/ Ontology children
/structure_search/ smiles, `search_type=connectivity
/molfile/{id}/ Structure file

For similarity search, use similarity between 0.4 and 1.0. The default three_star_only=true limits structure results to three-star entries; explicitly set false when two-star entries are also in scope. Search pagination uses page and size. The current schema leaves several response bodies unspecified; inspect the returned JSON before choosing field paths, and do not assume OLS's response.docs envelope applies to ChEBI REST.

Illustrative request:

curl --fail-with-body --get 'https://www.ebi.ac.uk/chebi/backend/api/public/es_search/' \
  --data-urlencode 'term=aspirin' --data-urlencode 'page=1' --data-urlencode 'size=5'

Reviewed 2026-09-30: ChEBI OpenAPI, ChEBI 2.0 migration.

CONTACT HAONAN

联系haonan

医疗 AI · 产品与独立开发

刘浩南

关注医疗 AI 从 demo 到真实落地,聚焦产品化、商业化与院内工作流效率提升。

12年医疗产研经验,大湾区头部医疗AI公司前产品总监,独立开发者

医疗 AI 产品化医疗 AI 商业化院内工作流效率
刘浩南的微信联系二维码
微信扫一扫,联系 haonan