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

Method writeReferences

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

Write multiple references @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

487 * @throws XMLStreamException
488 */
489 private static void writeReferences(XMLStreamWriter w, RepositoryConnection con, Resource uri, IRI pred,
490 String el) throws XMLStreamException {
491 try (RepositoryResult<Statement> res = con.getStatements(uri, pred, null)) {
492 while (res.hasNext()) {
493 writeReference(w, el, res.next().getObject());
494 }
495 }
496 }
497
498 /**
499 * Write references and their wrapper class

Callers 11

writeGenericInfoMethod · 0.95
writeContactsMethod · 0.95
writeProvenancesMethod · 0.95
writeMeasurementsMethod · 0.95
writeCitedMethod · 0.95
writeGenericMethod · 0.95
writeDistMethod · 0.95
writeResourceMethod · 0.95
writeConceptsMethod · 0.95
writeAgentMethod · 0.95
writeCatalogMethod · 0.95

Calls 4

writeReferenceMethod · 0.95
addSkosConceptMethod · 0.95
writeAgentMethod · 0.95
writeGenericInfoMethod · 0.95

Tested by

no test coverage detected