Write (additional) RDF type @param w XML writer @param con RDF triple store connection @param uri URI of the dataset @param type RDF type @throws XMLStreamException
(XMLStreamWriter w, RepositoryConnection con, Resource iri, IRI type)
| 554 | * @throws XMLStreamException |
| 555 | */ |
| 556 | private static void writeType(XMLStreamWriter w, RepositoryConnection con, Resource iri, IRI type) |
| 557 | throws XMLStreamException { |
| 558 | if (con.hasStatement(iri, RDF.TYPE, type, true)) { |
| 559 | w.writeEmptyElement("rdf:type"); |
| 560 | w.writeAttribute("rdf:resource", type.stringValue()); |
| 561 | } |
| 562 | } |
| 563 | |
| 564 | /** |
| 565 | * Write generic metadata |