Class ValueScrutinizer
- java.lang.Object
-
- org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
-
- org.openrefine.wikibase.qa.scrutinizers.StatementScrutinizer
-
- org.openrefine.wikibase.qa.scrutinizers.SnakScrutinizer
-
- org.openrefine.wikibase.qa.scrutinizers.ValueScrutinizer
-
- Direct Known Subclasses:
CalendarScrutinizer,WhitespaceScrutinizer
public abstract class ValueScrutinizer extends SnakScrutinizer
A scrutinizer that inspects the values of snaks and terms- Author:
- Antonin Delpeuch
-
-
Field Summary
-
Fields inherited from class org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
_fetcher, _store, connection, enableSlowChecks, manifest
-
-
Constructor Summary
Constructors Constructor Description ValueScrutinizer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidscrutinize(EntityEdit update)Reads the candidate edit and emits warnings in the storevoidscrutinize(org.wikidata.wdtk.datamodel.interfaces.Snak snak, org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityId, boolean added)This is the method that subclasses should override to implement their checks.abstract voidscrutinize(org.wikidata.wdtk.datamodel.interfaces.Value value)-
Methods inherited from class org.openrefine.wikibase.qa.scrutinizers.SnakScrutinizer
scrutinize, scrutinizeSnakSet
-
Methods inherited from class org.openrefine.wikibase.qa.scrutinizers.StatementScrutinizer
scrutinize, scrutinize, scrutinizeStatementEntityEdit
-
Methods inherited from class org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
addIssue, addIssue, batchIsBeginning, batchIsFinished, critical, findValues, getConstraintsRelatedId, important, info, infoNotFacetable, prepareDependencies, setApiConnection, setEnableSlowChecks, setFetcher, setManifest, setStore, warning
-
-
-
-
Method Detail
-
scrutinize
public void scrutinize(EntityEdit update)
Description copied from class:EditScrutinizerReads the candidate edit and emits warnings in the store- Overrides:
scrutinizein classEditScrutinizer- Parameters:
update- : theEntityEditto scrutinize
-
scrutinize
public abstract void scrutinize(org.wikidata.wdtk.datamodel.interfaces.Value value)
-
scrutinize
public void scrutinize(org.wikidata.wdtk.datamodel.interfaces.Snak snak, org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityId, boolean added)Description copied from class:SnakScrutinizerThis is the method that subclasses should override to implement their checks.- Specified by:
scrutinizein classSnakScrutinizer- Parameters:
snak- : the snak to inspectentityId- : the entity on which it is going to (dis)appearadded- : whether this snak is going to be added or deleted
-
-