soundex_distance
A string comparison function to estimate the similarity of two strings, based on their pronunciation in English. The result of this function ranges from 0 (no similarity) and up, with larger results for longer strings. A full description of the soundex algorithm 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:soundex_distance("foobar", "boofar") AS ?soundex_distance)
{
}Table 2. Results
soundex_distance |
|---|
3 |