Template:Define label language constraint

From Wikidata
Jump to navigation Jump to search
Label language (1)
items with this property would generally have a label in the language(s) defined at Property:P5176#P1552 with complex constraint label language (Q102746314) (Help)
Violations query: SELECT DISTINCT ?item ?lang { hint:Query hint:optimizer "None". wd:P5176 p:P1552 [ ps:P1552 wd:Q102746314 ; pq:P407 / wdt:P424 ?lang ] . ?item wdt:P5176 [] . OPTIONAL { ?item rdfs:label ?l . FILTER( lang(?l)= ?lang ) } FILTER ( !BOUND(?l) ) } LIMIT 1000
List of this constraint violations: Database reports/Complex constraint violations/Define label language constraint#Label language (1)
Label language: total missing by language (1)
number of items missing a label in the language(s) defined at Property:P5176#P1552 with complex constraint label language (Q102746314) (Help)
Violations query: SELECT ?item ?lang (COUNT(?entity) as ?count) { hint:Query hint:optimizer "None". wd:P5176 p:P1552 [ ps:P1552 wd:Q102746314 ; pq:P407 ?item] . ?item wdt:P424 ?lang . ?entity wdt:P5176 [] . OPTIONAL { ?entity rdfs:label ?l. FILTER( lang(?l)= ?lang ) } FILTER ( !BOUND(?l) ) } GROUP BY ?item ?lang
List of this constraint violations: Database reports/Complex constraint violations/Define label language constraint#Label language: total missing by language (1)
Documentation icon Template documentation[view · edit · history · purge ]

Defines {{Complex constraint}} on property talk pages for properties with complex constraint label language (Q102746314).

Note: In most cases you should use the property constraint label in language constraint (Q108139345) instead as it offers realtime checking and feedback. It also offers reports available from the property talk pages.


Usage[edit]

{{subst:Define label language constraint}}

See also[edit]