Class LaxValueMatcher
- java.lang.Object
-
- org.openrefine.wikibase.schema.strategies.LaxValueMatcher
-
- All Implemented Interfaces:
ValueMatcher
public class LaxValueMatcher extends Object implements ValueMatcher
Generic matcher which attempts to equate values which should generally be considered equivalent in most data import contexts.- Author:
- Antonin Delpeuch
-
-
Constructor Summary
Constructors Constructor Description LaxValueMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
protected URI
extraURINormalize(URI uri)
int
hashCode()
boolean
match(org.wikidata.wdtk.datamodel.interfaces.Value existing, org.wikidata.wdtk.datamodel.interfaces.Value added)
Compare two values and return true if they should be treated as identical.String
toString()
-
-
-
Method Detail
-
match
public boolean match(org.wikidata.wdtk.datamodel.interfaces.Value existing, org.wikidata.wdtk.datamodel.interfaces.Value added)
Description copied from interface:ValueMatcher
Compare two values and return true if they should be treated as identical.- Specified by:
match
in interfaceValueMatcher
- Parameters:
existing
- the existing value on the entityadded
- the value to add/remove- Returns:
-
extraURINormalize
protected URI extraURINormalize(URI uri) throws URISyntaxException
- Throws:
URISyntaxException
-
-