Skip to content

CI: run dprod-contracts SHACL validation (validate.py) on push/PR #200

@jgeluk

Description

@jgeluk

Source: surfaced while adding dprod-contracts/validate.py.

CI currently does not validate the ontology or examples — .github/workflows/build-spec.yml only builds/deploys the spec; nothing parses the TTLs or runs SHACL. A regression in dprod-contracts/*.ttl or any example would not be caught until someone runs the generator by hand.

The branch now ships dprod-contracts/validate.py, which:

  • parses every dprod-contracts/**/*.ttl as Turtle, and
  • SHACL-validates each example under dprod-contracts/examples/ against dprod-contracts-shapes.ttl (ontology as ont_graph, RDFS inference on),
  • exiting non-zero on any parse error or SHACL violation.

Ask: add a CI step (extend build-spec.yml or a small dedicated workflow) that runs pip install -r requirements.txt && python dprod-contracts/validate.py on push / PR, gating merges on a green validation.

Related: #92 (validate the core examples/ via JSON-LD→Turtle) — complementary; this issue covers the contracts SHACL gate specifically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildBuild and publish workflow, site generationshapesSHACL shapes and validation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions