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

Access domain and range of an object property inferred by reasoner from an inverse property #25

Open
mashaWithoutBear opened this issue May 18, 2022 · 0 comments

Comments

@mashaWithoutBear
Copy link

Hello, can you please help me with the following situation:
I create an object property A (domainA, rangeA) and an inverse property B in Protege. Run a reasoner and get the domain and range of property B to be (rangeA, domainA).
Then I would like to access the domain and range of property B in owlready2. But propertyB.domain returns an empty list.
Running a reasoner in owlready2 using
with onto:
sync_reasoner(infer_property_values = True)
does not help neither :(
Is it possible at all to infer domain and range of an inverse property in owlready2?
Thanks a lot for your answer!

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

1 participant