Class ItemRequiresScrutinizer
- java.lang.Object
-
- org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
-
- org.openrefine.wikibase.qa.scrutinizers.ItemRequiresScrutinizer
-
public class ItemRequiresScrutinizer extends EditScrutinizer
-
-
Field Summary
Fields Modifier and Type Field Description static String
existingItemRequirePropertyType
static String
existingItemRequireValuesType
String
itemOfPropertyConstraintPid
String
itemRequiresConstraintQid
String
itemRequiresPropertyPid
static String
newItemRequirePropertyType
static String
newItemRequireValuesType
-
Fields inherited from class org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
_fetcher, _store, connection, enableSlowChecks, manifest
-
-
Constructor Summary
Constructors Constructor Description ItemRequiresScrutinizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
prepareDependencies()
Prepare the dependencies(i.e. constraint-related pids and qids) needed by the scrutinizer.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 storevoid
scrutinizeStatementEdit(StatementEntityEdit update)
-
Methods inherited from class org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
addIssue, addIssue, batchIsBeginning, batchIsFinished, critical, findValues, getConstraintsRelatedId, important, info, infoNotFacetable, scrutinize, setApiConnection, setEnableSlowChecks, setFetcher, setManifest, setStore, warning
-
-
-
-
Field Detail
-
newItemRequireValuesType
public static final String newItemRequireValuesType
- See Also:
- Constant Field Values
-
newItemRequirePropertyType
public static final String newItemRequirePropertyType
- See Also:
- Constant Field Values
-
existingItemRequireValuesType
public static final String existingItemRequireValuesType
- See Also:
- Constant Field Values
-
existingItemRequirePropertyType
public static final String existingItemRequirePropertyType
- See Also:
- Constant Field Values
-
itemRequiresConstraintQid
public String itemRequiresConstraintQid
-
itemRequiresPropertyPid
public String itemRequiresPropertyPid
-
itemOfPropertyConstraintPid
public String itemOfPropertyConstraintPid
-
-
Method Detail
-
prepareDependencies
public boolean prepareDependencies()
Description copied from class:EditScrutinizer
Prepare the dependencies(i.e. constraint-related pids and qids) needed by the scrutinizer. Called beforeEditScrutinizer.batchIsBeginning()
.- Specified by:
prepareDependencies
in classEditScrutinizer
- Returns:
- false if any necessary dependency is missing, true otherwise.
-
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
-
scrutinizeStatementEdit
public void scrutinizeStatementEdit(StatementEntityEdit update)
-
-