Skip to content

Commit

Permalink
Rename function from geof:iswktpoint to geof:isPointWKT
Browse files Browse the repository at this point in the history
Reason: the predicate is called `geo:asWKT`, so the new name looks more
consistent with that.
  • Loading branch information
Hannah Bast committed Oct 19, 2024
1 parent c562c81 commit 26500a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/parser/sparqlParser/SparqlQleverVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ ExpressionPtr Visitor::processIriFunctionCall(
} else if (functionName == "latitude") {
checkNumArgs(1);
return sparqlExpression::makeLatitudeExpression(std::move(argList[0]));
} else if (functionName == "iswktpoint") {
} else if (functionName == "isPointWKT") {
checkNumArgs(1);
return sparqlExpression::makeIsWktPointExpression(std::move(argList[0]));
}
Expand Down
2 changes: 1 addition & 1 deletion test/SparqlAntlrParserTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1655,7 +1655,7 @@ TEST(SparqlParser, FunctionCall) {
matchUnary(&makeLatitudeExpression));
expectFunctionCall(absl::StrCat(geof, "longitude>(?x)"),
matchUnary(&makeLongitudeExpression));
expectFunctionCall(absl::StrCat(geof, "iswktpoint>(?x)"),
expectFunctionCall(absl::StrCat(geof, "isPointWKT>(?x)"),
matchUnary(&makeIsWktPointExpression));
expectFunctionCall(
absl::StrCat(geof, "distance>(?a, ?b)"),
Expand Down

0 comments on commit 26500a9

Please sign in to comment.