JaroWinklerDistance: String similarity emphasizing common prefixes

This metric aims to evaluate similarity between a generated label and a gold-standard label using the Jaro-Winkler distance, which extends the Jaro distance by giving extra weight to matching prefixes (up to four characters by default). The score lies in [0, 1].

Example:

Generate_Label_1: hasStartTimestamp

Generate_Label_2: hasStartTime

Generate_Label_3: Plant

Gold_Standard_Label: hasStartTimestamp

Result:

  1. JaroWinklerDistance(Generate_Label_1, Gold_Standard_Label) = 1.00
  2. JaroWinklerDistance(Generate_Label_2, Gold_Standard_Label) ≈ 0.95
  3. JaroWinklerDistance(Generate_Label_3, Gold_Standard_Label) ≈ 0.40

What is being measured?

This metric captures lexical similarity weighted toward shared prefixes. It is particularly useful for property labels that follow common conventions such as has, is, or namespace stems like dc: and rdf:.

Metric information

RDF Resource Description Framework Flyer Icon
Title
String similarity emphasizing common prefixes
Identifier
Keywords
Ontology Concept Matching, Metric, Classes, Properties, Lexical
Contact Point
Publisher
Version
0.1.0
License
Category
Ontology Concept Matching
Dimension
Task
Applicable for
Benchmark
CQ2OE Benchmark: Competency Questions for Ontology Engineering. A benchmark for evaluating LLM-assisted ontology generation from competency questions.
Status
Active
Active Proposed Inactive Deprecated
Ontology Engineering Group https://oeg.fi.upm.es