Class RestrictedPositionScrutinizer
java.lang.Object
org.openrefine.wikidata.qa.scrutinizers.EditScrutinizer
org.openrefine.wikidata.qa.scrutinizers.StatementScrutinizer
org.openrefine.wikidata.qa.scrutinizers.RestrictedPositionScrutinizer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class org.openrefine.wikidata.qa.scrutinizers.EditScrutinizer
_fetcher, _store, manifest -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanpositionAllowed(org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue pid, RestrictedPositionScrutinizer.SnakPosition position) booleanPrepare the dependencies(i.e.voidscrutinize(org.wikidata.wdtk.datamodel.interfaces.Snak snak, org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityId, RestrictedPositionScrutinizer.SnakPosition position, boolean added) 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 statementprotected voidscrutinizeSnakSet(Iterator<org.wikidata.wdtk.datamodel.interfaces.Snak> snaks, org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityId, RestrictedPositionScrutinizer.SnakPosition position, boolean added) Methods inherited from class org.openrefine.wikidata.qa.scrutinizers.StatementScrutinizer
scrutinize, scrutinize, scrutinizeStatementEntityEditMethods 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
-
scopeConstraintQid
-
scopeConstraintPid
-
scopeConstraintValueQid
-
scopeConstraintQualifierQid
-
scopeConstraintReferenceQid
-
-
Constructor Details
-
RestrictedPositionScrutinizer
public RestrictedPositionScrutinizer()
-
-
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
public void scrutinize(org.wikidata.wdtk.datamodel.interfaces.Statement statement, org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityId, boolean added) Description copied from class:StatementScrutinizerThe method that should be overridden by subclasses, implementing the checks on one statement- Specified by:
scrutinizein 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, RestrictedPositionScrutinizer.SnakPosition position, boolean added) -
scrutinize
public void scrutinize(org.wikidata.wdtk.datamodel.interfaces.Snak snak, org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityId, RestrictedPositionScrutinizer.SnakPosition position, boolean added) -
positionAllowed
public boolean positionAllowed(org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue pid, RestrictedPositionScrutinizer.SnakPosition position)
-