← Về thư mục
skills/ontology-term-resolution/scripts/ols_client.py
- OlsError · class · L57-L58 — class OlsError(RuntimeError)
- _request · function · L61-L84 — def _request(path: str, params: dict[str, Any] | None = None) -> dict
- search · function · L87-L115 — def search( text: str, *, ontology: str | None = None, query_fields: str | None = "label,synonym", exact: bool = True, subtree_iri: str | None = None, rows: int = 10, include_obsolete: bool = False, ) -> list[dict]
- candidate_iris · function · L118-L127 — def candidate_iris(curie: str) -> list[str]
- _terms_by_iri · function · L130-L138 — def _terms_by_iri(iri: str) -> list[dict]
- term_detail · function · L141-L187 — def term_detail(curie: str) -> dict | None
- iri_for · function · L190-L193 — def iri_for(curie: str) -> str | None
- ancestor_curies · function · L196-L223 — def ancestor_curies(curie: str) -> set[str]
- is_curie · function · L231-L233 — def is_curie(value: str) -> bool
- curie_to_ontology_id · function · L236-L246 — def curie_to_ontology_id(curie: str) -> str | None
- iri_to_curie · function · L249-L265 — def iri_to_curie(iri: str) -> str | None
- normalize_label · function · L268-L274 — def normalize_label(text: str) -> str
- synonyms_of · function · L277-L291 — def synonyms_of(doc: dict) -> list[str]
- match_type · function · L294-L305 — def match_type(query: str, doc: dict) -> str
- dedupe_candidates · function · L308-L325 — def dedupe_candidates(docs: list[dict]) -> list[dict]
- rank_candidates · function · L328-L341 — def rank_candidates(query: str, docs: list[dict]) -> list[dict]