-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding the same triple into two graphs does not work #114
Comments
Hello, a modification of your second test (and your row count of 3) demonstrates the insertions are successful; ARC2 allows the same triple in different graphs:
However the query in the last test is indeed only returning the first of the two triples actually present in graph2. Unfortunately I don't yet have a solution(!) but I am interested if you have any further information on this, as I have what I believe are similar issues for multiple 'LOAD' statements - the data is loaded to the triple store but only the data from the first 'LOAD' is actually visible in subsequent queries. |
After further testing I now have a solution for this issue, which also resolves the problems experienced with multiple 'LOAD' statements. In file ARC2_StoreLoadQueryHandler.php try changing line 228:
The code here is locating the ID for a previously inserted value, but I believe the condition logic here is incorrect - the ID is never found, so a value may get inserted multiple times with different IDs. This leads to the inconsistencies observed, where inserted/loaded data is present in the triple store but not retrieved. |
Unfortunately no.
Would you be OK with creating a test or two to reproduce the problem? And submit it as pull request, so that we can discuss the merge? That would be great. |
OK yes I will do, have set up a separate issue #122 (related to LOAD statements) but it should fix this issue also |
Nice to hear, looking for forward to it! |
The following test code shows, that ARC2 does not seem to allow the same triple in different graphs. Is that right @semsol?
The text was updated successfully, but these errors were encountered: