Enhance ToxTemp export to support FAIR data principles#134
Draft
Enhance ToxTemp export to support FAIR data principles#134
Conversation
Agent-Logs-Url: https://github.com/johannehouweling/ToxTempAssistant/sessions/86e45995-168e-42ac-96fe-e9bd184cb742 Co-authored-by: johannehouweling <95692173+johannehouweling@users.noreply.github.com>
…ythonic line continuation in tests Agent-Logs-Url: https://github.com/johannehouweling/ToxTempAssistant/sessions/86e45995-168e-42ac-96fe-e9bd184cb742 Co-authored-by: johannehouweling <95692173+johannehouweling@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Enhance Toxtemp export to support FAIR data principles
Enhance ToxTemp export to support FAIR data principles
Apr 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Exported ToxTemp drafts lack the structured metadata, persistent identifiers, open formats, and provenance information needed for downstream discovery and reuse. This adds foundational FAIR data support across all four principles.
Model
uid(UUIDField) toAssayas a stable persistent identifier (urn:uuid:<uid>), with migration0027_assay_uidNew export types
jsonldapplication/ld+jsonPropertyValueitemszipapplication/zip<slug>.jsonld+PROVENANCE.json+LICENSE.txt+README.mdBoth types are added to
Config.EXPORT_MAPPING/Config.EXPORT_MIME_SUFFIXand excluded fromPANDOC_EXPORT_TYPES(handled inline likejson).New API endpoint
GET /api/assay/<uuid>/metadata/— returns the JSON-LD document for an assay; respondsapplication/ld+json; requires authentication.Export content improvements
generate_json_from_assaynow includesidentifier(UUID),author(name + ORCID when set),keywords, andlicensegenerate_jsonld_from_assay— schema.orgDatasetwith@id,creator,hasPart(Q&A),license, provenance timestampsgenerate_provenance_dict— W3C PROV-JSON-inspired record capturing agent, activity, software, and export timestampgenerate_fair_zip_bytes— in-memory ZIP with all FAIR artefactsUI
Export dropdowns (overview table + answer page) now include a FAIR Exports section with JSON-LD and FAIR ZIP options.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
postgres_test_for_django/home/REDACTED/.cache/pypoetry/virtualenvs/toxtempassistant-tf6wyKE3-py3.12/bin/pytest /home/REDACTED/.cache/pypoetry/virtualenvs/toxtempassistant-tf6wyKE3-py3.12/bin/pytest myocyte/toxtempass/tests/test_export_security.py myocyte/toxtempass/tests/test_export_errors.py -v(dns block)If you need me to access, download, or install something from one of these locations, you can either: