|
I am trying to tie up two identical individuals from different sources. My idea is that, if IndividualA has a missing property P but is tied up to IndividualB with an existing P using OWL.sameAs, then the inferencer should output that IndividualA has P! I am confused why this isn't working. This is my code.
The result is a NullPointerException. How do you solve this problem? A more difficult scenario that I've thought of is, if there are Individuals A, B, C, D and E s.t. A isSameAs B, B isSameAs C, and so forth, where E has P = true. Then asking if A has P = true should say TRUE! |
|
Ok, I have posted the same question in the jena mailing list. According to Dave Reynolds, The reasoner works within a model and not across different models. Therefore the answer should be to use say, only modelA for instance so that all of the individuals are stored within it. The answer to this question can also be found here http://jena.markmail.org/thread/is3pyrz3xdj5b7ma |

