Skip to content

DPROD Contracts: reject per-policy odrl:conflict override (2.4) #197

Description

@jgeluk

Track: DPROD 1.1 data-contracts post-merge follow-up.

Plan item 2.4 of dprod-contracts/docs/changes-plan.md (source: Matthias email 19d08a1d item #13). The DPROD spec fixes the conflict policy to "Prohibition > Permission". A per-policy odrl:conflict declaration would silently change that semantics, so it should be rejected by SHACL.

Steps:

  1. Add dprod-shapes:RejectPolicyConflictShape (after the existing Reject* block in dprod-contracts-shapes.ttl) with sh:targetSubjectOf odrl:conflict and:
    sh:property [ sh:path odrl:conflict ; sh:maxCount 0 ; sh:severity sh:Violation ; sh:message "DPROD contracts fix conflict resolution to Prohibition > Permission; per-policy odrl:conflict is not allowed." ]

Verify: a test policy with odrl:conflict odrl:prohibit triggers a violation; existing examples without it still pass.

Note: follows the same declarative sh:targetSubjectOf pattern adopted for the other Reject* shapes in item 2.2.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Data ContractsWork related to DPROD data contracts, agreements, data rights, and the ODRL profile.shapesSHACL shapes and validation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions