Hi Dave, thanks, it works now.
On Sun, Jan 17, 2016 at 11:13 AM, Dave Reynolds <[email protected]> wrote: > On 16/01/16 22:14, M. Arif Wicaksana wrote: > > My questions are: >> - Why does my query above result nothing, while Jena itself recognizes >> the corresponding statement? >> > > Because you are issuing the SPARQL query against the raw data instead of > against the inference model whereas your API calls are against the > inference model. > > Try replacing: > > QueryExecution qe = QueryExecutionFactory.create(query, data); > > by: > > QueryExecution qe = QueryExecutionFactory.create(query, infModel); > > - Does my approach correct? Generally, what I want to do is to perform >> some OWL reasoning against my RDF file. >> > > Yes. If you need complete OWL inference then you'll need to switch to a > complete OWL reasoner like Pellet, the Jena rule reasoners have > limitations. However, for things like inverseOf they are fine. > > Dave > > >
