Class WhitespaceScrutinizer
java.lang.Object
org.openrefine.wikidata.qa.scrutinizers.EditScrutinizer
org.openrefine.wikidata.qa.scrutinizers.StatementScrutinizer
org.openrefine.wikidata.qa.scrutinizers.SnakScrutinizer
org.openrefine.wikidata.qa.scrutinizers.ValueScrutinizer
org.openrefine.wikidata.qa.scrutinizers.WhitespaceScrutinizer
Scrutinizes strings for trailing / leading whitespace, and others
- Author:
- Antonin Delpeuch
-
Field Summary
FieldsFields inherited from class org.openrefine.wikidata.qa.scrutinizers.EditScrutinizer
_fetcher, _store, manifest -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanPrepare the dependencies(i.e.voidscrutinize(org.wikidata.wdtk.datamodel.interfaces.Value value) Methods inherited from class org.openrefine.wikidata.qa.scrutinizers.ValueScrutinizer
scrutinize, scrutinizeMethods inherited from class org.openrefine.wikidata.qa.scrutinizers.SnakScrutinizer
scrutinize, scrutinizeSnakSetMethods inherited from class org.openrefine.wikidata.qa.scrutinizers.StatementScrutinizer
scrutinize, scrutinize, scrutinizeStatementEntityEditMethods inherited from class org.openrefine.wikidata.qa.scrutinizers.EditScrutinizer
addIssue, addIssue, batchIsBeginning, batchIsFinished, critical, findValues, getConstraintsRelatedId, important, info, setFetcher, setManifest, setStore, warning
-
Field Details
-
duplicateWhitespaceType
- See Also:
-
nonPrintableCharsType
- See Also:
-
-
Constructor Details
-
WhitespaceScrutinizer
public WhitespaceScrutinizer()
-
-
Method Details
-
prepareDependencies
public boolean prepareDependencies()Description copied from class:EditScrutinizerPrepare the dependencies(i.e. constraint-related pids and qids) needed by the scrutinizer. Called beforeEditScrutinizer.batchIsBeginning().- Specified by:
prepareDependenciesin classEditScrutinizer- Returns:
- false if any necessary dependency is missing, true otherwise.
-
scrutinize
public void scrutinize(org.wikidata.wdtk.datamodel.interfaces.Value value) - Specified by:
scrutinizein classValueScrutinizer
-