On 14/08/2023 19:46, Andrii Berezovskyi wrote:
Hello,
I just noticed that .listReifiedStatements()
ReifiedStatement, and RSIterator, which we use [1],
That's quite a long method!
What is reification used for in Lyo?
Do quoted triples provide the same capability?
have been deprecated in Jena. We looked though the javadocs and on the mailing
list and didn't find any discussion of the migration guidance. [2] still
mentions RSIterator and ReifiedStatement.
The website is still Jena4.
Could you please advise us on the best way to migrate from using these deprecated APIs?
Reification support is all calculation library code - it's a way to
present reification. It does not affect storage.
Jena2 had variations of reification which did impact storage - these
have not existed in releases for a long time.
The library that backs the reification support is ReifierStd and it will
be available in jena5. ReifierStd works on graphs, not models. Writing
companion code to provide the functionality for the Model API
equivalents would be possible. Contributions welcome.
RSIterator isn't necessary. It's a "typed next()" iterator that came
about in the pre-generics times.
To be clear : this is not RDF-star quoted triples.
Also, do I understand correctly that the removal is planned for Jena 5.x after
JDK 21 release?
Yes, sometime after Java21. Jena5 will require Java17, in line with
supporting two LTS versions of Java.
Jena is already built and tested on Java17 as part of our CI. Users can
switch to java17 in deployments now. It is a bit faster and has Java
improvements and fixes not backported to Java11.
Andy
https://lists.apache.org/thread/mk7qj43lwt17cnn6k1zxz7y0dom08gqs
Thanks in advance,
Andrew
[1]:
https://github.com/eclipse/lyo/blob/a75b1945353cea5550cbd524c0e19da2ac4d4341/core/oslc4j-core/src/main/java/org/eclipse/lyo/oslc4j/provider/jena/JenaModelHelper.java#L952
[2]: https://jena.apache.org/documentation/notes/reification.html