Ostrails compliance#261
Open
albangaignard wants to merge 19 commits into
Open
Conversation
Implements the approved spec: a dedicated page for each FAIR metric reachable via /test/<tag> (case-insensitive), returning 404 for unknown tags. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add _build_metric_kg helper in metrics/util.py (Turtle string template parsed into ConjunctiveGraph, using schema: + dcterms: vocabularies) - /test/<tag> returns Turtle/JSON-LD/RDF-XML on matching Accept header - ?format=turtle|json-ld|rdf-xml query param also supported - HTML behaviour unchanged for browser requests Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace pytest fixtures and bare test functions with a single MetricDetailPageTestCase class. setUp creates the Flask test client; tearDown is not needed. All 10 tests pass unchanged. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Tests cover: - Turtle string is non-empty and parses as valid RDF - Eval subject URI is present (EVAL_URL-based, environment-agnostic) - dqv:QualityMeasurement type assertion - dqv:computedOn links to target URI - dqv:value carries the score - prov:wasAttributedTo FAIR-checker - ftr:outputFromTest links to the metric test URI - fct:<tag> spec block included with correct rdf:type ftr:Test - skos:prefLabel present on the metric spec node - Score=0 (failing evaluation) also serialises correctly No MongoDB, no HTTP calls. Flask app context pushed in setUp. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
No description provided.