gatemezing / Ontology_Workflow_Testing

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

Introduction of vp:valid (time:Interval) #16

Closed Certiman closed 2 months ago

Certiman commented 2 months ago

Several classes in VPA have an issue date, and are themselves valid from a given beginning date, for a specific duration or until a certain end date.

This can be expressed as:

# subClassOf vpa:DocumentedEvidence
era:doc-uuid_of_document a era:ECCertificate ; 
        dct:issued "issue_date"^^xsd:date ;
        vp:valid [ 
            a time:Interval ; # TemporalEntity
            time:hasBeginning  [
                a time:Instant ;
                time:inXSDDate "start_date_of_validity"^^xsd:date
            ] ;
            time:hasDurationDescription [
                a time:DurationDescription ;
                time:years 2 ;
            ] # If absent, unlimited duration
        ];
  ...

For DocumentedEvidence with a start and end date, time: also provides:

# subClassOf vpa:DocumentedEvidence
era:doc-uuid_of_document a era:ECCertificate ; 
        dct:issued "issue_date"^^xsd:date ;
        vp:valid [ 
            a time:Interval ; # TemporalEntity
            time:hasBeginning  [
                a time:Instant ;
                time:inXSDDate "start_date_of_validity"^^xsd:date
            ] ;
            time:hasEnd [
                a time:Instant ;
                time:inXSDDate "end_date_of_validity"^^xsd:date ;
            ] # If absent, unlimited duration
        ];
  ...

From time:, we hence use: