Class UnsourcedScrutinizer
- java.lang.Object
-
- org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
-
- org.openrefine.wikibase.qa.scrutinizers.UnsourcedScrutinizer
-
public class UnsourcedScrutinizer extends EditScrutinizer
A scrutinizer checking for unsourced statements- Author:
- Antonin Delpeuch
-
-
Field Summary
Fields Modifier and Type Field Description static StringconstraintItemTypestatic StringgeneralType-
Fields inherited from class org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
_fetcher, _store, connection, enableSlowChecks, manifest
-
-
Constructor Summary
Constructors Constructor Description UnsourcedScrutinizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanprepareDependencies()Prepare the dependencies(i.e. constraint-related pids and qids) needed by the scrutinizer.voidscrutinize(ItemEdit update)Reads the candidate edit and emits warnings in the storevoidscrutinize(MediaInfoEdit update)Reads the candidate edit and emits warnings in the storevoidscrutinizeStatementEdit(StatementEntityEdit update)-
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
-
generalType
public static final String generalType
- See Also:
- Constant Field Values
-
constraintItemType
public static final String constraintItemType
- See Also:
- Constant Field Values
-
-
Method Detail
-
scrutinize
public void scrutinize(ItemEdit update)
Description copied from class:EditScrutinizerReads the candidate edit and emits warnings in the store- Specified by:
scrutinizein classEditScrutinizer- Parameters:
update- : theItemEditto scrutinize
-
scrutinize
public void scrutinize(MediaInfoEdit update)
Description copied from class:EditScrutinizerReads the candidate edit and emits warnings in the store- Specified by:
scrutinizein classEditScrutinizer- Parameters:
update- : theItemEditto scrutinize
-
scrutinizeStatementEdit
public void scrutinizeStatementEdit(StatementEntityEdit update)
-
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.
-
-