Class SnakScrutinizer
- java.lang.Object
-
- org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
-
- org.openrefine.wikibase.qa.scrutinizers.StatementScrutinizer
-
- org.openrefine.wikibase.qa.scrutinizers.SnakScrutinizer
-
- Direct Known Subclasses:
EntityTypeScrutinizer
,FormatScrutinizer
,QuantityScrutinizer
,RestrictedValuesScrutinizer
,SelfReferentialScrutinizer
,ValueScrutinizer
public abstract class SnakScrutinizer extends StatementScrutinizer
A scrutinizer that inspects snaks individually, no matter whether they appear as main snaks, qualifiers or references.- 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 SnakScrutinizer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
scrutinize(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.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 statementprotected void
scrutinizeSnakSet(Iterator<org.wikidata.wdtk.datamodel.interfaces.Snak> snaks, org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityId, boolean added)
-
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, scrutinize, setApiConnection, setEnableSlowChecks, setFetcher, setManifest, setStore, warning
-
-
-
-
Method Detail
-
scrutinize
public abstract void scrutinize(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.- 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
-
scrutinize
public void scrutinize(org.wikidata.wdtk.datamodel.interfaces.Statement statement, org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityId, boolean added)
Description copied from class:StatementScrutinizer
The method that should be overridden by subclasses, implementing the checks on one statement- Specified by:
scrutinize
in classStatementScrutinizer
- 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
-
scrutinizeSnakSet
protected void scrutinizeSnakSet(Iterator<org.wikidata.wdtk.datamodel.interfaces.Snak> snaks, org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityId, boolean added)
-
-