> > where can we find the implementation of the class RDFStar? > https://github.com/apache/jena/blob/main/jena-arq/src/main/java/org/apache/jena/system/RDFStar.java
Just go to Jena's source code in GitHub, https://github.com/apache/jena/, click on "Go to file", type the name of the class (e.g. "RDFStar") and normally you will find a file with the matching name. Otherwise use GitHub's "Search in this repository" and that may lead you to the source code you are looking for. -Bruno On Wed, 18 Jan 2023 at 09:02, Ghinwa FAKIH <[email protected]> wrote: > where can we find the implementation of the class RDFStar? > > On 17/01/2023 13:13, Andy Seaborne wrote: > > > > > > 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 >
