Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Ontology: Missing axiom expiresAt only xsd:dateTime in class Subscription #274

Open
nscheiber-champ opened this issue Oct 22, 2024 · 3 comments

Comments

@nscheiber-champ
Copy link
Contributor

The API ontology is missing an axiom stating that the property expiresAt only expects xsd:dateTime on class Subscription:

[ rdf:type owl:Restriction ;
                owl:onProperty :expiresAt ;
                owl:allValuesFrom xsd:dateTime
                       ] 

This leads to code generators generating erratic code and is inconsistent, as other properties expecting xsd:dateTime have that axiom.

@aloccid-iata
Copy link
Collaborator

HI Niclas,
I think this is how the code library is interpreting the ontology.
The ontology already have a data range:

                         [ rdf:type owl:Restriction ;
                            owl:onProperty :expiresAt ;
                            owl:maxQualifiedCardinality "1"^^xsd:nonNegativeInteger ;
                            owl:onDataRange xsd:dateTime
                          ]

If needed we can add your axiom in the ontology as an improvement.

Best,
Davide

@nscheiber-champ
Copy link
Contributor Author

Hi Davide,
agreed, though many code generators struggle with this type of axiom missing. We compromised in the cargo ontology for that reason, refraining from using "owl:maxQualifiedCardinality" during 3.0.0 dev.

I can add and request to pull?

Cheers
Niclas

@aloccid-iata
Copy link
Collaborator

Yes fine, I will need to create a jira and link it to the commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants