Class ItemRequiresScrutinizer
java.lang.Object
org.openrefine.wikidata.qa.scrutinizers.EditScrutinizer
org.openrefine.wikidata.qa.scrutinizers.ItemRequiresScrutinizer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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
-
newItemRequireValuesType
- See Also:
-
newItemRequirePropertyType
- See Also:
-
existingItemRequireValuesType
- See Also:
-
existingItemRequirePropertyType
- See Also:
-
itemRequiresConstraintQid
-
itemRequiresPropertyPid
-
itemOfPropertyConstraintPid
-
-
Constructor Details
-
ItemRequiresScrutinizer
public ItemRequiresScrutinizer()
-
-
Method Details
-
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.
-
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
-