writer.writeStartElement(rdfPrefix, "Bag",
Annotation.URI_RDF_SYNTAX_NS);
writer.writeCharacters("\n");
for (int i = 0; i < history.getNumCreators(); i++) {
Creator modelCreator = history.getCreator(i);
writer.writeCharacters(whiteSpace + createIndentationString(2 * indentCount));
writer.writeStartElement(rdfPrefix, "li",
Annotation.URI_RDF_SYNTAX_NS);
writer.writeAttribute(rdfPrefix, Annotation.URI_RDF_SYNTAX_NS,
"parseType", "Resource");
String vCardPrefix = rdfNamespaces.get(Creator.URI_RDF_VCARD_NS);
if (modelCreator.isSetFamilyName()
|| modelCreator.isSetGivenName()) {
writer.writeCharacters("\n");
writer.writeCharacters(whiteSpace + createIndentationString(3 * indentCount));
writer.writeStartElement(vCardPrefix, "N",
Creator.URI_RDF_VCARD_NS);
writer.writeAttribute(Annotation.URI_RDF_SYNTAX_NS,
"parseType", "Resource");
writer.writeCharacters("\n");
if (modelCreator.isSetFamilyName()) {
writer.writeCharacters(whiteSpace + createIndentationString(4 * indentCount));
writer.writeStartElement(vCardPrefix, "Family",
Creator.URI_RDF_VCARD_NS);
writer.writeCharacters(modelCreator.getFamilyName());
writer.writeEndElement();
writer.writeCharacters("\n");
}
if (modelCreator.isSetGivenName()) {
writer.writeCharacters(whiteSpace + createIndentationString(4 * indentCount));
writer.writeStartElement(vCardPrefix, "Given",
Creator.URI_RDF_VCARD_NS);
writer.writeCharacters(modelCreator.getGivenName());
writer.writeEndElement();
writer.writeCharacters("\n");
}
writer.writeCharacters(whiteSpace + createIndentationString(3 * indentCount));
writer.writeEndElement();
writer.writeCharacters("\n");
}
if (modelCreator.isSetEmail()) {
writer.writeCharacters(whiteSpace + createIndentationString(3 * indentCount));
writer.writeStartElement(vCardPrefix, "EMAIL",
Creator.URI_RDF_VCARD_NS);
writer.writeCharacters(modelCreator.getEmail());
writer.writeEndElement();
writer.writeCharacters("\n");
}
if (modelCreator.isSetOrganisation()) {
writer.writeCharacters(whiteSpace + createIndentationString(3 * indentCount));
writer.writeStartElement(vCardPrefix, "ORG",
Creator.URI_RDF_VCARD_NS);
writer.writeAttribute(rdfPrefix,
Annotation.URI_RDF_SYNTAX_NS, "parseType",
"Resource");
writer.writeCharacters("\n");
writer.writeCharacters(whiteSpace + createIndentationString(4 * indentCount));
writer.writeStartElement(vCardPrefix, "Orgname",
Creator.URI_RDF_VCARD_NS);
writer.writeCharacters(modelCreator.getOrganisation());
writer.writeEndElement();
writer.writeCharacters("\n");
writer.writeCharacters(whiteSpace + createIndentationString(3 * indentCount));
writer.writeEndElement();
writer.writeCharacters("\n");