pymetadata 0.5.0__py3-none-any.whl
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/__init__.py +14 -0
- pymetadata/cache.py +52 -0
- pymetadata/chebi.py +92 -0
- pymetadata/console.py +18 -0
- pymetadata/core/__init__.py +1 -0
- pymetadata/core/annotation.py +396 -0
- pymetadata/core/creator.py +46 -0
- pymetadata/core/synonym.py +12 -0
- pymetadata/core/xref.py +66 -0
- pymetadata/examples/__init__.py +1 -0
- pymetadata/examples/cache_path_example.py +15 -0
- pymetadata/examples/omex_example.py +46 -0
- pymetadata/examples/results/test_from_files.omex +0 -0
- pymetadata/examples/results/test_from_omex.omex +0 -0
- pymetadata/examples/results/testomex/README.md +3 -0
- pymetadata/examples/results/testomex/manifest.xml +9 -0
- pymetadata/examples/results/testomex/models/omex_comp.xml +174 -0
- pymetadata/examples/results/testomex/models/omex_comp_flat.xml +215 -0
- pymetadata/examples/results/testomex/models/omex_minimal.xml +99 -0
- pymetadata/examples/test.omex +0 -0
- pymetadata/identifiers/__init__.py +1 -0
- pymetadata/identifiers/miriam.py +43 -0
- pymetadata/identifiers/registry.py +397 -0
- pymetadata/log.py +29 -0
- pymetadata/metadata/__init__.py +6 -0
- pymetadata/metadata/eco.py +15918 -0
- pymetadata/metadata/kisao.py +2731 -0
- pymetadata/metadata/sbo.py +3754 -0
- pymetadata/omex.py +771 -0
- pymetadata/omex_v2.py +30 -0
- pymetadata/ontologies/__init__.py +1 -0
- pymetadata/ontologies/ols.py +214 -0
- pymetadata/ontologies/ontology.py +312 -0
- pymetadata/py.typed +0 -0
- pymetadata/resources/chebi_webservice_wsdl.xml +509 -0
- pymetadata/resources/ontologies/README.md +4 -0
- pymetadata/resources/templates/ontology_enum.pytemplate +61 -0
- pymetadata/unichem.py +190 -0
- pymetadata-0.5.0.dist-info/METADATA +154 -0
- pymetadata-0.5.0.dist-info/RECORD +42 -0
- pymetadata-0.5.0.dist-info/WHEEL +4 -0
- pymetadata-0.5.0.dist-info/licenses/LICENSE +7 -0
pymetadata/unichem.py
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Unichem metadata.
|
|
3
|
+
|
|
4
|
+
Additional substance information based on inchikeys
|
|
5
|
+
|
|
6
|
+
https://www.ebi.ac.uk/unichem/info/webservices#GetSrcCpdIdsFromKey
|
|
7
|
+
https://www.ebi.ac.uk/unichem/rest/inchikey/AAOVKJBEBIDNHE-UHFFFAOYSA-N
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
import urllib
|
|
11
|
+
from dataclasses import dataclass, field
|
|
12
|
+
from pathlib import Path
|
|
13
|
+
from typing import Dict, List, Optional
|
|
14
|
+
|
|
15
|
+
import requests
|
|
16
|
+
|
|
17
|
+
import pymetadata
|
|
18
|
+
from pymetadata import log
|
|
19
|
+
from pymetadata.cache import DataclassJSONEncoder, read_json_cache, write_json_cache
|
|
20
|
+
from pymetadata.core.xref import CrossReference
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
logger = log.get_logger(__name__)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@dataclass
|
|
27
|
+
class UnichemSource:
|
|
28
|
+
"""Unichem source.
|
|
29
|
+
|
|
30
|
+
src_id (the src_id for this source),
|
|
31
|
+
src_url (the main home page of the source),
|
|
32
|
+
name (the unique name for the source in UniChem, always lower case),
|
|
33
|
+
name_long (the full name of the source, as defined by the source),
|
|
34
|
+
name_label (A name for the source suitable for use as a 'label' for the source within a web-page. Correct case setting for source, and always less than 30 characters),
|
|
35
|
+
description (a description of the content of the source),
|
|
36
|
+
base_id_url_available (an flag indicating whether this source provides a valid base_id_url for creating cpd-specific links [1=yes, 0=no]).
|
|
37
|
+
base_id_url (the base url for constructing hyperlinks to this source [append an identifier from this source to the end of this url to create a valid url to a specific page for this cpd], unless aux_for_url=1),
|
|
38
|
+
aux_for_url (A flag to indicate whether the aux_src field should be used to create hyperlinks instead of the src_compound_id [1=yes, 0=no]
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
sourceID: int
|
|
42
|
+
srcUrl: str
|
|
43
|
+
name: str
|
|
44
|
+
nameLabel: str = field(repr=False)
|
|
45
|
+
nameLong: str = field(repr=False)
|
|
46
|
+
UCICount: int = field(repr=False)
|
|
47
|
+
baseIdUrl: str = field(repr=False)
|
|
48
|
+
description: str = field(repr=False)
|
|
49
|
+
created: str = field(repr=False)
|
|
50
|
+
lastUpdated: str = field(repr=False)
|
|
51
|
+
srcDetails: str = field(repr=False)
|
|
52
|
+
srcReleaseDate: str = field(repr=False)
|
|
53
|
+
srcReleaseNumber: int = field(repr=False)
|
|
54
|
+
updateComments: str = field(repr=False)
|
|
55
|
+
private: bool = field(repr=False)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class UnichemQuery:
|
|
59
|
+
"""Query unichem."""
|
|
60
|
+
|
|
61
|
+
sources: Dict[int, UnichemSource] = {}
|
|
62
|
+
|
|
63
|
+
def __init__(self, cache_path: Optional[Path] = None, cache: Optional[bool] = None):
|
|
64
|
+
"""Initialize UnichemQuery."""
|
|
65
|
+
if cache_path is None:
|
|
66
|
+
cache_path = pymetadata.CACHE_PATH
|
|
67
|
+
if cache is None:
|
|
68
|
+
cache = pymetadata.CACHE_USE
|
|
69
|
+
|
|
70
|
+
self.cache_path: Path = cache_path
|
|
71
|
+
self.cache: bool = cache
|
|
72
|
+
|
|
73
|
+
if not self.sources:
|
|
74
|
+
self.sources = self.get_sources()
|
|
75
|
+
|
|
76
|
+
def get_sources(self) -> Dict[int, UnichemSource]:
|
|
77
|
+
"""Retrieve or query the sources."""
|
|
78
|
+
|
|
79
|
+
sources: Dict[int, UnichemSource]
|
|
80
|
+
unichem_sources_path = self.cache_path / "unichem_sources.json"
|
|
81
|
+
|
|
82
|
+
data: Dict
|
|
83
|
+
if self.cache and unichem_sources_path.exists():
|
|
84
|
+
data = read_json_cache(unichem_sources_path)
|
|
85
|
+
sources = {int(k): UnichemSource(**v) for k, v in data.items()}
|
|
86
|
+
else:
|
|
87
|
+
# query data
|
|
88
|
+
url = "https://www.ebi.ac.uk/unichem/api/v1/sources/"
|
|
89
|
+
response = requests.get(url)
|
|
90
|
+
data = response.json()
|
|
91
|
+
if data["response"].lower() != "success":
|
|
92
|
+
raise IOError(f"Could not query UniChem sources: '{data}'")
|
|
93
|
+
|
|
94
|
+
sources_list: List[UnichemSource] = [
|
|
95
|
+
UnichemSource(**v) for v in data["sources"]
|
|
96
|
+
]
|
|
97
|
+
sources = {source.sourceID: source for source in sources_list}
|
|
98
|
+
|
|
99
|
+
# write cache
|
|
100
|
+
if self.cache:
|
|
101
|
+
write_json_cache(
|
|
102
|
+
data=sources,
|
|
103
|
+
cache_path=unichem_sources_path,
|
|
104
|
+
json_encoder=DataclassJSONEncoder,
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
return sources
|
|
108
|
+
|
|
109
|
+
def query_xrefs_for_inchikey(self, inchikey: str) -> List[CrossReference]:
|
|
110
|
+
"""Get the cross references for a given inchikey."""
|
|
111
|
+
|
|
112
|
+
# cache files
|
|
113
|
+
xref_base_path = self.cache_path / "unichem"
|
|
114
|
+
if not xref_base_path.exists():
|
|
115
|
+
xref_base_path.mkdir(parents=True)
|
|
116
|
+
xref_path = xref_base_path / f"{inchikey}.json"
|
|
117
|
+
|
|
118
|
+
# retrieve or query data
|
|
119
|
+
data: Dict
|
|
120
|
+
if self.cache and xref_path.exists():
|
|
121
|
+
data = read_json_cache(xref_path)
|
|
122
|
+
else:
|
|
123
|
+
url = f"https://www.ebi.ac.uk/unichem/rest/inchikey/{inchikey}"
|
|
124
|
+
response = requests.get(url)
|
|
125
|
+
data = response.json()
|
|
126
|
+
write_json_cache(
|
|
127
|
+
data=data, cache_path=xref_path, json_encoder=DataclassJSONEncoder
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
xrefs: List[CrossReference] = []
|
|
131
|
+
if data:
|
|
132
|
+
if "error" in data:
|
|
133
|
+
logger.error(f"No xrefs for inchikey: '{inchikey}'")
|
|
134
|
+
return []
|
|
135
|
+
|
|
136
|
+
# process data
|
|
137
|
+
item: Dict[str, str]
|
|
138
|
+
for item in data:
|
|
139
|
+
source_id: int = int(item["src_id"])
|
|
140
|
+
if source_id not in self.sources:
|
|
141
|
+
if source_id != 40:
|
|
142
|
+
# number 40 is missing from definitions
|
|
143
|
+
logger.error(
|
|
144
|
+
f"No UniChem source for source id '{source_id}', in item "
|
|
145
|
+
f"'{item}'"
|
|
146
|
+
)
|
|
147
|
+
continue
|
|
148
|
+
|
|
149
|
+
source: UnichemSource = self.sources[source_id]
|
|
150
|
+
accession = item["src_compound_id"]
|
|
151
|
+
if source.baseIdUrl:
|
|
152
|
+
# create and clean url
|
|
153
|
+
if not source.baseIdUrl:
|
|
154
|
+
continue
|
|
155
|
+
|
|
156
|
+
url = f"{source.baseIdUrl}{accession}"
|
|
157
|
+
|
|
158
|
+
url_accession = urllib.parse.quote(accession)
|
|
159
|
+
url = url.replace("{$Id}", url_accession)
|
|
160
|
+
url = url.replace("{$id}", url_accession)
|
|
161
|
+
|
|
162
|
+
# handle special case
|
|
163
|
+
if source.name == "clinicaltrials":
|
|
164
|
+
url = f"{url}%22"
|
|
165
|
+
|
|
166
|
+
# escape whitespace for dailymed | clinicaltrials | ...
|
|
167
|
+
url = url.replace(" ", "%20")
|
|
168
|
+
|
|
169
|
+
xref = CrossReference(
|
|
170
|
+
name=source.name, accession=accession, url=url
|
|
171
|
+
)
|
|
172
|
+
xrefs.append(xref)
|
|
173
|
+
|
|
174
|
+
return xrefs
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
if __name__ == "__main__":
|
|
178
|
+
pymetadata.CACHE_PATH = Path.home() / ".cache" / "pymetadata"
|
|
179
|
+
|
|
180
|
+
# query sources
|
|
181
|
+
sources = UnichemQuery().get_sources()
|
|
182
|
+
|
|
183
|
+
# query xrefs
|
|
184
|
+
inchikey = "NGBFQHCMQULJNZ-UHFFFAOYSA-N"
|
|
185
|
+
xrefs = UnichemQuery(cache=False).query_xrefs_for_inchikey(inchikey=inchikey)
|
|
186
|
+
print(xrefs)
|
|
187
|
+
# results = UnichemQuery(cache=True).query_xrefs_for_inchikey(inchikey=inchikey)
|
|
188
|
+
|
|
189
|
+
inchikey = "yxsdfasdfs"
|
|
190
|
+
xrefs = UnichemQuery(cache=False).query_xrefs_for_inchikey(inchikey=inchikey)
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pymetadata
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: pymetadata are python utilities for working with metadata.
|
|
5
|
+
Author-email: Matthias König <konigmatt@googlemail.com>
|
|
6
|
+
Maintainer-email: Matthias König <konigmatt@googlemail.com>
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Keywords: COMBINE,annotation,archive,metadata,modeling,standardization
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Intended Audience :: Science/Research
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
18
|
+
Classifier: Topic :: Scientific/Engineering
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Requires-Dist: depinfo>=2.2.0
|
|
22
|
+
Requires-Dist: fastobo>=0.12.3
|
|
23
|
+
Requires-Dist: jinja2>=3.1.5
|
|
24
|
+
Requires-Dist: lxml>=5.3
|
|
25
|
+
Requires-Dist: pronto>=2.5.8
|
|
26
|
+
Requires-Dist: pydantic>=2.10.4
|
|
27
|
+
Requires-Dist: requests>=2.32.3
|
|
28
|
+
Requires-Dist: rich>=13.9.4
|
|
29
|
+
Requires-Dist: xmltodict>=0.14.2
|
|
30
|
+
Requires-Dist: zeep>=4.3.1
|
|
31
|
+
Provides-Extra: dev
|
|
32
|
+
Requires-Dist: bump-my-version>=0.29.0; extra == 'dev'
|
|
33
|
+
Requires-Dist: hatch; extra == 'dev'
|
|
34
|
+
Requires-Dist: mypy>=1.9.0; extra == 'dev'
|
|
35
|
+
Requires-Dist: pre-commit>=4.0.1; extra == 'dev'
|
|
36
|
+
Requires-Dist: ruff>=0.8.6; extra == 'dev'
|
|
37
|
+
Provides-Extra: test
|
|
38
|
+
Requires-Dist: pytest-cov>=5.0.0; extra == 'test'
|
|
39
|
+
Requires-Dist: pytest>=8.1.1; extra == 'test'
|
|
40
|
+
Requires-Dist: tox>=4.14.2; extra == 'test'
|
|
41
|
+
Description-Content-Type: text/x-rst
|
|
42
|
+
|
|
43
|
+
.. image:: https://github.com/matthiaskoenig/pymetadata/raw/develop/docs/images/favicon/pymetadata-100x100-300dpi.png
|
|
44
|
+
:align: left
|
|
45
|
+
:alt: pymetadata logo
|
|
46
|
+
|
|
47
|
+
pymetadata: python utilities for metadata and COMBINE archives
|
|
48
|
+
==============================================================
|
|
49
|
+
|icon1| |icon2| |icon3| |icon4| |icon5| |icon6|
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
.. |icon1| image:: https://github.com/matthiaskoenig/pymetadata/workflows/CI-CD/badge.svg
|
|
53
|
+
:target: https://github.com/matthiaskoenig/pymetadata/workflows/CI-CD
|
|
54
|
+
:alt: GitHub Actions CI/CD Status
|
|
55
|
+
.. |icon2| image:: https://img.shields.io/pypi/v/pymetadata.svg
|
|
56
|
+
:target: https://pypi.org/project/pymetadata/
|
|
57
|
+
:alt: Current PyPI Version
|
|
58
|
+
.. |icon3| image:: https://img.shields.io/pypi/pyversions/pymetadata.svg
|
|
59
|
+
:target: https://pypi.org/project/pymetadata/
|
|
60
|
+
:alt: Supported Python Versions
|
|
61
|
+
.. |icon4| image:: https://img.shields.io/pypi/l/pymetadata.svg
|
|
62
|
+
:target: https://opensource.org/licenses/MIT
|
|
63
|
+
:alt: MIT License
|
|
64
|
+
.. |icon5| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5308801.svg
|
|
65
|
+
:target: https://doi.org/10.5281/zenodo.5308801
|
|
66
|
+
:alt: Zenodo DOI
|
|
67
|
+
.. |icon6| image:: http://www.mypy-lang.org/static/mypy_badge.svg
|
|
68
|
+
:target: http://mypy-lang.org/
|
|
69
|
+
:alt: mypy
|
|
70
|
+
|
|
71
|
+
pymetadata is a collection of python utilities for working with
|
|
72
|
+
metadata in the context of COMBINE standards with source code available from
|
|
73
|
+
`https://github.com/matthiaskoenig/pymetadata <https://github.com/matthiaskoenig/pymetadata>`__.
|
|
74
|
+
|
|
75
|
+
Features include among others
|
|
76
|
+
|
|
77
|
+
- COMBINE archive version 1 support (OMEX)
|
|
78
|
+
- annotation classes and helpers
|
|
79
|
+
- SBO and KISAO ontology enums
|
|
80
|
+
|
|
81
|
+
If you have any questions or issues please `open an issue <https://github.com/matthiaskoenig/pymetadata/issues>`__.
|
|
82
|
+
|
|
83
|
+
Documentation
|
|
84
|
+
=============
|
|
85
|
+
Documentation is still work in progress. For an example usage of the COMBINE archive
|
|
86
|
+
see `src/pymetadata/examples/omex_example.py <src/pymetadata/examples/omex_example.py>`__.
|
|
87
|
+
|
|
88
|
+
How to cite
|
|
89
|
+
===========
|
|
90
|
+
|
|
91
|
+
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5308801.svg
|
|
92
|
+
:target: https://doi.org/10.5281/zenodo.5308801
|
|
93
|
+
:alt: Zenodo DOI
|
|
94
|
+
|
|
95
|
+
Contributing
|
|
96
|
+
============
|
|
97
|
+
|
|
98
|
+
Contributions are always welcome! Please read the `contributing guidelines
|
|
99
|
+
<https://github.com/matthiaskoenig/pymetadata/blob/develop/.github/CONTRIBUTING.rst>`__ to
|
|
100
|
+
get started.
|
|
101
|
+
|
|
102
|
+
License
|
|
103
|
+
=======
|
|
104
|
+
* Source Code: `MIT <https://opensource.org/license/MIT>`__
|
|
105
|
+
* Documentation: `CC BY-SA 4.0 <https://creativecommons.org/licenses/by-sa/4.0/>`__
|
|
106
|
+
|
|
107
|
+
Funding
|
|
108
|
+
=======
|
|
109
|
+
Matthias König (MK) was supported by the Federal Ministry of Education and Research (BMBF, Germany) within the research network Systems Medicine of the Liver (**LiSyM**, grant number 031L0054). MK is supported by the Federal Ministry of Education and Research (BMBF, Germany) within ATLAS by grant number 031L0304B and by the German Research Foundation (DFG) within the Research Unit Program FOR 5151 QuaLiPerF (Quantifying Liver Perfusion-Function Relationship in Complex Resection - A Systems Medicine Approach) by grant number 436883643 and by grant number 465194077 (Priority Programme SPP 2311, Subproject SimLivA).
|
|
110
|
+
|
|
111
|
+
Installation
|
|
112
|
+
============
|
|
113
|
+
`pymetadata` is available from `pypi <https://pypi.python.org/pypi/pymetadata>`__ and
|
|
114
|
+
can be installed via::
|
|
115
|
+
|
|
116
|
+
pip install pymetadata
|
|
117
|
+
|
|
118
|
+
Develop version
|
|
119
|
+
---------------
|
|
120
|
+
The latest develop version can be installed via::
|
|
121
|
+
|
|
122
|
+
pip install git+https://github.com/matthiaskoenig/pymetadata.git@develop
|
|
123
|
+
|
|
124
|
+
Or via cloning the repository and installing via::
|
|
125
|
+
|
|
126
|
+
git clone https://github.com/matthiaskoenig/pymetadata.git
|
|
127
|
+
cd pymetadata
|
|
128
|
+
pip install -e .
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
To install for development use::
|
|
132
|
+
|
|
133
|
+
pip install -e .[development]
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
Cache path
|
|
137
|
+
==========
|
|
138
|
+
`pymetadata` caches some information for faster retrieval. The cache path is set to::
|
|
139
|
+
|
|
140
|
+
CACHE_PATH: Path = Path.home() / ".cache" / "pymetadata"
|
|
141
|
+
|
|
142
|
+
To use a custom cache path use::
|
|
143
|
+
|
|
144
|
+
import pymetadata
|
|
145
|
+
pymetadata.CACHE_PATH = <cache_path>
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
Checks
|
|
149
|
+
==========
|
|
150
|
+
- uv for project setup
|
|
151
|
+
- ruff for linting, formating
|
|
152
|
+
- mypy for type checking
|
|
153
|
+
|
|
154
|
+
© 2021-2025 Matthias König
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
pymetadata/__init__.py,sha256=-EZKeFfptRrccMcmwrtFlGJkpYRIFY0r47_VT7OzueQ,357
|
|
2
|
+
pymetadata/cache.py,sha256=tQuMIcd1cOfO0dvODQMG92_IrHqgswPfshhFjtl7Pd0,1409
|
|
3
|
+
pymetadata/chebi.py,sha256=EH8sYRx7af3Hi1O8x5Tvj_T9cawGVMtlYp_4B3L8tHY,2730
|
|
4
|
+
pymetadata/console.py,sha256=ouDYOx_81ndvtMW5GVrut71uzPC5xlvibGu9N5YdbRA,332
|
|
5
|
+
pymetadata/log.py,sha256=3uRVMYolalrS0PVWS_4qSme8RYhot3_W2ad1JopI88g,664
|
|
6
|
+
pymetadata/omex.py,sha256=lXdWJQgX-_zDq1OX82zWEk_R1rlJX995jrCKOiQt8JM,29829
|
|
7
|
+
pymetadata/omex_v2.py,sha256=HZBg_wmQWixweOZG3qVj2zqG_o1x9Ljxy-JEP6-ZFhM,584
|
|
8
|
+
pymetadata/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
pymetadata/unichem.py,sha256=slxTabar1ZdZQUyTyRloiWKxD92ixnDGsJ2xk3alrTo,6878
|
|
10
|
+
pymetadata/core/__init__.py,sha256=VWZCD9TgSGldzdtXoarvp_2oUHKXQkC1T-VUSvMLwNA,28
|
|
11
|
+
pymetadata/core/annotation.py,sha256=PO2dyjgDP91J6JcJ2i3CzvdSd-6I0-3lAeTaaRd_cyY,13695
|
|
12
|
+
pymetadata/core/creator.py,sha256=0_z0HPhO2Tq8FnAED_4kuVzUiPfm_tYMiZSvyw73Aho,1307
|
|
13
|
+
pymetadata/core/synonym.py,sha256=-2_1ouSWAtQK5eZv2-p6CIJgYZX4xGKua-09ubBg5uo,155
|
|
14
|
+
pymetadata/core/xref.py,sha256=qlUfAb5wk4bOwPiUCEV0s9gIWVdWf5yup1W8UxR5uHY,1594
|
|
15
|
+
pymetadata/examples/__init__.py,sha256=LHY-XmQoiBxoHQW9mQN1_fUYnpfkALuRsdxDXU9sIeU,31
|
|
16
|
+
pymetadata/examples/cache_path_example.py,sha256=f1-uvvIO28voxpehIvlXuWybNsAkAldmS70Bd77Cb78,377
|
|
17
|
+
pymetadata/examples/omex_example.py,sha256=z8fKyI1z5NMze8DdTfGYvG0rxzinFk61ruiT6NDdcT4,1403
|
|
18
|
+
pymetadata/examples/test.omex,sha256=uVrkDrA59F0S6TpQOk_UulDO-pTu0nU3f6zmaWI7zi4,26219
|
|
19
|
+
pymetadata/examples/results/test_from_files.omex,sha256=wFBnU3v8uUiKkh4RcvMBWSUuaKtSCixQMwwZtbwEiZE,1807
|
|
20
|
+
pymetadata/examples/results/test_from_omex.omex,sha256=tD_0IB8_tEwxEXDzbAzj7p__5R4OcWHMYoAYf2WWe8g,5556
|
|
21
|
+
pymetadata/examples/results/testomex/README.md,sha256=ki5gkAGB0pcfDroiVamBG3qC3BsxwswSTfHVxyL0BDc,103
|
|
22
|
+
pymetadata/examples/results/testomex/manifest.xml,sha256=UWk822KzYmxRxxsXgqzlXBt76ghy1kbwN3mOWTkOkpc,813
|
|
23
|
+
pymetadata/examples/results/testomex/models/omex_comp.xml,sha256=C8zoJ7O2AiE75JlPOonwLDgCQ9pAm6d7erc9mZZosiE,8447
|
|
24
|
+
pymetadata/examples/results/testomex/models/omex_comp_flat.xml,sha256=3avaqyiP07QiF7nVVwgoSk19_8eYyDb0IHRMGuV0i1Q,9658
|
|
25
|
+
pymetadata/examples/results/testomex/models/omex_minimal.xml,sha256=r6FDgMu4rEXR2H_EKyQlSh4JkisH1Yu2clVkqKarPOI,6619
|
|
26
|
+
pymetadata/identifiers/__init__.py,sha256=6Jd-w9Izl_wpWKV8IMBv7rW0Aq067V2czu00LNfPTL8,34
|
|
27
|
+
pymetadata/identifiers/miriam.py,sha256=pa7lB1_C2cKRUuojFPvxAQ6yDI_ZQNjGEoYMb1395pY,982
|
|
28
|
+
pymetadata/identifiers/registry.py,sha256=FzajEoFXlywtAqhGQ2YpxkViAoBRXZM5P82J6ZOHyPc,13081
|
|
29
|
+
pymetadata/metadata/__init__.py,sha256=wrZtmqudWwyxJXrsHoTx235ooDepKgiia8kHKiIZO4Y,154
|
|
30
|
+
pymetadata/metadata/eco.py,sha256=wsF-nRuXdI5Fm8T1e8wWYFtBPgzQ9ap2zIkH3nXjab4,662767
|
|
31
|
+
pymetadata/metadata/kisao.py,sha256=oI3zuCDhDmA-aK5pWLhNJu1Y0XgBvI6IpmLlEnymgdo,89273
|
|
32
|
+
pymetadata/metadata/sbo.py,sha256=rJEtdhOP5YUY1i8-6drWsglDmayFEpWVA2h2t3fjLCo,141756
|
|
33
|
+
pymetadata/ontologies/__init__.py,sha256=vIpTqwqrhOAOYfnavWBQL149dNMAPv-OE5IyloYQCrQ,18
|
|
34
|
+
pymetadata/ontologies/ols.py,sha256=lKmhRMKuEx29QAZsxCRlzUwH48CGtl8YKM2AcsiDFVk,6814
|
|
35
|
+
pymetadata/ontologies/ontology.py,sha256=cnAgXzxPn3XxZ8FUAMuSAH0eOGio-YK1Enzy3ZuKzcc,9100
|
|
36
|
+
pymetadata/resources/chebi_webservice_wsdl.xml,sha256=0AEgcZ48bk4L6l3jO5-6BIVwfTr4yXnRZCtXue5NyHo,23846
|
|
37
|
+
pymetadata/resources/ontologies/README.md,sha256=h1LIKpr42-s0RzwpCufkR_YJ2nWiwOapZX_frRXk3Qg,163
|
|
38
|
+
pymetadata/resources/templates/ontology_enum.pytemplate,sha256=fK7SBTVfRzVk-z_6wiZ_9MDbTNSlEpGGellRoliGqac,1674
|
|
39
|
+
pymetadata-0.5.0.dist-info/METADATA,sha256=R5xPvJVRW71mo79WwmUKkuGpx1lEZQqTZW070IynBrw,5725
|
|
40
|
+
pymetadata-0.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
41
|
+
pymetadata-0.5.0.dist-info/licenses/LICENSE,sha256=bIHEDEMiQfVe9c81lFP7Q9hsCOmEuj2c_m50LuotsMM,1058
|
|
42
|
+
pymetadata-0.5.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright (c) 2025 Matthias König
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|