-
Notifications
You must be signed in to change notification settings - Fork 12
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
inconsistent ontology parsing when generating specification #140
Comments
Thanks @DougalW, As for the third run, I think the word |
Sounds fine. I'll check the use of ID now to see if that's what caused the problem. |
I changed ID to Identifier and modified the config.yaml and it still caused severe warnings. |
Forgot to attach the config file I used: |
Hi Daniel did you get time to take a look at this issue? |
@DougalW, |
I have been having a look. The newest release of OBA seems to have introduced some errors, I see that some of the specs produced are no valid because some schemas are missing. I will fix this next week. |
Hi, I found the source of the generated errors. It looks like the ontology has some complex class expressions where there are several union and intersection restrictions, which OBA fails to process (it generates SEVERE warnings). E.g.
and the OWL for Account is:
which is a subclass of Category:
Here are the files: Once I deleted the complex expressions it worked fine. Here's the simplified version of the OWL: |
Thanks! It looks like for some reason some classes are still not listed (See #145 ). I have saved some time next week to look into this and fix it |
Also I noticed odd behaviour when mapping object property restrictions into the spec. When I parse through the openapi.yaml file it isn't generating a complete schema from object properties correctly. E.g. allocatedBy has a range restriction ''Intellectual Property' or Organization or Person or System' but only Organization comes through in the openapi spec, even though it should conform to the mapping spec. |
This seems to overlap with #151, which has been addressed. Since I have been testing with the same ontology, I will close it up. Let me know if there are issues!. |
Hi
Using OBA version 3.5.1, I noticed inconsistent parsing behaviour when I use a moderately complex ontology. This means I cannot generate a server from the spec. E.g. using a test ontology with different modifications as follows:
first run: I called OBA with ontology1.owl, OBA failed on the Person class
second run: I added a new class, AccountCategory, to the ontology (ontology2.owl), OBA failed on Person, CustomerCategory classes
third run: I added a label to AccountCategory (ontology 3.owl), OBA now fails on ExternalID, ID, InternalID, Person classes but NOT on CustomerCategory
Attached is a zip of ontologies and console outputs (please don't upload the ontology file into the OBA repo of examples).
Archive.zip
The text was updated successfully, but these errors were encountered: