dprod icon indicating copy to clipboard operation
dprod copied to clipboard

DPROD Contracts: introduce dprod:DataDuty as subtype of odrl:Duty? (5.7)

Open jgeluk opened this issue 6 months ago • 2 comments

Track: DPROD 1.1 data-contracts post-merge follow-up from PR #156. Stephen's feedback (2026-05-14).

Plan item 5.7 of `dprod-contracts/docs/changes-plan.md`. Today `dprod-shapes:DutyShape` targets `odrl:Duty` directly and adds DPROD-specific constraints (`dprod:deadline`, `dprod:recurrence`, `dprod:subjectOfDuty`, `dprod:objectOfDuty`, `dprod:state`). Stephen proposes introducing an explicit subtype:

```turtle dprod:DataDuty a owl:Class ; rdfs:subClassOf odrl:Duty ; rdfs:label "data duty" . ```

Pros:

  • Lets DPROD ship instance-level documentation for "the duty kind DPROD actually constrains" rather than retrofitting odrl:Duty
  • Aligns with the existing `DataOffer`/`DataContract` subtype pattern (subclasses `odrl:Offer` / `odrl:Agreement`)
  • Lets `DutyShape` target `dprod:DataDuty` instead of `odrl:Duty`, avoiding accidental constraint application on plain-ODRL duties

Cons:

  • Asks policy authors to migrate to a new type; old examples (and downstream tooling) still expect `odrl:Duty`
  • Couples to 5.8/5.9 — if we change cardinality on `acceptsOffer` to support a "basket" model, the duty-typing decision has knock-on effects on how duties propagate from offers to contracts

Recommend deciding together with #189 (5.8 + 5.9 cardinality bundle).

cc @tonyseale @matthiasautrata @SteveFisher

jgeluk avatar May 28 '26 16:05 jgeluk

I just fail to see the benefit or semantic improvement gained by introducing DataDuty

matthiasautrata avatar Aug 04 '26 20:08 matthiasautrata

The question is, a sub-type/sub-class needs to have some justification as in "different data" or "different behavior". What is that difference here? Or is it really just a kind of categorization of the different kinds of Duties? To make it easier to filter them out or in?

I think it's not necessarily good practice to have DataOffer/DataAgreement/DataDuty/DataWhatever just to separate things from "normal" ODRL use cases.

jgeluk avatar Aug 10 '26 16:08 jgeluk