Skip to content

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

@jgeluk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    shapesSHACL 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