Re: Replacement for org.apache.jena.rdfxml.xmloutput.impl.Basic

2022-12-15 Thread Andy Seaborne
https://github.com/apache/jena/blob/main/jena-examples/src/main/java/arq/examples/riot/ExRIOT_RDFXML_WriteProperties.java On 15/12/2022 12:49, Martynas Jusevičius wrote: Hi, org.apache.jena.rdfxml.xmloutput.impl.Basic is gone in 4.6.1. How do I rewrite the following code then?

Re: SHACLC and RDFLanguages

2022-12-15 Thread Martynas Jusevičius
I was looking into this again... I see that RDFParserRegistry already has the required collections langTriples and langQuads. I think simply adding accessors for them would solve my use case. Something like this maybe? public static Set registeredLangTriples() { return

Re: Replacement for CSVInput and TSVInput?

2022-12-15 Thread Martynas Jusevičius
Thanks. On Mon, Dec 12, 2022 at 7:55 PM Andy Seaborne wrote: > > ResultsSetMgr which uses ResultsReader > > > On 12/12/2022 15:45, Martynas Jusevičius wrote: > > Hi, > > > > I'm upgrading Jena 4.5.0 to 4.6.1. > > > > I can see that org.apache.jena.sparql.resultset.CSVInput is gone and > >

Replacement for org.apache.jena.rdfxml.xmloutput.impl.Basic

2022-12-15 Thread Martynas Jusevičius
Hi, org.apache.jena.rdfxml.xmloutput.impl.Basic is gone in 4.6.1. How do I rewrite the following code then? RDFWriterI writer = new Basic(); writer.setProperty("allowBadURIs", true); // round-tripping RDF/POST with user input may contain invalid URIs writer.write(model, baos, null);