Skip to content

Commit

Permalink
Correct the subject in the powergrid model manager. Otherwise it some…
Browse files Browse the repository at this point in the history
…times truncates the beginning of the uuid
  • Loading branch information
tdtalbot committed Feb 13, 2025
1 parent 6b07911 commit 05a267a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,12 @@ protected String resultSetToJson(ResultSet rs){
HashMap<String, JsonObject> resultObjects = new HashMap<String, JsonObject>();
while( rs.hasNext()) {
QuerySolution qs = rs.nextSolution();
String subject = qs.getResource(SUBJECT).getLocalName();
String subject = qs.getResource(SUBJECT).toString();
if(!subject.contains("urn:uuid")){
subject = qs.getResource(SUBJECT).getLocalName();
} else {
subject = subject.substring(subject.lastIndexOf(':')+1);
}
JsonObject obj = new JsonObject();
if(resultObjects.containsKey(subject)){
obj = resultObjects.get(subject);
Expand Down

0 comments on commit 05a267a

Please sign in to comment.