I understand SPARQL makes it more stricky as this has to be handled in a FILTER, but these kind of operators would allow for nice filtering capabilities (e.g. finding results above or below a threshold). I could not find any issue on that topic, sorry if I missed it.

CommentFileSizeAuthor
#1 1145250_1_sv_operators.patch2.48 KBscor

Comments

scor’s picture

Status: Active » Needs review
StatusFileSize
new2.48 KB

this patch adds all the basic operators <, <=, !=, >= and >. I had to introduce a new function add_filter_numeric() since the FILTER syntax is different than the string filter which requires a string function.

Anonymous’s picture

Awesome! I'll be on a plane to Florida for the VIVO hackathon, but as soon as I get a chance, I'll check this out.

scor’s picture

Title: Add more operators such as less/greater than » Add more numeric operators such as less/greater than