Class CommonDescriptionScrutinizer
- java.lang.Object
-
- org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
-
- org.openrefine.wikibase.qa.scrutinizers.DescriptionScrutinizer
-
- org.openrefine.wikibase.qa.scrutinizers.CommonDescriptionScrutinizer
-
public class CommonDescriptionScrutinizer extends DescriptionScrutinizer
- Author:
- Lu Liu
-
-
Field Summary
Fields Modifier and Type Field Description static StringdescIdenticalWithLabelstatic StringdescTooLongType-
Fields inherited from class org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
_fetcher, _store, connection, enableSlowChecks, manifest
-
-
Constructor Summary
Constructors Constructor Description CommonDescriptionScrutinizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckLabel(LabeledStatementEntityEdit update, String descText, String lang)protected voidcheckLength(LabeledStatementEntityEdit update, String descText, String lang)booleanprepareDependencies()Prepare the dependencies(i.e. constraint-related pids and qids) needed by the scrutinizer.voidscrutinize(LabeledStatementEntityEdit update, String descText, String lang)-
Methods inherited from class org.openrefine.wikibase.qa.scrutinizers.DescriptionScrutinizer
scrutinize, scrutinize
-
Methods inherited from class org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
addIssue, addIssue, batchIsBeginning, batchIsFinished, critical, findValues, getConstraintsRelatedId, important, info, infoNotFacetable, scrutinize, setApiConnection, setEnableSlowChecks, setFetcher, setManifest, setStore, warning
-
-
-
-
Field Detail
-
descTooLongType
public static final String descTooLongType
- See Also:
- Constant Field Values
-
descIdenticalWithLabel
public static final String descIdenticalWithLabel
- See Also:
- Constant Field Values
-
-
Method Detail
-
scrutinize
public void scrutinize(LabeledStatementEntityEdit update, String descText, String lang)
- Specified by:
scrutinizein classDescriptionScrutinizer
-
checkLength
protected void checkLength(LabeledStatementEntityEdit update, String descText, String lang)
-
checkLabel
protected void checkLabel(LabeledStatementEntityEdit update, String descText, String lang)
-
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.
-
-