IATA-Cargo / ONE-Record

This repository contains the documentation & specs for the ONE Record standard.
https://onerecord.iata.org
MIT License
102 stars 51 forks source link

[API Ontology] fix OWL restriction on Subscription#cacheFor #159

Closed ddoeppner closed 6 months ago

ddoeppner commented 1 year ago

The API ontology is not consistent regarding the data type of Subscription#cacheFor. while it should be an integer value, there is a restriction in the TTL file that restricts the cacheFor property to be a string

see https://github.com/IATA-Cargo/ONE-Record/blob/master/working_draft/ontology/IATA-1R-API-Ontology.ttl#L1284

 [ rdf:type owl:Restriction ;
                                    owl:onProperty subscription:cacheFor ;
                                    owl:allValuesFrom xsd:string
                                  ] ,
ddoeppner commented 6 months ago

Fixed by changed Subscription#cacheFor (xsd:int) to Subscription#expiresAt (xsd:dateTime) with the release of ONE Record API v2.0.0

see also https://iata-cargo.github.io/ONE-Record/changelog see also https://onerecord.iata.org/ns/api#expiresAt