-
Notifications
You must be signed in to change notification settings - Fork 315
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
Allow parsing of OWL qualified cardinality restrictions even when the onProperty is not known to be an Object or Datatype property. #571
Comments
Can you describe what you wish to happen? When a property is undefined, parser behavior is supposed to be to throw exceptions. In order to deal with real world data, we attempt to treat such cases with a best guess, but we need more information on this one. |
Sorry, saw your update after my comment |
Commented the object property in exactCardinalityConstraint.owl. Will try to solve Issue 571 (owlcs/owlapi#571).
Relax a bit the Object Property assertion logic. If it is not explicitly declared to be an Object Property or a Datatype Property, then assume it is an Object Property.
The new title represents what my original intention was after all... i'll issue a new pull request that tries to fulfill this in a more elegant way. |
I use OWL API version 4 and the following snippet,
to load the following ontology that contains a qualified cardinality restriction,
The OWL API logs the following,
The ontology contains the Error1 class,
and the cardinality restriction is not parsed correctly.
When i declare
:manages
as Object Property,it parses the ontology correctly,
No Error1 class and the cardinality restriction is parsed correctly.
My suggestion is that whenever a property is not known to be an Object or Datatype property, to default to an Object Property if we are in LAX mode. What do you think about such an enhancement? Any good strategies to tackle such a requirement? Would a solution be to alter a bit the logic here?
The text was updated successfully, but these errors were encountered: