pid4cat-model 0.4.0__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.
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/PKG-INFO +1 -1
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/config.public.mk +1 -1
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/index.md +1 -1
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/metadata.md +22 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/mkdocs.yml +1 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/src/pid4cat_model/schema/pid4cat_model.yaml +1 -1
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/.copier-answers.yml +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/.editorconfig +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/.github/dependabot.yml +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/.github/workflows/deploy-docs.yaml +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/.github/workflows/main.yaml +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/.github/workflows/pypi-publish.yaml +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/.gitignore +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/.linkmllint.yaml +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/.pre-commit-config.yaml +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/.yamllint.yaml +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/.zenodo.json +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/CODE_OF_CONDUCT.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/CONTRIBUTING.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/LICENSE +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/README.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/README_pypkg.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/config.yaml +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/about.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/apis.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/elements/.gitkeep +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/getting-started.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/images/favicon.svg +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/images/logo-design-source.svg +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/images/logo-icon.svg +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/images/logo-with-text-dark.svg +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/images/logo-with-text.png +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/images/logo-with-text.svg +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/open-data.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/overrides/partials/logo.html +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/overview.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/policies.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/schema/README.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/stylesheets/extra.css +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/templates-linkml/README.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/tools.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/docs/versioning.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/examples/PID4CatRecord-001.yaml +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/examples/README.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/examples/api-v2-demo.ipynb +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/examples/example_p1.json +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/examples/example_p1.yaml +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/examples/example_p1_dataclasses.py +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/examples/example_p1_pydantic.json +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/examples/example_p1_pydantic.py +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/examples/hdl-net-api-demo.ipynb +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/examples/valid/HandleRecordContainer-001.json.off +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/examples/valid/HandleRecordContainer-001.yaml +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/examples/valid/PID4CatRecord-001.json +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/examples/valid/PID4CatRecord-001.yaml +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/justfile +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/project/README.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/project.justfile +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/pyproject.toml +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/src/pid4cat_model/__init__.py +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/src/pid4cat_model/_version.py +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/src/pid4cat_model/datamodel/__init__.py +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/src/pid4cat_model/datamodel/pid4cat_model.py +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/src/pid4cat_model/datamodel/pid4cat_model_pydantic.py +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/src/pid4cat_model/handle_api.py +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/src/pid4cat_model/iso7064.py +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/src/pid4cat_model/schema/README.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/src/pid4cat_model/schema/media_types.yaml +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/__init__.py +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/data/21.T11978_hdlnet_api/TEST_KBKA-BEM9.json +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/data/21.T11978_hdlnet_api/TEST_KBKA-BEM9_decoded.json +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/data/21.T11978_hdlnet_api/TEST_KBKA-BEM9_invalid.json +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/data/README.md +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/data/invalid/.gitkeep +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/data/invalid/HandleAPIRecord-004.json +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/data/problem/invalid/.gitkeep +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/data/problem/valid/.gitkeep +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/data/valid/HandleAPIRecord-001.yaml +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/data/valid/HandleAPIRecord-002.json +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/data/valid/HandleAPIRecord-003.json +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/data/valid/HandleAPIRecord-004.json +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/data/valid/HandleRecordContainer-001.yaml +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/test_data.py +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/test_handle_api.py +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/test_iso7064.py +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/test_model_pydantic.py +0 -0
- {pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pid4cat-model
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: Python model equivalent of LinkML datamodel for handle-based PIDs for resources in catalysis (pid4cat)
|
|
5
5
|
Author-email: David Linke <david.linke@catalysis.de>
|
|
6
6
|
Maintainer-email: David Linke <david.linke@catalysis.de>
|
|
@@ -17,7 +17,7 @@ LINKML_SCHEMA_SOURCE_DIR="src/pid4cat_model/schema"
|
|
|
17
17
|
LINKML_GENERATORS_CONFIG_YAML=config.yaml
|
|
18
18
|
|
|
19
19
|
## pass args if gendoc ignores config.yaml (i.e. --no-mergeimports)
|
|
20
|
-
LINKML_GENERATORS_DOC_ARGS="--hierarchical-class-view --subfolder-type-separation --index-name overview"
|
|
20
|
+
LINKML_GENERATORS_DOC_ARGS="--truncate-descriptions False --hierarchical-class-view --subfolder-type-separation --index-name overview"
|
|
21
21
|
|
|
22
22
|
## pass args to workaround genowl rdfs config bug (linkml#1453)
|
|
23
23
|
## (i.e. --no-type-objects --no-metaclasses --metadata-profile rdfs)
|
|
@@ -37,6 +37,28 @@ The pid4cat metadata schema is defined using LinkML, which allows for:
|
|
|
37
37
|
|
|
38
38
|
The complete schema is available in the [pid4cat-model repository](https://github.com/nfdi4cat/pid4cat-model).
|
|
39
39
|
|
|
40
|
+
## Permanent URIs for the metadata schema
|
|
41
|
+
|
|
42
|
+
All elements in the schema (classes, slots, enums) have [w3id.org](https://w3id.org/)-URIs.
|
|
43
|
+
These point to the latest schema version released.<BR>For example: [https://w3id.org/nfdi4cat/pid4cat-model/class/HandleRecord](https://w3id.org/nfdi4cat/pid4cat-model/class/HandleRecord) is redirected to <BR> [https://nfdi4cat.github.io/pid4cat-model/latest/elements/classes/HandleRecord/](https://nfdi4cat.github.io/pid4cat-model/latest/elements/classes/HandleRecord/).
|
|
44
|
+
|
|
45
|
+
Schema elements from older releases can also be referenced via permanent URIs. For example, to reference the same class but from Release 0.4.0, just insert the release tag into the URI:<BR>
|
|
46
|
+
[https://w3id.org/nfdi4cat/pid4cat-model/**v0.4.0**/class/HandleRecord](https://w3id.org/nfdi4cat/pid4cat-model/v0.4.0/class/HandleRecord)
|
|
47
|
+
|
|
48
|
+
The full LinkML schema in YAML format can be downloaded from [https://w3id.org/nfdi4cat/pid4cat-model/](https://w3id.org/nfdi4cat/pid4cat-model/) when specifying the media type `application/yaml`.
|
|
49
|
+
|
|
50
|
+
Example download command for [httpie](https://httpie.io/docs/cli):
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
http -o pid4cat_model.yaml --download https://w3id.org/nfdi4cat/pid4cat-model Accept:"application/yaml"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
for [curl](https://curl.se/):
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
curl -o pid4cat_model.yaml -L -H "accept:application/yaml" https://w3id.org/nfdi4cat/pid4cat-model
|
|
60
|
+
```
|
|
61
|
+
|
|
40
62
|
## Metadata Validation
|
|
41
63
|
|
|
42
64
|
All metadata submitted to pid4cat is validated against the pid4cat-model schema. This ensures:
|
|
@@ -14,7 +14,7 @@ description: >-
|
|
|
14
14
|
exception of the resource category, which is a high-level description of
|
|
15
15
|
what is identified by the pid4cat handle, e.g. a sample or a device.
|
|
16
16
|
|
|
17
|
-
version: "0.4.
|
|
17
|
+
version: "0.4.2" # Managed by dynamic-versioning. Don't change this line!
|
|
18
18
|
|
|
19
19
|
todos:
|
|
20
20
|
- none
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/examples/valid/HandleRecordContainer-001.json.off
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/src/pid4cat_model/datamodel/pid4cat_model_pydantic.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pid4cat_model-0.4.0 → pid4cat_model-0.4.2}/tests/data/21.T11978_hdlnet_api/TEST_KBKA-BEM9.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|