src/main/java/org/vivoweb/harvester/util/repo/JenaConnect.java
/**
	 * Export all RDF
	 * @param m the model to export from
	 * @param out output stream to write rdf to
	 * @param language the language the rdf is in. Predefined values for lang are "RDF/XML", "N-TRIPLE", "TURTLE" (or
	 *        "TTL") and "N3". null represents the default language, "RDF/XML". "RDF/XML-ABBREV" is a synonym for
	 *        "RDF/XML"
	 * @throws IOException error writing to stream
	 */
Export all RDF
@param m the model to export from
@param out output stream to write rdf to
@param language the language the rdf is in.
Export all RDF @param m the model to export from @param out output stream to write rdf to @param language the language the rdf is in .
private static void exportRdfToStream(Model m, OutputStream out, String language) throws IOException {
		RDFWriter fasterWriter = m.getWriter(language);
		fasterWriter.setProperty("showXmlDeclaration", "true");
		fasterWriter.setProperty("allowBadURIs", "true");
		fasterWriter.setProperty("relativeURIs", "");
		OutputStreamWriter osw = new OutputStreamWriter(out, Charset.availableCharsets().get("UTF-8"));
		fasterWriter.write(m, osw, "");
		osw.flush();
		out.flush();
	}
private static void exportRdfToStream ( Model m , OutputStream out , String language ) throws IOException { RDFWriter fasterWriter = m . getWriter ( language ) ; fasterWriter . setProperty ( "showXmlDeclaration" , "true" ) ; fasterWriter . setProperty ( "allowBadURIs" , "true" ) ; fasterWriter . setProperty ( "relativeURIs" , "" ) ; OutputStreamWriter osw = new OutputStreamWriter ( out , Charset . availableCharsets ( ) . get ( "UTF-8" ) ) ; fasterWriter . write ( m , osw , "" ) ; osw . flush ( ) ; out . flush ( ) ; }
Export all RDF
 @param m the model to export from
 @param out output stream to write rdf to
 @param language the language the rdf is in.
Export all RDF @param m the model to export from @param out output stream to write rdf to @param language the language the rdf is in .