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