-
Notifications
You must be signed in to change notification settings - Fork 165
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
Incorrect/inconsistent cardinality calculation #1873
Comments
@pulquero can you provide a link to the exact line in the code in github? |
Sry, it's actually in the fed version not the main one. |
Thanks |
Can I work on this issue? |
Sure, it's an open source project, and any help is welcome and much appreciated. If this is your first contribution to RDF4J, there is one small but necessary thing you have to do: register for a (free) Eclipse account and sign a form See "Legal stuff" in https://github.com/eclipse/rdf4j/blob/master/.github/CONTRIBUTING.md |
@aschwarte10 is this class |
So as per I understood the code, and the solution suggested in this issue, I just need to make sure that only distinct elements are in the |
I believe that is what is required. A test would also be nice. |
Alright, I will link a pull-request for this shortly. |
Thank you @barthanssens for linking the legal procedures. |
I have made some changes to the code (here).
|
How about in a new package |
Alright, I will create a package |
I missed adding the issue number in my first commit, so is that fine or should I do something about it? |
You can always edit your commit messages afterwards and also squash multiple commits together. Just don't merge anything into your branch. More importantly is that you sign off on your commits.
I found this helpful guide if you've never used sign off before: https://docs.pi-hole.net/guides/github/how-to-signoff/ |
…inct elements Signed-off-by: Reeshabh Kumar Ranjan <reeshabhkumarranjan@gmail.com>
Signed-off-by: Reeshabh Kumar Ranjan <reeshabhkumarranjan@gmail.com>
Signed-off-by: Reeshabh Kumar Ranjan <reeshabhkumarranjan@gmail.com>
…inct elements, added related tests Signed-off-by: Reeshabh Kumar Ranjan <reeshabhkumarranjan@gmail.com>
Signed-off-by: Reeshabh Kumar Ranjan <reeshabhkumarranjan@gmail.com>
I have linked the pull-request, kindly review it and let me know of any suggestions. |
…countConstantVars()` method, as suggested by @jeenbroekstra; added the actual year in the header comment in CardinalityTest.java Signed-off-by: Reeshabh Kumar Ranjan <reeshabhkumarranjan@gmail.com>
…lculation GH-1873 fixing incorrect cardinality calculation
…inct elements, added related tests Signed-off-by: Reeshabh Kumar Ranjan <reeshabhkumarranjan@gmail.com>
Signed-off-by: Reeshabh Kumar Ranjan <reeshabhkumarranjan@gmail.com>
…countConstantVars()` method, as suggested by @jeenbroekstra; added the actual year in the header comment in CardinalityTest.java Signed-off-by: Reeshabh Kumar Ranjan <reeshabhkumarranjan@gmail.com>
EvaluationStatistics.getCardinality() should use Set vars = pattern.getVars(new HashSet<>()) else
?s ?p ?o and ?s ?s ?s are considered to have the same cardinality.
The text was updated successfully, but these errors were encountered: