Class StatementScrutinizer
- java.lang.Object
-
- org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
-
- org.openrefine.wikibase.qa.scrutinizers.StatementScrutinizer
-
- Direct Known Subclasses:
DistinctValuesScrutinizer
,InverseConstraintScrutinizer
,QualifierCompatibilityScrutinizer
,RestrictedPositionScrutinizer
,SnakScrutinizer
public abstract class StatementScrutinizer extends EditScrutinizer
-
-
Field Summary
-
Fields inherited from class org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
_fetcher, _store, connection, enableSlowChecks, manifest
-
-
Constructor Summary
Constructors Constructor Description StatementScrutinizer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
scrutinize(ItemEdit update)
Reads the candidate edit and emits warnings in the storevoid
scrutinize(MediaInfoEdit update)
Reads the candidate edit and emits warnings in the storeabstract 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 statementvoid
scrutinizeStatementEntityEdit(StatementEntityEdit update)
-
Methods inherited from class org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
addIssue, addIssue, batchIsBeginning, batchIsFinished, critical, findValues, getConstraintsRelatedId, important, info, infoNotFacetable, prepareDependencies, scrutinize, setApiConnection, setEnableSlowChecks, setFetcher, setManifest, setStore, warning
-
-
-
-
Method Detail
-
scrutinize
public void scrutinize(ItemEdit update)
Description copied from class:EditScrutinizer
Reads the candidate edit and emits warnings in the store- Specified by:
scrutinize
in classEditScrutinizer
- Parameters:
update
- : theItemEdit
to scrutinize
-
scrutinize
public void scrutinize(MediaInfoEdit update)
Description copied from class:EditScrutinizer
Reads the candidate edit and emits warnings in the store- Specified by:
scrutinize
in classEditScrutinizer
- Parameters:
update
- : theItemEdit
to scrutinize
-
scrutinizeStatementEntityEdit
public void scrutinizeStatementEntityEdit(StatementEntityEdit update)
-
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
-
-