Class StatementScrutinizer
java.lang.Object
org.openrefine.wikidata.qa.scrutinizers.EditScrutinizer
org.openrefine.wikidata.qa.scrutinizers.StatementScrutinizer
- Direct Known Subclasses:
DistinctValuesScrutinizer,InverseConstraintScrutinizer,QualifierCompatibilityScrutinizer,RestrictedPositionScrutinizer,SnakScrutinizer
-
Field Summary
Fields inherited from class org.openrefine.wikidata.qa.scrutinizers.EditScrutinizer
_fetcher, _store, manifest -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidscrutinize(ItemEdit update) Reads the candidate edit and emits warnings in the storevoidscrutinize(MediaInfoEdit update) Reads the candidate edit and emits warnings in the storeabstract voidscrutinize(org.wikidata.wdtk.datamodel.interfaces.Statement statement, org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityId, boolean added) The method that should be overridden by subclasses, implementing the checks on one statementvoidMethods inherited from class org.openrefine.wikidata.qa.scrutinizers.EditScrutinizer
addIssue, addIssue, batchIsBeginning, batchIsFinished, critical, findValues, getConstraintsRelatedId, important, info, prepareDependencies, scrutinize, setFetcher, setManifest, setStore, warning
-
Constructor Details
-
StatementScrutinizer
public StatementScrutinizer()
-
-
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
-
scrutinizeStatementEntityEdit
-
scrutinize
public abstract void scrutinize(org.wikidata.wdtk.datamodel.interfaces.Statement statement, org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityId, boolean added) The method that should be overridden by subclasses, implementing the checks on one statement- Parameters:
statement- : the statement to scrutinizeentityId- : the id of the entity on which this statement is made or removedadded- : whether this statement was added or deleted
-