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 discription of the Jaro-Winkler distance function can be found here.

Parameter

Type

x

string

y

string

Returns: decimal

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

Run query

Results:

jaro_winkler_distance

0.7778