pwin / owlready2

GNU Lesser General Public License v3.0
140 stars 23 forks source link

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

Open mashaWithoutBear opened 2 years ago

mashaWithoutBear commented 2 years ago

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!