jaro_winkler_distance
A string comparison function to estimate the similarity between two strings. The result of this function ranges between 0 (no similarity) and 1 (a perfect match). A full description of the Jaro-Winkler distance function can be found here.
Returns: decimal
Table 1.
Parameter | Type |
---|---|
x | string |
y | string |
Example
Query:
PREFIX : <https://ddw-doccorp.linked.data.world/d/sparql-function-sample-queries/> PREFIX fn: <http://data.world/function/functions#> SELECT (fn:jaro_winkler_distance("foobar", "boofar") as ?jaro_winkler_distance) { }
Table 2. Results
jaro_winkler_distance |
---|
0.7778 |