Skip to main content

fairscape_models

Pydantic models that define the canonical data shape for Fairscape RO-Crate releases. This package is the source of truth: the JSON Schemas, TypeScript types, and the EVI OWL/RDFS vocabulary published with the Fairscape profile are all generated from the classes in fairscape_models/.

What's in here

Path What it is
fairscape_models/*.py Pydantic class definitions: Dataset, Software, MLModel, Computation, Annotation, Experiment, Schema, Sample, Instrument, Patient, ModelCard, AnnotatedComputation, AnnotatedEvidenceGraph, ROCrateMetadataElem, ROCrateV1_2, …
fairscape_models/conversion/ Crosswalks: Datasheet-for-Datasets (LinkML), Croissant / Croissant-RAI 1.0.
json-schemas/ Per-class JSON Schemas, generated by scripts/generate_json_schemas.py.
typescript-types/ TypeScript .d.ts declarations, generated by scripts/generate_ts_types.py.
js/ JavaScript bindings.
profiles/evi-vocabulary.ttl OWL/RDFS vocabulary for the EVI namespace, generated by scripts/generate_profile.py. Contains the class hierarchy, property domains/ranges, and owl:Restriction cardinality blocks.
profiles/profile.ttl W3C PROF manifest for the Fairscape profile (see below).
tests/ pytest suite. Test fixtures under tests/test_rocrates/ are real conforming crates.

Profile

This package implements the Fairscape Release RO-Crate Profile v0.1:

Every crate produced from the ROCrateMetadataElem model declares dct:conformsTo: https://w3id.org/fairscape/profile/0.1 on its Root Data Entity. This is the conformance signal — the Root entity's @type stays ["Dataset", "https://w3id.org/EVI#ROCrate"] and never includes "Profile". (Only the hand-authored Profile Crate published at the profile URI is Profile-typed.)

Regenerating derived artifacts

python scripts/generate_json_schemas.py
python scripts/generate_ts_types.py
python scripts/generate_profile.py profiles/evi-vocabulary.ttl

Tests

pytest

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fairscape_models-1.1.7.tar.gz (103.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fairscape_models-1.1.7-py3-none-any.whl (105.1 kB view details)

Uploaded Python 3

File details

Details for the file fairscape_models-1.1.7.tar.gz.

File metadata

  • Download URL: fairscape_models-1.1.7.tar.gz
  • Upload date:
  • Size: 103.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for fairscape_models-1.1.7.tar.gz
Algorithm Hash digest
SHA256 b48855e894e7c52feec604d3ae43f468e9501a89e91c41b2a00e91af1e8b3c64
MD5 5a2c03ea9d699d01e658f1db6177a054
BLAKE2b-256 ee072e5e70ae0fbdd358f9bd70aa76772650dd25ce5b819c7ca11c320b22d658

See more details on using hashes here.

File details

Details for the file fairscape_models-1.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for fairscape_models-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 89a78d30fbbbcc941b2d4c3db3fbb983d4f36412cb7d536e0a8d953569969807
MD5 375137915348ec0cc0d2a3e7127e2d46
BLAKE2b-256 711f338de4e09ccc2d21af4cb6f51b4ab8450a753b145c40b273e796e3f9aabe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page