pymetadata 0.4.1__tar.gz → 0.4.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pymetadata might be problematic. Click here for more details.
- {pymetadata-0.4.1/src/pymetadata.egg-info → pymetadata-0.4.2}/PKG-INFO +27 -36
- {pymetadata-0.4.1 → pymetadata-0.4.2}/README.rst +13 -21
- {pymetadata-0.4.1 → pymetadata-0.4.2}/setup.cfg +16 -17
- {pymetadata-0.4.1 → pymetadata-0.4.2}/setup.py +1 -1
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/__init__.py +1 -1
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/identifiers/registry.py +1 -16
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/metadata/kisao.py +10 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/omex.py +1 -1
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/ontologies/ols.py +5 -9
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/ontologies/ontology.py +1 -1
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/resources/identifiers_registry.json +578 -338
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/unichem.py +6 -5
- {pymetadata-0.4.1 → pymetadata-0.4.2/src/pymetadata.egg-info}/PKG-INFO +27 -36
- pymetadata-0.4.2/src/pymetadata.egg-info/requires.txt +22 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/tests/test_unichem.py +1 -1
- pymetadata-0.4.1/src/pymetadata.egg-info/requires.txt +0 -23
- {pymetadata-0.4.1 → pymetadata-0.4.2}/LICENSE +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/MANIFEST.in +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/cache.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/chebi.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/console.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/core/__init__.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/core/annotation.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/core/creator.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/core/synonym.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/core/xref.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/examples/__init__.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/examples/omex_example.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/identifiers/__init__.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/identifiers/miriam.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/log.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/metadata/__init__.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/metadata/eco.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/metadata/sbo.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/omex_v2.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/ontologies/__init__.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/py.typed +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/resources/chebi_webservice_wsdl.xml +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata/resources/templates/ontology_enum.pytemplate +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata.egg-info/SOURCES.txt +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata.egg-info/dependency_links.txt +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata.egg-info/top_level.txt +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/src/pymetadata.egg-info/zip-safe +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/tests/test_chebi.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/tests/test_ols.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/tests/test_omex.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/tests/test_ontology.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/tests/test_registry.py +0 -0
- {pymetadata-0.4.1 → pymetadata-0.4.2}/tests/test_sbo_kisao.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pymetadata
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: pymetadata are python utilities for working with metadata.
|
|
5
5
|
Home-page: https://github.com/matthiaskoenig/pymetadata
|
|
6
6
|
Download-URL: https://pypi.org/project/pymetadata
|
|
@@ -28,27 +28,26 @@ Requires-Python: >=3.9
|
|
|
28
28
|
Description-Content-Type: text/x-rst
|
|
29
29
|
License-File: LICENSE
|
|
30
30
|
Requires-Dist: depinfo>=1.7
|
|
31
|
-
Requires-Dist:
|
|
32
|
-
Requires-Dist:
|
|
33
|
-
Requires-Dist: rich>=13.6
|
|
31
|
+
Requires-Dist: lxml>=5.2
|
|
32
|
+
Requires-Dist: rich>=13.7
|
|
34
33
|
Requires-Dist: requests>=2.31
|
|
35
34
|
Requires-Dist: zeep>=4.2.1
|
|
36
|
-
Requires-Dist: pronto>=2.5.
|
|
37
|
-
Requires-Dist: fastobo>=0.12.
|
|
38
|
-
Requires-Dist: jinja2>=3.1
|
|
35
|
+
Requires-Dist: pronto>=2.5.6
|
|
36
|
+
Requires-Dist: fastobo>=0.12.3
|
|
37
|
+
Requires-Dist: jinja2>=3.1
|
|
39
38
|
Requires-Dist: xmltodict>=0.13.0
|
|
40
|
-
Requires-Dist: pydantic>=2.
|
|
39
|
+
Requires-Dist: pydantic>=2.6
|
|
41
40
|
Provides-Extra: development
|
|
42
|
-
Requires-Dist: pip-tools
|
|
43
|
-
Requires-Dist: black>=24.
|
|
41
|
+
Requires-Dist: pip-tools>=7.4.1; extra == "development"
|
|
42
|
+
Requires-Dist: black>=24.3.0; extra == "development"
|
|
44
43
|
Requires-Dist: bump2version>=1.0.1; extra == "development"
|
|
45
44
|
Requires-Dist: isort>=5.13.2; extra == "development"
|
|
46
|
-
Requires-Dist: tox>=4.12.
|
|
47
|
-
Requires-Dist: flake8>=
|
|
45
|
+
Requires-Dist: tox>=4.12.2; extra == "development"
|
|
46
|
+
Requires-Dist: flake8>=7.0.0; extra == "development"
|
|
48
47
|
Requires-Dist: flake8-mypy>=17.8.0; extra == "development"
|
|
49
|
-
Requires-Dist: mypy>=1.
|
|
50
|
-
Requires-Dist: pytest>=8.
|
|
51
|
-
Requires-Dist: pytest-cov>=
|
|
48
|
+
Requires-Dist: mypy>=1.9.0; extra == "development"
|
|
49
|
+
Requires-Dist: pytest>=8.1.1; extra == "development"
|
|
50
|
+
Requires-Dist: pytest-cov>=5.0.0; extra == "development"
|
|
52
51
|
|
|
53
52
|
.. image:: https://github.com/matthiaskoenig/pymetadata/raw/develop/docs/images/favicon/pymetadata-100x100-300dpi.png
|
|
54
53
|
:align: left
|
|
@@ -56,36 +55,28 @@ Requires-Dist: pytest-cov>=4.1.0; extra == "development"
|
|
|
56
55
|
|
|
57
56
|
pymetadata: python utilities for metadata and COMBINE archives
|
|
58
57
|
==============================================================
|
|
58
|
+
|icon1| |icon2| |icon3| |icon4| |icon5| |icon6| |icon7|
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
|
|
61
|
+
.. |icon1| image:: https://github.com/matthiaskoenig/pymetadata/workflows/CI-CD/badge.svg
|
|
61
62
|
:target: https://github.com/matthiaskoenig/pymetadata/workflows/CI-CD
|
|
62
63
|
:alt: GitHub Actions CI/CD Status
|
|
63
|
-
|
|
64
|
-
.. image:: https://img.shields.io/pypi/v/pymetadata.svg
|
|
64
|
+
.. |icon2| image:: https://img.shields.io/pypi/v/pymetadata.svg
|
|
65
65
|
:target: https://pypi.org/project/pymetadata/
|
|
66
66
|
:alt: Current PyPI Version
|
|
67
|
-
|
|
68
|
-
.. image:: https://img.shields.io/pypi/pyversions/pymetadata.svg
|
|
67
|
+
.. |icon3| image:: https://img.shields.io/pypi/pyversions/pymetadata.svg
|
|
69
68
|
:target: https://pypi.org/project/pymetadata/
|
|
70
69
|
:alt: Supported Python Versions
|
|
71
|
-
|
|
72
|
-
.. image:: https://img.shields.io/pypi/l/pymetadata.svg
|
|
70
|
+
.. |icon4| image:: https://img.shields.io/pypi/l/pymetadata.svg
|
|
73
71
|
:target: http://opensource.org/licenses/LGPL-3.0
|
|
74
72
|
:alt: GNU Lesser General Public License 3
|
|
75
|
-
|
|
76
|
-
.. image:: https://codecov.io/gh/matthiaskoenig/pymetadata/branch/develop/graph/badge.svg
|
|
77
|
-
:target: https://codecov.io/gh/matthiaskoenig/pymetadata
|
|
78
|
-
:alt: Codecov
|
|
79
|
-
|
|
80
|
-
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5308801.svg
|
|
73
|
+
.. |icon5| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5308801.svg
|
|
81
74
|
:target: https://doi.org/10.5281/zenodo.5308801
|
|
82
75
|
:alt: Zenodo DOI
|
|
83
|
-
|
|
84
|
-
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
76
|
+
.. |icon6| image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
85
77
|
:target: https://github.com/ambv/black
|
|
86
78
|
:alt: Black
|
|
87
|
-
|
|
88
|
-
.. image:: http://www.mypy-lang.org/static/mypy_badge.svg
|
|
79
|
+
.. |icon7| image:: http://www.mypy-lang.org/static/mypy_badge.svg
|
|
89
80
|
:target: http://mypy-lang.org/
|
|
90
81
|
:alt: mypy
|
|
91
82
|
|
|
@@ -140,11 +131,11 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
140
131
|
|
|
141
132
|
Funding
|
|
142
133
|
=======
|
|
143
|
-
Matthias König
|
|
134
|
+
Matthias König was supported by the Federal Ministry of Education and Research (BMBF, Germany)
|
|
144
135
|
within the research network Systems Medicine of the Liver (**LiSyM**, grant number 031L0054)
|
|
145
|
-
and by the German Research Foundation (DFG) within the Research Unit Programme FOR 5151
|
|
136
|
+
and is supported by the German Research Foundation (DFG) within the Research Unit Programme FOR 5151
|
|
146
137
|
"`QuaLiPerF <https://qualiperf.de>`__ (Quantifying Liver Perfusion-Function Relationship in Complex Resection -
|
|
147
|
-
A Systems Medicine Approach)" by grant number 436883643 and by grant number 465194077 (Priority Programme SPP 2311, Subproject SimLivA)
|
|
138
|
+
A Systems Medicine Approach)" by grant number 436883643 and by grant number 465194077 (Priority Programme SPP 2311, Subproject SimLivA), and
|
|
148
139
|
|
|
149
140
|
Installation
|
|
150
141
|
============
|
|
@@ -169,4 +160,4 @@ To install for development use::
|
|
|
169
160
|
|
|
170
161
|
pip install -e .[development]
|
|
171
162
|
|
|
172
|
-
© 2021-
|
|
163
|
+
© 2021-2024 Matthias König
|
|
@@ -4,36 +4,28 @@
|
|
|
4
4
|
|
|
5
5
|
pymetadata: python utilities for metadata and COMBINE archives
|
|
6
6
|
==============================================================
|
|
7
|
+
|icon1| |icon2| |icon3| |icon4| |icon5| |icon6| |icon7|
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
.. |icon1| image:: https://github.com/matthiaskoenig/pymetadata/workflows/CI-CD/badge.svg
|
|
9
11
|
:target: https://github.com/matthiaskoenig/pymetadata/workflows/CI-CD
|
|
10
12
|
:alt: GitHub Actions CI/CD Status
|
|
11
|
-
|
|
12
|
-
.. image:: https://img.shields.io/pypi/v/pymetadata.svg
|
|
13
|
+
.. |icon2| image:: https://img.shields.io/pypi/v/pymetadata.svg
|
|
13
14
|
:target: https://pypi.org/project/pymetadata/
|
|
14
15
|
:alt: Current PyPI Version
|
|
15
|
-
|
|
16
|
-
.. image:: https://img.shields.io/pypi/pyversions/pymetadata.svg
|
|
16
|
+
.. |icon3| image:: https://img.shields.io/pypi/pyversions/pymetadata.svg
|
|
17
17
|
:target: https://pypi.org/project/pymetadata/
|
|
18
18
|
:alt: Supported Python Versions
|
|
19
|
-
|
|
20
|
-
.. image:: https://img.shields.io/pypi/l/pymetadata.svg
|
|
19
|
+
.. |icon4| image:: https://img.shields.io/pypi/l/pymetadata.svg
|
|
21
20
|
:target: http://opensource.org/licenses/LGPL-3.0
|
|
22
21
|
:alt: GNU Lesser General Public License 3
|
|
23
|
-
|
|
24
|
-
.. image:: https://codecov.io/gh/matthiaskoenig/pymetadata/branch/develop/graph/badge.svg
|
|
25
|
-
:target: https://codecov.io/gh/matthiaskoenig/pymetadata
|
|
26
|
-
:alt: Codecov
|
|
27
|
-
|
|
28
|
-
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5308801.svg
|
|
22
|
+
.. |icon5| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5308801.svg
|
|
29
23
|
:target: https://doi.org/10.5281/zenodo.5308801
|
|
30
24
|
:alt: Zenodo DOI
|
|
31
|
-
|
|
32
|
-
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
25
|
+
.. |icon6| image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
33
26
|
:target: https://github.com/ambv/black
|
|
34
27
|
:alt: Black
|
|
35
|
-
|
|
36
|
-
.. image:: http://www.mypy-lang.org/static/mypy_badge.svg
|
|
28
|
+
.. |icon7| image:: http://www.mypy-lang.org/static/mypy_badge.svg
|
|
37
29
|
:target: http://mypy-lang.org/
|
|
38
30
|
:alt: mypy
|
|
39
31
|
|
|
@@ -88,11 +80,11 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
88
80
|
|
|
89
81
|
Funding
|
|
90
82
|
=======
|
|
91
|
-
Matthias König
|
|
83
|
+
Matthias König was supported by the Federal Ministry of Education and Research (BMBF, Germany)
|
|
92
84
|
within the research network Systems Medicine of the Liver (**LiSyM**, grant number 031L0054)
|
|
93
|
-
and by the German Research Foundation (DFG) within the Research Unit Programme FOR 5151
|
|
85
|
+
and is supported by the German Research Foundation (DFG) within the Research Unit Programme FOR 5151
|
|
94
86
|
"`QuaLiPerF <https://qualiperf.de>`__ (Quantifying Liver Perfusion-Function Relationship in Complex Resection -
|
|
95
|
-
A Systems Medicine Approach)" by grant number 436883643 and by grant number 465194077 (Priority Programme SPP 2311, Subproject SimLivA)
|
|
87
|
+
A Systems Medicine Approach)" by grant number 436883643 and by grant number 465194077 (Priority Programme SPP 2311, Subproject SimLivA), and
|
|
96
88
|
|
|
97
89
|
Installation
|
|
98
90
|
============
|
|
@@ -117,4 +109,4 @@ To install for development use::
|
|
|
117
109
|
|
|
118
110
|
pip install -e .[development]
|
|
119
111
|
|
|
120
|
-
© 2021-
|
|
112
|
+
© 2021-2024 Matthias König
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[bumpversion]
|
|
2
|
-
current_version = 0.4.
|
|
2
|
+
current_version = 0.4.2
|
|
3
3
|
commit = True
|
|
4
4
|
tag = True
|
|
5
5
|
parse = (?P<major>\d+)
|
|
@@ -52,19 +52,18 @@ zip_safe = True
|
|
|
52
52
|
python_requires = >=3.9
|
|
53
53
|
install_requires =
|
|
54
54
|
depinfo>=1.7
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
rich>=13.6
|
|
55
|
+
lxml>=5.2
|
|
56
|
+
rich>=13.7
|
|
58
57
|
requests>=2.31
|
|
59
58
|
zeep>=4.2.1
|
|
60
|
-
pronto>=2.5.
|
|
61
|
-
fastobo>=0.12.
|
|
62
|
-
jinja2>=3.1
|
|
59
|
+
pronto>=2.5.6
|
|
60
|
+
fastobo>=0.12.3
|
|
61
|
+
jinja2>=3.1
|
|
63
62
|
xmltodict>=0.13.0
|
|
64
|
-
pydantic>=2.
|
|
63
|
+
pydantic>=2.6
|
|
65
64
|
tests_require =
|
|
66
|
-
tox>=
|
|
67
|
-
pytest
|
|
65
|
+
tox>=4.14.2
|
|
66
|
+
pytest>=8.1.1
|
|
68
67
|
packages = find:
|
|
69
68
|
package_dir =
|
|
70
69
|
= src
|
|
@@ -81,16 +80,16 @@ where = src
|
|
|
81
80
|
|
|
82
81
|
[options.extras_require]
|
|
83
82
|
development =
|
|
84
|
-
pip-tools
|
|
85
|
-
black>=24.
|
|
83
|
+
pip-tools>=7.4.1
|
|
84
|
+
black>=24.3.0
|
|
86
85
|
bump2version>=1.0.1
|
|
87
86
|
isort>=5.13.2
|
|
88
|
-
tox>=4.12.
|
|
89
|
-
flake8>=
|
|
87
|
+
tox>=4.12.2
|
|
88
|
+
flake8>=7.0.0
|
|
90
89
|
flake8-mypy>=17.8.0
|
|
91
|
-
mypy>=1.
|
|
92
|
-
pytest>=8.
|
|
93
|
-
pytest-cov>=
|
|
90
|
+
mypy>=1.9.0
|
|
91
|
+
pytest>=8.1.1
|
|
92
|
+
pytest-cov>=5.0.0
|
|
94
93
|
|
|
95
94
|
[bdist_wheel]
|
|
96
95
|
universal = 1
|
|
@@ -187,18 +187,6 @@ def ols_namespaces() -> Dict[str, Namespace]:
|
|
|
187
187
|
description="MONDO",
|
|
188
188
|
namespaceEmbeddedInLui=True,
|
|
189
189
|
),
|
|
190
|
-
Namespace(
|
|
191
|
-
id=None,
|
|
192
|
-
prefix="stato",
|
|
193
|
-
pattern=r"^STATO:\d+$",
|
|
194
|
-
name="STATO",
|
|
195
|
-
description="STATO is the statistical methods ontology. It contains "
|
|
196
|
-
"concepts and properties related to statistical methods, "
|
|
197
|
-
"probability distributions and other concepts related to "
|
|
198
|
-
"statistical analysis, including relationships to study "
|
|
199
|
-
"designs and plots.",
|
|
200
|
-
namespaceEmbeddedInLui=True,
|
|
201
|
-
),
|
|
202
190
|
Namespace(
|
|
203
191
|
id=None,
|
|
204
192
|
prefix="atol",
|
|
@@ -349,7 +337,7 @@ class Registry:
|
|
|
349
337
|
registry_path: Optional[Path] = None,
|
|
350
338
|
) -> Dict[str, Namespace]:
|
|
351
339
|
"""Update registry from identifiers.org webservice."""
|
|
352
|
-
logger.
|
|
340
|
+
logger.info(f"Update registry from '{Registry.URL}'")
|
|
353
341
|
response = requests.get(Registry.URL)
|
|
354
342
|
namespaces = response.json()["payload"]["namespaces"]
|
|
355
343
|
|
|
@@ -374,9 +362,6 @@ class Registry:
|
|
|
374
362
|
ns_dict[ns.prefix] = ns
|
|
375
363
|
|
|
376
364
|
if custom_namespaces is not None:
|
|
377
|
-
logger.warning(
|
|
378
|
-
f"Adding custom namespaces: {sorted(custom_namespaces.keys())}"
|
|
379
|
-
)
|
|
380
365
|
for key, ns in custom_namespaces.items():
|
|
381
366
|
if key in ns_dict:
|
|
382
367
|
logger.error(
|
|
@@ -481,6 +481,8 @@ _terms = {
|
|
|
481
481
|
"KISAO_0000695": "parameters for",
|
|
482
482
|
"KISAO_0000696": "steady state root-finding problem",
|
|
483
483
|
"KISAO_0000697": "SDE solver",
|
|
484
|
+
"KISAO_0000698": "particle coordinates",
|
|
485
|
+
"KISAO_0000699": "DAE Solver",
|
|
484
486
|
"KISAO_0000800": "systems property",
|
|
485
487
|
"KISAO_0000801": "concentration control coefficient matrix (unscaled)",
|
|
486
488
|
"KISAO_0000802": "control coefficient (scaled)",
|
|
@@ -2455,6 +2457,14 @@ class KISAO(str, Enum):
|
|
|
2455
2457
|
KISAO_0000697 = "KISAO_0000697"
|
|
2456
2458
|
SDE_SOLVER = "KISAO_0000697"
|
|
2457
2459
|
|
|
2460
|
+
# particle coordinates
|
|
2461
|
+
KISAO_0000698 = "KISAO_0000698"
|
|
2462
|
+
PARTICLE_COORDINATES = "KISAO_0000698"
|
|
2463
|
+
|
|
2464
|
+
# DAE Solver
|
|
2465
|
+
KISAO_0000699 = "KISAO_0000699"
|
|
2466
|
+
DAE_SOLVER = "KISAO_0000699"
|
|
2467
|
+
|
|
2458
2468
|
# systems property
|
|
2459
2469
|
KISAO_0000800 = "KISAO_0000800"
|
|
2460
2470
|
SYSTEMS_PROPERTY = "KISAO_0000800"
|
|
@@ -33,7 +33,7 @@ logger = log.get_logger(__name__)
|
|
|
33
33
|
__all__ = ["EntryFormat", "ManifestEntry", "Manifest", "Omex"]
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
IDENTIFIERS_PREFIX = "http://identifiers.org/combine.specifications
|
|
36
|
+
IDENTIFIERS_PREFIX = "http://identifiers.org/combine.specifications/"
|
|
37
37
|
PURL_PREFIX = "https://purl.org/NET/mediatypes/"
|
|
38
38
|
|
|
39
39
|
|
|
@@ -80,13 +80,13 @@ class OLSQuery:
|
|
|
80
80
|
cache: bool = CACHE_USE,
|
|
81
81
|
):
|
|
82
82
|
"""Initialize OLSQuery."""
|
|
83
|
-
self.ontologies = {
|
|
83
|
+
self.ontologies: Dict[str, OLSOntology] = {
|
|
84
84
|
ontology.name: ontology for ontology in ontologies
|
|
85
|
-
}
|
|
85
|
+
}
|
|
86
86
|
self.cache_path = cache_path / "ols"
|
|
87
87
|
self.cache = cache
|
|
88
88
|
|
|
89
|
-
if not self.cache_path.exists():
|
|
89
|
+
if cache and not self.cache_path.exists():
|
|
90
90
|
self.cache_path.mkdir(parents=True)
|
|
91
91
|
|
|
92
92
|
def get_iri(self, ontology: str, term: str) -> str:
|
|
@@ -137,11 +137,6 @@ class OLSQuery:
|
|
|
137
137
|
# double urlencode iri for OLS
|
|
138
138
|
urliri = urllib.parse.quote(iri, safe="")
|
|
139
139
|
urliri = urllib.parse.quote(urliri, safe="")
|
|
140
|
-
# urliri = iri.replace(":", "%253A")
|
|
141
|
-
# urliri = urliri.replace("/", "%252F")
|
|
142
|
-
|
|
143
|
-
# term_id = term.split(":")[-1]
|
|
144
|
-
# url = ols_pattern.replace('{$id}', term_id)
|
|
145
140
|
cache_path = self.cache_path / f"{urliri}.json"
|
|
146
141
|
data: Dict[str, Any] = {}
|
|
147
142
|
if self.cache:
|
|
@@ -177,7 +172,8 @@ class OLSQuery:
|
|
|
177
172
|
else:
|
|
178
173
|
data["errors"] = []
|
|
179
174
|
data["warnings"] = []
|
|
180
|
-
|
|
175
|
+
if self.cache:
|
|
176
|
+
write_json_cache(data=data, cache_path=cache_path) # type: ignore
|
|
181
177
|
|
|
182
178
|
return data
|
|
183
179
|
|