gatemezing / Ontology_Workflow_Testing

Verified Permissions ontology
Apache License 2.0
1 stars 0 forks source link

vp:Case, vp:Scope must indicate provenance #9

Open Certiman opened 3 months ago

Certiman commented 3 months ago

Challenge

The ontology must cover for the following use case (using ERA example):

The link between the Vehicle to its most recent VehicleRegistration / Authorisation is updated in both cases, but the information captured in the original RegistrationCase/AuthorisationCase remains valid if unchanged.

We therefore need a link between vp:Case's, for instance using PROV-O.

This way certain properties of a vehicle are updated links to the most recent vp:Case scope-data.

Example

#original registration
era:veh-xyz a era:Vehicle ; era:registeredWith era:reg-xyz-0 ...
era:reg-xyz-0 a era:VehicleRegistration ; vp:submittedIn era:regcase-xyz-0-0 .... 
era:regcase-xyz-0-0 a era:RegistrationCase ; vp:concerns era:Vtype-abc ...

# registration update
era:reg-xyz-1 a era:VehicleRegistration ; vp:submittedIn era:regcase-xyz-1-0 .... 
era:regcase-xyz-1-0 a era:RegistrationCase ; vp:concerns era:Vtype-efg ...

# Update the Vehicle link at end of this Registration
era:veh-xyz a era:Vehicle ; era:registeredWith era:reg-xyz-1 ...

The query for the actual VehicleType of the Vehicle is based on the link with the registration(Case):

# Query the actual VehicleType of the Vehicle, does not require "hard-link":
?v era:registeredWith / vp:submittedIn / vp:concerns ?t ;
?t a era:VehicleType 

For an historical overview of all the types, it suffices to have:

era:regcase-xyz-1-0 prov:wasDerivedFrom era:regcase-xyz-0-0 ;
Certiman commented 3 months ago

Note that this was currently solved in ERA5.0.0 with era:previousAuthorisation and era:previousRegistration, but I find this suboptimal.

gatemezing commented 3 months ago

Note that this was currently solved in ERA5.0.0 with era:previousAuthorisation and era:previousRegistration, but I find this suboptimal.

Indeed, it will be better to reuse PROV-O for provenance... Let see also if we can reuse the https://www.w3.org/TR/prov-o/#Activity