Fix Wikidata entity type constraint violation message. Closes #2659

This commit is contained in:
Antonin Delpeuch 2020-05-31 14:36:32 +01:00
parent c7c69d0909
commit 5f75da74bf

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);
}