In the test [1], the default context of Kiwi is set to null, which implies
that triples inserted into the data base will have a null context too.
However, there is a new test in Sesame 2.8.11 that tests duplicated triples
and it is failing with null contexts. The problem is that Kiwi uses the
following SQL to determine whether a triple is already stored or not.

SELECT ID .... WHERE subject=# AND predicate=# AND object=# AND
context=null ...

This SQL always returns  an empty result set, because the condition
'context = null' is not valid and should be replaced with 'context is
null'. This causes that duplicated triples can be stored in Kiwi.

So there are two solutions:

1) To keep allowing null context and modify SQL query.
2) Modify the test to work with a non-null context?

Cheers,
Gustavo.

[1]
https://github.com/gmora1223/marmotta/blob/MARMOTTA-659/libraries/kiwi/kiwi-triplestore/src/test/java/org/apache/marmotta/kiwi/test/sesame/repository/KiWiRepositoryConnectionTest.java

Reply via email to