Skip to content

Commit 2f7b68c

Browse files
feat: add client code for accessing the registry.
1 parent 2d7495c commit 2f7b68c

3 files changed

Lines changed: 338 additions & 144 deletions

File tree

ontograph/__init__.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
from ontograph.ontology_registry import OBORegistryAdapter
2-
from ontograph.ontology_loader import ProntoLoaderAdapter
1+
from ontograph.client import registry # , load
32

4-
from ontograph.config.settings import DEFAULT_CACHE_DIR
5-
from pathlib import Path
6-
7-
cache_dir = DEFAULT_CACHE_DIR
8-
9-
10-
# Public API
11-
def registry(cache_dir: str | None) -> OBORegistryAdapter:
12-
"""
13-
Entry point for accessing ontology registry.
14-
"""
15-
registry = OBORegistryAdapter(cache_dir=Path(cache_dir))
16-
return registry
3+
__all__ = ['registry', 'load']

0 commit comments

Comments
 (0)