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.
Parameter | Type |
---|---|
| string |
| 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:soundex_distance("foobar", "boofar") AS ?soundex_distance) { }
Run query
Results:
soundex_distance |
---|
3 |