rdf4j
rdf4j copied to clipboard
SPARQLStarResultsXMLWriterFactory doesn't return SPARQLStarResultsXMLWriter
See https://github.com/eclipse/rdf4j/blob/b849630bfac9c84e0444390179409456da043b15/core/queryresultio/sparqlxml/src/main/java/org/eclipse/rdf4j/query/resultio/sparqlxml/SPARQLStarResultsXMLWriterFactory.java#L42 I think functionally it works, but just confusing/off-putting when you see SPARQLResultsXMLWriter flying around in the debugger when you're expecting to see something like SPARQLStarResultsXMLWriter.
Don't think it does work either as
encodeRDFStar = this instanceof TupleQueryResultWriter && !((TupleQueryResultWriter) this).getTupleQueryResultFormat().supportsRDFStar() && getWriterConfig().get(BasicWriterSettings.ENCODE_RDF_STAR);
I think will do the lookup against SPARQLResultsXMLWriter.
Thanks for pointing this out!