On 17/01/2023 10:32, Ghinwa FAKIH wrote:
Hello,
I find this documentation on jena :
https://jena.apache.org/documentation/rdf-star/
In this documentation, it is stated that the package
/org.apache.jena.system.RDFStar//**/can be used for converting from rdf
into rdf-star and vice versa.
But I didn't find any details about how this package is used.
RDFStar is a class:
/**
* Library for RDF-star translation to and from reification form.
* There is one reification for each unique quoted triple term.
* This is especially important when decoding.
*/
It provides a specialist (non-standard - there isn't a standard)
translation of quoted triple terms into RDF reification triples that can
be read by a RDF system that does not support RDF star syntax.
It also can reverse the mapping - take data it has encoded and produce a
graph with quoted triples.
It enables transferring data between systems if one does not support
RDF-star.
It is not a general tool to convert already existing reification into
RDF quoted triple terms.
Any Jena graph (model) supports RDF star in the Jena current release
(4.7.0) with no additional steps.
In
addition, there is no information in this documentation about the
functions related to rdf-star in this package. I need a help for writing
code that can load RDF data and convert it into rdf-star and then
executing sparql-star queries.
RDF-star is always on in Jena.
Just load the data as you would any other data. Turtle data can include
quoted triples.
Jena supports the W3C CG final report:
https://w3c.github.io/rdf-star/cg-spec
including SPARQL functions and results.
Thank you in advance for any help.
Regards
Andy