Template:Complex constraint

From Wikidata
Jump to navigation Jump to search
Pictogram voting comment.svg {{{label}}}
{{{description}}} (Help)
Violations query: {{{sparql}}}
List of this constraint violations: [[Wikidata:Database reports/Complex constraint violations/Complex constraint#{{{label}}}|Database reports/Complex constraint violations/Complex constraint#{{{label}}}]]
Documentation icon Template documentation[view] [edit] [history] [purge]

This template defines complex constraints to detect items to which a property has been assigned an invalid value. To use it, put the template on an item talk page or property talk page. A bot will create a report and update it daily.


{{Complex constraint
 | label = Unsuitable IMDb identifier for human
 | description = Person with IMDb identifier but prefix is not nm
 | sparql = SELECT ?item WHERE { ?item wdt:P31 wd:Q5. ?item wdt:P345 ?imdb . filter (substr(?imdb,0,2) != 'nm')}


  • label Short title of the constraint
  • description Explanation of the constraint
  • sparql SPARQL query (without prefix) to be executed. The query needs to return the entity id in field ?item.

See also