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

Method writeLiterals

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

Write multiple literals @param w XML writer @param con RDF triple store connection @param uri URI of the dataset @param pred RDF predicate @param el element name @throws XMLStreamException

(XMLStreamWriter w, RepositoryConnection con,
		Resource uri, IRI pred, String el)

Source from the content-addressed store, hash-verified

221 * @throws XMLStreamException
222 */
223 private static void writeLiterals(XMLStreamWriter w, RepositoryConnection con,
224 Resource uri, IRI pred, String el) throws XMLStreamException {
225 try (RepositoryResult<Statement> res = con.getStatements(uri, pred, null)) {
226 while (res.hasNext()) {
227 writeLiteral(w, el, res.next().getObject());
228 }
229 }
230 }
231
232 /**
233 * Write temporal date info for a dcat:Dataset

Callers 12

writeGenericInfoMethod · 0.95
writeDatesMethod · 0.95
writeContactsMethod · 0.95
writeMeasurementsMethod · 0.95
writeAnnotationsMethod · 0.95
writeCitedMethod · 0.95
writeFundingMethod · 0.95
writeGenericMethod · 0.95
writeDistMethod · 0.95
writeResourceMethod · 0.95
writeConceptsMethod · 0.95
writeAgentMethod · 0.95

Calls 1

writeLiteralMethod · 0.95

Tested by

no test coverage detected