diff --git a/src/main/java/edu/ucsd/sbrg/db/adb/AnnotateDB.java b/src/main/java/edu/ucsd/sbrg/db/adb/AnnotateDB.java index 572a51d..72b67b1 100644 --- a/src/main/java/edu/ucsd/sbrg/db/adb/AnnotateDB.java +++ b/src/main/java/edu/ucsd/sbrg/db/adb/AnnotateDB.java @@ -98,14 +98,17 @@ public Set getAnnotations(String type, String biggId) throws SQLExceptio PreparedStatement pStatement = connection.prepareStatement(query)) { pStatement.setString(1, type); pStatement.setString(2, biggId); + int i = 0; try (ResultSet resultSet = pStatement.executeQuery()) { // Process each result and construct the URL while (resultSet.next()) { + i++; String uri = resultSet.getString(URLPATTERN); String id = resultSet.getString(TARGET_TERM); uri = uri.replace("{$id}", id); annotations.add(uri); } + logger.debug("Added {} annotations from ADB for {} with ID {}", i, type, biggId); } } return annotations;