Template:Complex constraint
Jump to navigation
Jump to search
{{{label}}}
(Help)
Violations query:
List of this constraint violations: [[Wikidata:Database reports/Complex constraint violations/Complex constraint#{{{label}}}|Database reports/Complex constraint violations/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}}}]]
Template documentation[view · edit · history · ] [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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
label | label | Short title of the constraint; do not use templates, internal or external links | Line | required |
description | description | Explanation of the constraint | Line | suggested |
SPARQL | sparql | 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 "{{!}}". | Unknown | required |
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
The above documentation is transcluded from Template:Complex constraint/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Please add categories to the /doc subpage. Subpages of this template. |