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)
| 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 |
no test coverage detected