Skip to main content

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)
{
}

Try the query

Table 2. Results

jaro_winkler_distance

0.7778