Class LaxValueMatcher

java.lang.Object
org.openrefine.wikidata.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 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: ValueMatcher
      Compare two values and return true if they should be treated as identical.
      Specified by:
      match in interface ValueMatcher
      Parameters:
      existing - the existing value on the entity
      added - the value to add/remove
      Returns:
    • extraURINormalize

      protected URI extraURINormalize(URI uri) throws URISyntaxException
      Throws:
      URISyntaxException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object