MCPcopy Create free account
hub / github.com/Fedict/dcattools / writeType

Method writeType

tools/src/main/java/be/gov/data/tools/EDP.java:556–562  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

writeAgentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected