dprod
dprod copied to clipboard
Integrate Data Contracts into the DPROD specification
Problem
The Data Contracts profile (dprod-contracts/) is merged on develop but is documented only in Markdown under dprod-contracts/docs/. The generated ReSpec specification (respec/template.html via spec-generator/main.py) does not mention it, so a reader of the published DPROD 1.1 draft cannot discover DataOffer, DataContract, the duty extensions, or the evaluation context.
Proposal
First draft integrating the contracts module into the generated specification:
- A new top-level Data Contracts introductory section after the DPROD model section, stating the ODRL 2.2 profile relationship and adding an optional conformance clause (an implementation may conform to DPROD core without the contracts profile).
- A Data Contract Model section with a class diagram in the style of
dprod-model.svg, followed by auto-rendered class/property tables for the DPROD contract classes (DataOffer, DataContract, EvaluationContext, OperandSource) and prose for the DPROD properties added toodrl:Dutyandodrl:LeftOperand. Rejection shapes summarised in a table. - A worked example converted from
dprod-contracts/examples/baseline.ttlto JSON-LD underexamples/data-contract/, picked up by the existing examples loop, with the contracts terms added todprod-context.jsonld. - Formal semantics and the policy-writer guide linked, not inlined.
Based on develop as merged; dprod:recurrence is documented as it stands today and will be revised when #234 (Schedule model, #184) lands.
Acceptance criteria
bash build.shrenders the new sections and the new example without warnings.python -m unittest discover -s testsand-s dprod-contracts/testspass.- The new JSON-LD example expands to RDF and validates against the contracts shapes.
- No ODRL-targeted or rejection NodeShape renders as a DPROD class section.