DPROD Contracts: dprod:path OWL typing and rdfs:range (5.4)
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:
- `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).
- Whether to declare an `rdfs:range` (e.g., a union of `rdf:Property` and `rdf:List`).
- 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
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.
@rivettp what do you think of this one?