dprod icon indicating copy to clipboard operation
dprod copied to clipboard

DPROD Contracts: dprod:path OWL typing and rdfs:range (5.4)

Open jgeluk opened this issue 6 months ago • 2 comments

Track: DPROD 1.1 data-contracts post-merge follow-up from PR #156.

Plan item 5.4 of `dprod-contracts/docs/changes-plan.md`. `dprod:path` is currently typed only as `rdf:Property` with no `rdfs:range` — OWL DL reasoners will treat it as untyped, which is unusual for a property that lives in a published ontology.

Decisions needed:

  1. `owl:DatatypeProperty` vs `owl:ObjectProperty` vs leave as `rdf:Property` (because the value is either an IRI for the simple-path case or an RDF list for the sequence-path case).
  2. Whether to declare an `rdfs:range` (e.g., a union of `rdf:Property` and `rdf:List`).
  3. Knock-on impact on item 6.2 (path-traversal sandboxing/grammar) which is downstream of this decision.

Recommend pairing the decision with the path-grammar formalisation in the formal-semantics doc.

cc @tonyseale @matthiasautrata

jgeluk avatar May 28 '26 16:05 jgeluk

This decision faces a larger can of worms. ODRL punted on it: RightOperandRef and nothing else offered there. My original proposal was to use a string and '.' path notation (like context.requester). That kept the syntax simple while breaking a little bit with Sprawl syntax or conventions. The earlier discussion was a that we could adopt the SHACL approach of property path. Maybe acceptable but then we introduce SHACL machinery in here as well. Still TBD.

matthiasautrata avatar Aug 04 '26 20:08 matthiasautrata

@rivettp what do you think of this one?

jgeluk avatar Aug 10 '26 16:08 jgeluk