Class Suggestions
java.lang.Object
fr.mines_stetienne.ci.sparql_generate.function.Suggestions
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 Summary
Modifier and TypeMethodDescriptionstatic StringdidYouMean(String unknown, Iterator<String> known)
-
Method Details
-
didYouMean
- Parameters:
unknown- the unknown IRIknown- 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 "".
-