pavor84 / factplusplus

Automatically exported from code.google.com/p/factplusplus
0 stars 0 forks source link

getRoleFillers problem - OWL API 3 #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I'm using the latest version of Fact++ for Linux (version 1.5.3) together with 
the OWL API 3 (version 3.2.4). When I try to use a 
getObjectPropertyValues(individual, property) request to the reasoner, I get an 
exception with the message "Role expression expected in the getRoleFillers()". 
What is it caused from? What can I do?

Thanks for your time,
Nicola

Original issue reported on code.google.com by nicola.v...@gmail.com on 19 May 2012 at 12:05

GoogleCodeExporter commented 9 years ago
Hmm, sounds strange. This exception happens when the property passed to a 
reasoner is either not of a property type, or null. Could you please add more 
details, like the used ontology and/or code that leads to the exception. I'll 
have a look.

Original comment by dmitry.t...@gmail.com on 21 May 2012 at 4:24

GoogleCodeExporter commented 9 years ago
Ok, after reading your comment I checked whether everything was in place 
(prefix, names and so on) and I found out that a call to the "flush()" method 
was missing, as the property causing the problem was inserted without 
explicitly updating the reasoner. Now it looks like it's working. 
I haven't noticed this before because while using a different reasoner this was 
not necessary.

Do you have any comments about this? Anyway, may I suggest a slightly more 
informative message for the exception?

Thanks again,
Nicola

Original comment by nicola.v...@gmail.com on 21 May 2012 at 10:16

GoogleCodeExporter commented 9 years ago
You might try to use NonBuffering reasoner instead of buffering one. I'll think 
about better wording of the error message.

Original comment by dmitry.t...@gmail.com on 27 May 2012 at 2:34