Class EnglishDescriptionScrutinizer
- java.lang.Object
-
- org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
-
- org.openrefine.wikibase.qa.scrutinizers.DescriptionScrutinizer
-
- org.openrefine.wikibase.qa.scrutinizers.EnglishDescriptionScrutinizer
-
public class EnglishDescriptionScrutinizer extends DescriptionScrutinizer
- Author:
- Lu Liu
-
-
Field Summary
Fields Modifier and Type Field Description static String
descBeginWithArticle
static String
descBeginWithUppercase
static String
descEndsByPunctuationSign
-
Fields inherited from class org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
_fetcher, _store, connection, enableSlowChecks, manifest
-
-
Constructor Summary
Constructors Constructor Description EnglishDescriptionScrutinizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkArticle(LabeledStatementEntityEdit update, String descText)
protected void
checkPunctuationSign(LabeledStatementEntityEdit update, String descText)
protected void
checkUppercase(LabeledStatementEntityEdit update, String descText)
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
-
descEndsByPunctuationSign
public static final String descEndsByPunctuationSign
- See Also:
- Constant Field Values
-
descBeginWithUppercase
public static final String descBeginWithUppercase
- See Also:
- Constant Field Values
-
descBeginWithArticle
public static final String descBeginWithArticle
- See Also:
- Constant Field Values
-
-
Method Detail
-
scrutinize
public void scrutinize(LabeledStatementEntityEdit update, String descText, String lang)
- Specified by:
scrutinize
in classDescriptionScrutinizer
-
checkPunctuationSign
protected void checkPunctuationSign(LabeledStatementEntityEdit update, String descText)
-
checkUppercase
protected void checkUppercase(LabeledStatementEntityEdit update, String descText)
-
checkArticle
protected void checkArticle(LabeledStatementEntityEdit update, String descText)
-
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.
-
-