Skip to content

Ostrails compliance#261

Open
albangaignard wants to merge 19 commits into
masterfrom
ostrails-compliance
Open

Ostrails compliance#261
albangaignard wants to merge 19 commits into
masterfrom
ostrails-compliance

Conversation

@albangaignard

Copy link
Copy Markdown
Collaborator

No description provided.

albangaignard and others added 7 commits May 27, 2026 15:23
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant