Fix Wikidata entity type constraint violation message. Closes #2659
This commit is contained in:
parent
c7c69d0909
commit
5f75da74bf
@ -15,6 +15,7 @@ public class EntityTypeScrutinizer extends SnakScrutinizer {
|
|||||||
PropertyIdValue pid = snak.getPropertyId();
|
PropertyIdValue pid = snak.getPropertyId();
|
||||||
if(!_fetcher.usableOnItems(pid)) {
|
if(!_fetcher.usableOnItems(pid)) {
|
||||||
QAWarning issue = new QAWarning(type, null, QAWarning.Severity.WARNING, 1);
|
QAWarning issue = new QAWarning(type, null, QAWarning.Severity.WARNING, 1);
|
||||||
|
issue.setProperty("property_entity", pid);
|
||||||
issue.setProperty("example_entity", entityId);
|
issue.setProperty("example_entity", entityId);
|
||||||
addIssue(issue);
|
addIssue(issue);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user