java.lang.Object
fr.mines_stetienne.ci.sparql_generate.function.Suggestions

public final class Suggestions extends Object
Suggests the known IRI closest to an unknown one, for the messages about unknown functions and iterators: a misspelled iter:JSONpath is likely iter:JSONPath.
  • Method Details

    • didYouMean

      public static String didYouMean(String unknown, Iterator<String> known)
      Parameters:
      unknown - the unknown IRI
      known - the known IRIs
      Returns:
      " Did you mean <iri>?" for the known IRI of the same namespace whose local name is the closest to that of the unknown one, ignoring case, if it is close enough; or "".