formats.addAll(RDFWriterRegistry.getInstance().getKeys());
formats.addAll(TupleQueryResultFormat.values());
for (FileFormat f: formats) {
final String formatUri = w3cFormatID.get(f);
if (StringUtils.isNotBlank(formatUri)) {
writer.handleStatement(vf.createStatement(sd, SPARQL_SD.resultFormat, vf.createURI(formatUri)));
} else {
final BNode fNode = vf.createBNode();
writer.handleStatement(vf.createStatement(sd, SPARQL_SD.resultFormat, fNode));
writer.handleStatement(vf.createStatement(fNode, RDF.TYPE, vf.createURI("http://www.w3.org/ns/formats/Format")));
writer.handleStatement(vf.createStatement(fNode, vf.createURI("http://www.w3.org/ns/formats/media_type"), vf.createLiteral(f.getDefaultMIMEType())));