Skip to content

Commit

Permalink
Make sure values clause is never empty
Browse files Browse the repository at this point in the history
  • Loading branch information
kwahlin committed Dec 10, 2024
1 parent 019a71f commit 1014e55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class MatchForm {

private String insertIdMappings(String sparqlPattern) {
def valuesClauses = formBNodeIdToResourceIds.collect { _id, ids ->
"VALUES ${getVar(_id)} { ${ids.collect { "<$it>" }.join(" ")} }\n"
"VALUES ${getVar(_id)} { <${ids.join("> <")}> }\n"
}.join()
return valuesClauses + sparqlPattern
}
Expand Down

0 comments on commit 1014e55

Please sign in to comment.