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 String
descIdenticalWithLabel
static String
descTooLongType
-
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 void
checkLabel(LabeledStatementEntityEdit update, String descText, String lang)
protected void
checkLength(LabeledStatementEntityEdit update, String descText, String lang)
boolean
prepareDependencies()
Prepare the dependencies(i.e. constraint-related pids and qids) needed by the scrutinizer.void
scrutinize(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:
scrutinize
in 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:EditScrutinizer
Prepare the dependencies(i.e. constraint-related pids and qids) needed by the scrutinizer. Called beforeEditScrutinizer.batchIsBeginning()
.- Specified by:
prepareDependencies
in classEditScrutinizer
- Returns:
- false if any necessary dependency is missing, true otherwise.
-
-