*/
public static String extractRDF(LocalRepository repository, RDFFormat format) {
StringWriter stringWriter = new StringWriter();
RdfDocumentWriter rdfDocumentWriter;
if (format == RDFFormat.NTRIPLES) {
rdfDocumentWriter = new NTriplesWriter(stringWriter);
} else if (format == RDFFormat.RDFXML) {
rdfDocumentWriter = new RdfXmlWriter(stringWriter);
} else {
rdfDocumentWriter = new TurtleWriter(stringWriter);
}