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 booleanequals(Object obj)protected URIextraURINormalize(URI uri)inthashCode()booleanmatch(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.StringtoString()
-
-
-
Method Detail
-
match
public boolean match(org.wikidata.wdtk.datamodel.interfaces.Value existing, org.wikidata.wdtk.datamodel.interfaces.Value added)Description copied from interface:ValueMatcherCompare two values and return true if they should be treated as identical.- Specified by:
matchin 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
-
-