Skip to content

Commit

Permalink
Update SBOLData.java
Browse files Browse the repository at this point in the history
  • Loading branch information
shb0527 authored Mar 22, 2024
1 parent 9c51b90 commit 8e70962
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions SBOLCanvasBackend/src/utils/SBOLData.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,14 @@ public static String[] getRefinement(String parentName){
parentName = "NGA (No Glyph Assigned)";
}
TreeSet<String> refinementNames = new TreeSet<String>();
Set<URI> descendants = so.getDescendantURIsOf(roles.getValue(parentName));
for(URI uri : descendants) {
refinementNames.add(so.getName(uri));
if (roles.getValue(parentName) != null) {
Set<URI> descendants = so.getDescendantURIsOf(roles.getValue(parentName));
for(URI uri : descendants) {
refinementNames.add(so.getName(uri));
}
}
return refinementNames.toArray(new String[0]);

}

/**
Expand Down

0 comments on commit 8e70962

Please sign in to comment.