-
Notifications
You must be signed in to change notification settings - Fork 21
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
Duplicate element in linkedlist #34
Comments
Hi, Thanks for your question. Not sure I understand it though; did you run in and noticed that duplicates were generated? If so, could you please share your input data? Is the question about what processing takes place in memory? If so, then in the second loop, there is only a getter; no additional processing takes place. Also to mention that the lists first and second have no duplicates as the former contains predicate object maps for which RefObjectMap is not null, and the latter the ones for which RefObjectMap is null. Did this answer your question? Happy to dig deeper if needed. Best, |
Hi Nikos, I am sorry for my bad description. ` ex:TriplesMap_Emp According to the first loop, every rr:predicateObjectMap for which RefObjectMap is null will make its LogicalTableMapping be added into the first linkedlist. In our example, ex:TriplesMap_Dept will be added into the first linkedlist three times because there are three rr:predicateObjectMap for which RefObjectMap is null. ex:TriplesMap_Emp will be added into the first linkedlist four times and be added into second linkedlist once because there are four rr:predicateObjectMap for which RefObjectMap is null and one rr:predicateObjectMap is not null. And I confirmed by add a break-point at end of first loop to watch elements in the first linkedlist. Is that correct? And I also confirmed that if there is only one Jena RDF result model across all process, duplicates in linkedlist will not cause any more triples but I try to use multiple model to reduce memory usage which will make duplicates in linkedlist parsed twice or more. If there are any unclear descriptions, please question me. Thank you very much! Jason |
Hello nkons,
I have a question about LinkedList in
r2rml-parser/src/main/java/gr/seab/r2rml/beans/Parser.java
Lines 117 to 132 in 7025777
If there are some predicateObjectMappings in one LogicalTableMapping, there will be many duplicate element in linkedlist first or second.
So will these duplicate elements be parsed twice or more in the below loop?
r2rml-parser/src/main/java/gr/seab/r2rml/beans/Generator.java
Line 189 in 7025777
Thank you very much!
The text was updated successfully, but these errors were encountered: