I am trying to write a SPARQL query where I want to filter on the square of something, but I am simply unable to figure out how to square a number (x2) (except by multiplying it with itself, of course). I guessed a square root function called math:sqrt()
which works, yet nothing like math:pow
seems to exist.
How do I get the square of something in SPARQL and, more importantly, where can I read about it and other math functions such as math:sqrt
in SPARQL?
Note: This is related to my previous question: Reverse wikipedia geotagging lookup .