Merge pull request #2660 from OpenRefine/2659-type-constraint

Fix Wikidata entity type constraint violation message
This commit is contained in:
Tom Morris 2020-06-01 19:14:22 -04:00 committed by GitHub
commit 16a7209b17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@ public class EntityTypeScrutinizer extends SnakScrutinizer {
PropertyIdValue pid = snak.getPropertyId();
if(!_fetcher.usableOnItems(pid)) {
QAWarning issue = new QAWarning(type, null, QAWarning.Severity.WARNING, 1);
issue.setProperty("property_entity", pid);
issue.setProperty("example_entity", entityId);
addIssue(issue);
}