ps.print(RDF_XML_SEPARATOR);
ps.print("\n");
} else if(format == VocabularyFormat.NTriples) {
rdfWriter = new NTriplesWriter(ps);
} else if(format == VocabularyFormat.NQuads) {
rdfWriter = new NQuadsWriter(ps);
}
else {
throw new IllegalArgumentException("Unsupported format " + format);
}
serializeVocabulary(vocabulary, rdfWriter);