I'd like to match an input given by user (String) with a value (String) of a specific node existing in rdf file.
I applied the following exact mode for matching (input=NodeValue):
...
FILTER regex (?NodeValue,"userinput$","i").
for this type of matching (input < NodeValue ) I used the following:
...
FILTER regex (?NodeValue,".*userinput.*","i").
So, my question is how to set my regex in order to get the type of matching when (input > NodeValue) I mean a query that's returns a list of ?nodeValue subsumed by a given user input.
Eg. if the user enters patagoniaisbeautiful it returns patagonia.
Thank you in advance.
?NodeValue, but it's best-practice to useSTR(?NodeValue)as first argument of the REGEX function.(input < NodeValue)and(input > NodeValue)... in case they are symbols of inclusion, I wonder why one would want to get all subsets of a user input... I mean, if the user enterspatagonia, do you really wantp,pa,tag,go,niand so on? Then again, maybe those symbols mean something else entirely.patagoniaisbeautifulit returnspatagonia.