Class LaxValueMatcher
java.lang.Object
org.openrefine.wikidata.schema.strategies.LaxValueMatcher
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected 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.toString()
-
Constructor Details
-
LaxValueMatcher
public LaxValueMatcher()
-
-
Method Details
-
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
- Throws:
URISyntaxException
-
toString
-
hashCode
public int hashCode() -
equals
-