On 05/06/13 17:31, Dave Reynolds wrote:
On 05/06/13 17:20, Joshua TAYLOR wrote:
On Wed, Jun 5, 2013 at 11:41 AM, Dave Reynolds
<[email protected]> wrote:
On 05/06/13 15:11, Joshua TAYLOR wrote:
Hi all, a colleague is looking at ways of dynamically adding rules to
an rule reasoner, and has had no luck to date. A message from the
androJena mailing list from May 2012 at
http://code.google.com/p/androjena/issues/detail?id=13
describes the problem very clearly. A reply mentions a post by Dave
Reynolds at
http://tech.dir.groups.yahoo.com/group/jena-dev/message/46790
but I don't have access to that message since I'm not a group member.
Does anyone have a copy of that available?
Thanks in advance,
//JT
It was:
On Mon, 2011-02-14 at 22:18 +0000, Andrew Crapo wrote:
I create an instance of GenericRuleReasoner, passing a rule list to
the constructor and call bindSchema to give the reasoner an OntModel.
I then create an InfModel with this code:
infModel = ModelFactory.createInfModel(reasoner, dataModel);
where dataModel is an OntModel with additional instance data. If
certain conditions are met, I wish to add some rules to possibly draw
additional inferences but without rebinding as I wish to apply the new
rules to the triples in the current infModel. I am doing this by
calling addRules and passing it a list of additional rules. However,
the new rules appear to not have any affect. Am I missing a step?
addRules is a method on the reasoner, changing that won't change
existing inference models, just affects future InfModels created with
that reasoner.
There's no support for dynamically adding forward rules to a running
InfModel, it would require a complete rebind anyway.
It *is* possible to add backward rules to a running InfModel, see
FBRuleInfGraph#addBRules
I guess it would also be possible to create a new InfModel with just the
new rules and wrap it over the top of the existing InfModel but
addBRules seems more likely to be the way to go.
Thanks! It doesn't change much on our end (and we weren't
particularly hopeful that it would), but it's nice to get that
confirmation of what we'd already suspected.
In the past, wasn't is possible to browse the archive of the Yahoo!
group?
Yes.
The issue was that despite all our attempts to point people at the
Apache lists we were still getting people signing up to the yahoo group.
This cost us time in membership moderation. So we made it a closed list.
I thought I remembered browsing threads there. Are there any
plans to make those archives publicly available?
No current plans. I think it would be technically possible to have the
archives publicly visible while keeping the group closed.
I think (though this might be rational reconstruction) the feeling was
that too many of those old threads were becoming increasingly misleading
as Jena evolved. By leaving the archives as member-visible then anyone
who participated in those threads can still see them.
It's more because if you press the right combinations of buttons for
publicly readable archives and a closed group, you get back a system
error. (Y! groups support is not reliable in dealing with issues raised.)
Andy
Dave
Dave