Template:Complex constraint

{{{label}}}
(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 ] [translate this template]

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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
labellabel

Short title of the constraint; do not use templates, internal or external links

Linerequired
descriptiondescription

Explanation of the constraint

Linesuggested
SPARQLsparql

SPARQL query (without prefix) to be executed. The query needs to return the entity id in field ?item; the pipe character "|" needs to be masked with "{{!}}".

Unknownrequired

Example:

{{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')}
 }}

See also

  NODES
see 2
Story 2