-
Notifications
You must be signed in to change notification settings - Fork 70
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
Bump jena-core from 3.17.0 to 4.2.0 #134
Bump jena-core from 3.17.0 to 4.2.0 #134
Conversation
Bumps jena-core from 3.17.0 to 4.2.0. --- updated-dependencies: - dependency-name: org.apache.jena:jena-core dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
@afs any big hurdles to do this upgrade? Seem to be missing: symbol: class GraphStatisticsHandler symbol: class RepeatApplyIterator |
Shouldn't be. 3->4 is because Java11 is required, not a major architecture change. We did make changes a little more freely given the opportunity. Some IRI handling got pickier (a little less lenient) - can emit warnings. GraphStatisticsHandler is no more - remove it. RepeatApplyIterator was a duplicate - use Iter.flatMap |
Okay, should be doable! I guess java 11 is not a issue for hdt users @D063520?
Is there another method to get a cardinality estimate of a triple pattern? (see https://github.com/rdfhdt/hdt-java/blob/master/hdt-jena/src/main/java/org/rdfhdt/hdtjena/solver/ReorderTransformationHDT.java#L108) |
I do not see a problem of forcing to use java 11 ... |
(Not knowing HDT deeply ...) Given |
Nobody knows unfortunately :)
In this case, yes. However, the construct returns for estimating the count on triples containing a certain subject, predicate or object: https://github.com/rdfhdt/hdt-java/blob/master/hdt-jena/src/main/java/org/rdfhdt/hdtjena/solver/ReorderTransformationHDT.java#L131 But granted, this algorithm could definitely be implemented in a better, smarter way. It was inspired by inspired by Jena's FixedReorder. Is that still around? |
hdt.search("","","uri").estimatedNumResults() |
ReorderFixed is still around though it does not look in the data. @D063520 -- Not knowing HDT well enough, I don't understand |
It is an existing function in HDT
|
Okay, done some quick digging and the HDT estimation is in fact already used, but in the implementation of HDTStatistics.java which implements the now missing GraphStatisticsHandler interface. |
Following up in https://github.com/rdfhdt/hdt-java/tree/jena4. @afs there were more small changes than I thought. I tink I mitigated most of them:
But how do I replace |
Update to Jena 4.3.2 : 4.2.x to 4.3.x is not a huge jump. While you aren't picking up log4j2 (the libs don't provide the choice logging for slf4j), users looking from the outside will see "old version". Plus security scanning software isn't very subtle sometimes.
There is now a builder pattern: |
I'm actually migrating from 3 to 4.3.2, taking it one compliler complaint at a time :D
|
|
Down to Fuseki errors. Trying to include #121 while we're at it. |
There are special implementations for the common cases of 1,2,3,4 slots. A Map has significant space overheads for small numbers of slots. |
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
Bumps jena-core from 3.17.0 to 4.2.0.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.