You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Monika Solanki <ms...@gmail.com> on 2011/09/27 04:48:14 UTC

Filtering inferred triples from reasoning results

I  am using the generic rule reasoner layered on top of pellet. The TBox and
ABox for my use case are in separate namespaces. I would like to add the
most useful results from the inferred model back into the ABox and persist
it. These results are those which have all subjects in the ABox namespace
and do not include bnodes in the subject or object position. I do not want
to persist the complete inferred model as the new ABox. Is there a way to
filter the results through calls to the reasoner rather than manipulate the
results in the code?

Re: Filtering inferred triples from reasoning results

Posted by Dave Reynolds <da...@gmail.com>.
On Tue, 2011-09-27 at 03:48 +0100, Monika Solanki wrote: 
> I  am using the generic rule reasoner layered on top of pellet. The TBox and
> ABox for my use case are in separate namespaces. I would like to add the
> most useful results from the inferred model back into the ABox and persist
> it. These results are those which have all subjects in the ABox namespace
> and do not include bnodes in the subject or object position. I do not want
> to persist the complete inferred model as the new ABox. Is there a way to
> filter the results through calls to the reasoner rather than manipulate the
> results in the code?

Not that I can think of unless there is a limited number of ABox subject
nodes - in which case you could list those via the base model then ask
for their properties via the inference model.

You can use filterDrop to filter results as a stream.

Dave