Skip to content

Commit 3ed0a2f

Browse files
authored
Typing and minor updates (#496)
1 parent 07a0571 commit 3ed0a2f

46 files changed

Lines changed: 274 additions & 137 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/source/cli.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
Command Line Interface
2-
======================
1+
########################
2+
Command Line Interface
3+
########################
34

45
pyobo automatically installs the command ``pyobo``. See ``pyobo --help`` for usage
56
details.

docs/source/functional.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
Functional OWL
2-
==============
1+
################
2+
Functional OWL
3+
################
34

45
.. automodapi:: pyobo.struct.functional.dsl
56

docs/source/index.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
PyOBO |release| Documentation
2-
=============================
1+
###############################
2+
PyOBO |release| Documentation
3+
###############################
34

45
.. toctree::
56
:maxdepth: 2
@@ -13,8 +14,9 @@ PyOBO |release| Documentation
1314
ner
1415
scispacy
1516

16-
Indices and Tables
17-
------------------
17+
********************
18+
Indices and Tables
19+
********************
1820

1921
- :ref:`genindex`
2022
- :ref:`modindex`

docs/source/installation.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
Installation
2-
============
1+
##############
2+
Installation
3+
##############
34

45
The most recent release can be installed from `PyPI <https://pypi.org/project/pyobo>`_
56
with uv:
@@ -14,8 +15,9 @@ or with pip:
1415
1516
$ python3 -m pip install pyobo
1617
17-
Installing from git
18-
-------------------
18+
*********************
19+
Installing from git
20+
*********************
1921

2022
The most recent code and data can be installed directly from GitHub with uv:
2123

@@ -29,8 +31,9 @@ or with pip:
2931
3032
$ python3 -m pip install git+https://github.com/biopragmatics/pyobo.git
3133
32-
Installing for development
33-
--------------------------
34+
****************************
35+
Installing for development
36+
****************************
3437

3538
To install in development mode with uv:
3639

docs/source/ner.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
Named Entity Recognition
2-
========================
1+
##########################
2+
Named Entity Recognition
3+
##########################
34

45
PyOBO has high-level wrappers to construct literal mapping objects defined by
56
:mod:`ssslm.LiteralMapping`, which can be used to construct generic named entity

docs/source/scispacy.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
ScispaCy Integration
2-
====================
1+
######################
2+
ScispaCy Integration
3+
######################
34

45
.. automodapi:: pyobo.ner.scispacy_utils
56
:no-heading:

docs/source/usage.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
Reference
2-
=========
1+
###########
2+
Reference
3+
###########
34

45
.. automodapi:: pyobo
56
:no-heading:

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ dependencies = [
7070
"cachier",
7171
"pystow>=0.8.11",
7272
"bioversions>=0.10.0",
73-
"bioregistry>=0.13.44",
74-
"ssslm>=0.1.3",
73+
"bioregistry>=0.13.48",
74+
"ssslm>=0.2.0",
7575
"zenodo-client>=0.4.1",
7676
"class_resolver>=0.7.1",
7777
"pydantic>=2.0",
@@ -89,11 +89,12 @@ dependencies = [
8989
#
9090
"typing_extensions",
9191
"rdflib",
92-
"obographs>=0.0.10",
92+
"obographs>=0.0.11",
9393
"sssom_pydantic>=0.5.5",
9494
"pytz",
9595
"robot-obo-tool",
9696
"pyperclip",
97+
"lxml",
9798
]
9899

99100
# see https://peps.python.org/pep-0735/ and https://docs.astral.sh/uv/concepts/dependencies/#dependency-groups

src/pyobo/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
get_relation,
4747
get_relation_mapping,
4848
get_relations_df,
49+
get_semantic_mapping_metadata,
4950
get_semantic_mappings,
5051
get_species,
5152
get_sssom_df,
@@ -154,6 +155,7 @@
154155
"get_scispacy_entities",
155156
"get_scispacy_entity_linker",
156157
"get_scispacy_knowledgebase",
158+
"get_semantic_mapping_metadata",
157159
"get_semantic_mappings",
158160
"get_species",
159161
"get_sssom_df",

src/pyobo/api/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
from .xrefs import (
6666
get_filtered_xrefs,
6767
get_mappings_df,
68+
get_semantic_mapping_metadata,
6869
get_semantic_mappings,
6970
get_sssom_df,
7071
get_xref,
@@ -122,6 +123,7 @@
122123
"get_relation",
123124
"get_relation_mapping",
124125
"get_relations_df",
126+
"get_semantic_mapping_metadata",
125127
"get_semantic_mappings",
126128
"get_species",
127129
"get_sssom_df",

0 commit comments

Comments
 (0)