Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
julijaovcinnikova committed Oct 31, 2024
1 parent 4330c2d commit addbeae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/imports/client/custom/vq/js/generateSPARQL_jo.js
Original file line number Diff line number Diff line change
Expand Up @@ -4159,7 +4159,7 @@ function generateSPARQLWHEREInfo(sparqlTable, ws, fil, lin, referenceTable, SPAR

var having = sparqlTable["subClasses"][subclass]["having"];
//ad triples from order by
temp = temp.concat(having["triples"])
if(having !== null)temp = temp.concat(having["triples"])

selectResult["groupBy"] = selectResult["groupBy"].concat(refTable);
selectResult["groupBy"] = selectResult["groupBy"].concat(orderBy["orderGroupBy"]);
Expand Down Expand Up @@ -4213,7 +4213,7 @@ function generateSPARQLWHEREInfo(sparqlTable, ws, fil, lin, referenceTable, SPAR

if(sparqlTable["subClasses"][subclass]["agregationInside"] == true || selectResult["aggregate"].length > 0) subQuery = subQuery + groupBy;

if(having.exp != "") subQuery = subQuery + "\n"+SPARQL_interval + "HAVING(" + having.exp + ")";
if(having!== null && having.exp != "") subQuery = subQuery + "\n"+SPARQL_interval + "HAVING(" + having.exp + ")";
//ORDER BY
if (orderBy["orders"] != "") subQuery = subQuery + "\n"+SPARQL_interval+"ORDER BY " + orderBy["orders"];

Expand Down

0 comments on commit addbeae

Please sign in to comment.