Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [rdf4j-dev] ForwardChainingRDFSInferencer issue

Hi Ieuan,

I recommend using the SchemaCachingRDFSInferencer, but you shouldn’t take my word for it since I’m the one who developed it. In my use cases it’s considerably faster than the older forward chaining inferencer. I do recall some bugs being posted after we made it the default choice, but I think that was a while ago and they should all the fixed in 3.7.7. 

I can’t remember fixing any specific issues with the old inferencer, but there have been a number of small fixes to how transactions are tracked and flushed. Might be related to that. 

Could you create an issue or a discussion on GitHub? It’s a bit easier to track individual issues there rather than here on the developer mailing list. 


Cheers,
Håvard M. Ottestad 

On 5 Sep 2022, at 22:49, ieuan richards <ieuanr79@xxxxxxxxx> wrote:


Hi,

We're currently upgrading from RDF4J 2.4.5 to 3.7.7 and have encountered an issue with the ForwardChainingRDFSInferencer Sail. What happens is that when you clear a specific context and then try and re-add a statement you had in that context it doesn't get re-added. That is unless you execute some other operation like a getStatements which flushes the changes between the clear and the add. It doesn't happen without the inferencer or with the new SchemaCachingRDFSInferencer. I have attached a Java class which reproduces the issue.

I have noticed that it seems to be fixed in 4.1.1 but I can't find the ticket for it on github. It is unlikely we will be able to upgrade to that version so we will probably need to either patch 3.7.7. ourselves or switch to SchemaCachingRDFSInferencer. I'm not sure how safe it is at the moment to just switch over to that class. Could you point me in the right direction of the github issue please so I can see the fix?

Thanks,
Ieuan

Attachment: ClearContextTest.java
Description: Binary data

_______________________________________________
rdf4j-dev mailing list
rdf4j-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/rdf4j-dev

Back to the top