pymetadata 0.5.5__py3-none-any.whl → 0.5.6__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 CHANGED
@@ -3,7 +3,7 @@
3
3
  from pathlib import Path
4
4
 
5
5
  __author__ = "Matthias Koenig"
6
- __version__ = "0.5.5"
6
+ __version__ = "0.5.6"
7
7
 
8
8
 
9
9
  program_name: str = "pymetadata"
@@ -184,7 +184,7 @@ class RDFAnnotation:
184
184
  namespace = REGISTRY.ns_dict.get(collection, None)
185
185
  if namespace and not namespace.namespaceEmbeddedInLui:
186
186
  # shorter term
187
- if term.lower().startswith(collection):
187
+ if term.lower().startswith(f"{collection}:"):
188
188
  tokens = term.split(":")
189
189
  term = ":".join(tokens[1:])
190
190
 
@@ -399,10 +399,14 @@ if __name__ == "__main__":
399
399
  for annotation in [
400
400
  RDFAnnotation(
401
401
  qualifier=BQB.IS_VERSION_OF,
402
- resource="https://bioregistry.io/chebi:15996",
402
+ resource="hmdb/HMDB0000122",
403
403
  ),
404
404
  # RDFAnnotation(
405
405
  # qualifier=BQB.IS_VERSION_OF,
406
+ # resource="https://bioregistry.io/chebi:15996",
407
+ # ),
408
+ # RDFAnnotation(
409
+ # qualifier=BQB.IS_VERSION_OF,
406
410
  # resource="NCIT:C75913",
407
411
  # ),
408
412
  # RDFAnnotation(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pymetadata
3
- Version: 0.5.5
3
+ Version: 0.5.6
4
4
  Summary: pymetadata are python utilities for working with metadata.
5
5
  Author-email: Matthias König <konigmatt@googlemail.com>
6
6
  Maintainer-email: Matthias König <konigmatt@googlemail.com>
@@ -53,9 +53,9 @@ metadata in the context of COMBINE standards with source code available from
53
53
 
54
54
  Features include among others
55
55
 
56
- - [core](src/pymetadata/core)COMBINE archive version 1 support (OMEX)
56
+ - COMBINE archive version 1 support (OMEX)
57
57
  - annotation classes and helpers
58
- - SBO and KISAO ontology enums
58
+ - SBO, KISAO and ECO ontology enums
59
59
 
60
60
  If you have any questions or issues please [open an issue](https://github.com/matthiaskoenig/pymetadata/issues).
61
61
 
@@ -66,8 +66,6 @@ see [omex_example.py](src/pymetadata/examples/omex_example.py).
66
66
  # How to cite
67
67
  [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5308801.svg)](https://doi.org/10.5281/zenodo.5308801)
68
68
 
69
- # Contributing
70
- Contributions are always welcome! Please read the [contributing guidelines](https://github.com/matthiaskoenig/pymetadata/blob/develop/.github/CONTRIBUTING.rst) to get started.
71
69
 
72
70
  # License
73
71
  - Source Code: [MIT](https://opensource.org/license/MIT)
@@ -84,19 +82,6 @@ can be installed via
84
82
  pip install pymetadata
85
83
  ```
86
84
 
87
- ## Develop version
88
- The latest develop version can be installed via
89
- ```bash
90
- pip install git+https://github.com/matthiaskoenig/pymetadata.git@develop
91
- ```
92
-
93
- Or via cloning the repository and installing via
94
- ```bash
95
- git clone https://github.com/matthiaskoenig/pymetadata.git
96
- cd pymetadata
97
- pip install -e .
98
- ```
99
-
100
85
  # Cache path
101
86
  `pymetadata` caches some information for faster retrieval. The cache path is set to
102
87
 
@@ -1,4 +1,4 @@
1
- pymetadata/__init__.py,sha256=1d6h5LuMgrZeCih1nQMu8U9kgk8eZoeToAXxR42g924,357
1
+ pymetadata/__init__.py,sha256=s7E9lTDrSmb06g7HXFOoL19eoHZ9mFoa82U0gcxh7F4,357
2
2
  pymetadata/cache.py,sha256=tQuMIcd1cOfO0dvODQMG92_IrHqgswPfshhFjtl7Pd0,1409
3
3
  pymetadata/chebi.py,sha256=P9OWSf8fzcjfMscPG8LORMNnFRUye-Ai-Y3NiGyG0uc,2822
4
4
  pymetadata/console.py,sha256=ouDYOx_81ndvtMW5GVrut71uzPC5xlvibGu9N5YdbRA,332
@@ -8,7 +8,7 @@ pymetadata/omex_v2.py,sha256=HZBg_wmQWixweOZG3qVj2zqG_o1x9Ljxy-JEP6-ZFhM,584
8
8
  pymetadata/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  pymetadata/unichem.py,sha256=SCdljAA6dsR3DrD_OrjRoXIMhgwVV-MiXoCiNMVo_-0,6894
10
10
  pymetadata/core/__init__.py,sha256=VWZCD9TgSGldzdtXoarvp_2oUHKXQkC1T-VUSvMLwNA,28
11
- pymetadata/core/annotation.py,sha256=2iLSGqxt77SID3MsIWH-eHiF0zvJkPlpBVLTh327S-I,16031
11
+ pymetadata/core/annotation.py,sha256=V7MKEOtFptj8xD44Ls4ZkIi3_U6VDgl5Ep6j1oB5n98,16161
12
12
  pymetadata/core/creator.py,sha256=0_z0HPhO2Tq8FnAED_4kuVzUiPfm_tYMiZSvyw73Aho,1307
13
13
  pymetadata/core/synonym.py,sha256=-2_1ouSWAtQK5eZv2-p6CIJgYZX4xGKua-09ubBg5uo,155
14
14
  pymetadata/core/xref.py,sha256=qlUfAb5wk4bOwPiUCEV0s9gIWVdWf5yup1W8UxR5uHY,1594
@@ -35,7 +35,7 @@ pymetadata/ontologies/ols.py,sha256=lKmhRMKuEx29QAZsxCRlzUwH48CGtl8YKM2AcsiDFVk,
35
35
  pymetadata/ontologies/ontology.py,sha256=-3_AAq-HxRBOZReuLb3dj56HPPFUXsW22ULwaYQLIBc,9153
36
36
  pymetadata/resources/ontologies/README.md,sha256=h1LIKpr42-s0RzwpCufkR_YJ2nWiwOapZX_frRXk3Qg,163
37
37
  pymetadata/resources/templates/ontology_enum.pytemplate,sha256=nona0KbGoFumgJo2v_J-pcTniXveiTGb8bz-1rMoDR8,1672
38
- pymetadata-0.5.5.dist-info/METADATA,sha256=AyBlcvFMDEGwUqE6lisWzbHPfU3TRI4I1gGBxRiSmuQ,4937
39
- pymetadata-0.5.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
40
- pymetadata-0.5.5.dist-info/licenses/LICENSE,sha256=4oZhYj-TN8e6NrD0wup4nJfQUH9zX0v3gz43xN6F2hs,1059
41
- pymetadata-0.5.5.dist-info/RECORD,,
38
+ pymetadata-0.5.6.dist-info/METADATA,sha256=CiATcW5E-Nvn8SC2p0brTWfXtNw-_uAYmfBus9ZwXa0,4419
39
+ pymetadata-0.5.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
40
+ pymetadata-0.5.6.dist-info/licenses/LICENSE,sha256=4oZhYj-TN8e6NrD0wup4nJfQUH9zX0v3gz43xN6F2hs,1059
41
+ pymetadata-0.5.6.dist-info/RECORD,,