Skip to content

Commit

Permalink
debugging adb
Browse files Browse the repository at this point in the history
  • Loading branch information
Schmoho committed Aug 18, 2024
1 parent 47ece05 commit 9052b57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/edu/ucsd/sbrg/db/adb/AnnotateDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,17 @@ public Set<String> 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;
Expand Down

0 comments on commit 9052b57

Please sign in to comment.