Upgrading to rdf4j 4.0.1 NoClassDefFound org/eclipse/rdf4j/OpenRDFUtil #3916
-
In attempting to upgrade Apache Any23 to use rdf4j 4.0.1 I experienced a NoClassDefFound org/eclipse/rdf4j/OpenRDFUtil as a result of the owlapi libraries not being able to find the absent OpenRDFUtil which was previously available in rdf4j 3.7.X.
Having looked at the rdf4j javadoc I can see that it has OpenRDFUtil indeed been removed... so I may just postpone the upgrade to rdf4j. I just wanted to check here first. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Yes it has been removed. Here is the relevant PR: #3225 |
Beta Was this translation helpful? Give feedback.
-
Like @hmottestad pointed out it has indeed been removed. It looks like I did not include this in the upgrade notes, apologies for that. The only method this class offered was a public static void verifyContextNotNull(Resource... contexts) ...which threw an exception when the supplied input param is null, and was used solely to check validity of the In RDF4J itself its use has just been replaced by: Objects.requireNonNull(contexts,
"contexts argument may not be null; either the value should be cast to Resource or an empty array should be supplied"); It shouldn't be hard to do the same replacement in the Any23 code. |
Beta Was this translation helpful? Give feedback.
-
Thank you both @hmottestad @jeenbroekstra I'll go and submit a PR in the owlapi project. |
Beta Was this translation helpful? Give feedback.
Like @hmottestad pointed out it has indeed been removed. It looks like I did not include this in the upgrade notes, apologies for that.
The only method this class offered was a
verifyContextNotNull
method:...which threw an exception when the supplied input param is null, and was used solely to check validity of the
context
vararg in RDF4J's public methods.In RDF4J itself its use has just been replaced by:
It shouldn't be hard to do the same replacement in the Any23 code.