Class UnsourcedScrutinizer
java.lang.Object
org.openrefine.wikidata.qa.scrutinizers.EditScrutinizer
org.openrefine.wikidata.qa.scrutinizers.UnsourcedScrutinizer
A scrutinizer checking for unsourced statements
- 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(ItemEdit update) Reads the candidate edit and emits warnings in the storevoidscrutinize(MediaInfoEdit update) Reads the candidate edit and emits warnings in the storevoidMethods inherited from class org.openrefine.wikidata.qa.scrutinizers.EditScrutinizer
addIssue, addIssue, batchIsBeginning, batchIsFinished, critical, findValues, getConstraintsRelatedId, important, info, scrutinize, setFetcher, setManifest, setStore, warning
-
Field Details
-
generalType
- See Also:
-
constraintItemType
- See Also:
-
-
Constructor Details
-
UnsourcedScrutinizer
public UnsourcedScrutinizer()
-
-
Method Details
-
scrutinize
Description copied from class:EditScrutinizerReads the candidate edit and emits warnings in the store- Specified by:
scrutinizein classEditScrutinizer- Parameters:
update- : theItemEditto scrutinize
-
scrutinize
Description copied from class:EditScrutinizerReads the candidate edit and emits warnings in the store- Specified by:
scrutinizein classEditScrutinizer- Parameters:
update- : theItemEditto scrutinize
-
scrutinizeStatementEdit
-
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.
-