Template:Define value label constraint
Please note that this template must be substituted. Replace {{define value label constraint}} with {{subst:define value label constraint}} .Check un-substituted usage |
value label (1: should match regex)
fix label or adjust regex for language at Property:P7561#P1552: complex constraint value label (Q100884525) (Help)
Violations query:
List of this constraint violations: Database reports/Complex constraint violations/Define value label constraint#value label (1: should match regex)
fix label or adjust regex for language at Property:P7561#P1552: complex constraint value label (Q100884525) (Help)
Violations query:
SELECT ?item ?lang ?l ?value ?v ?t WHERE { hint:Query hint:optimizer "None". wd:P7561 p:P1552 [ ps:P1552 wd:Q100884525 ; pq:P8770 ?t ] BIND( lang(?t) as ?lang) ?item wdt:P7561 ?value. OPTIONAL { ?item rdfs:label ?l . FILTER(lang(?l) = ?lang) } ?value rdfs:label ?v . FILTER(lang(?v) = ?lang) FILTER ( !REGEX(str(?v), str(?t) ) ) } # ORDER BY ?lang ?v
List of this constraint violations: Database reports/Complex constraint violations/Define value label constraint#value label (1: should match regex)
value label (1: languages lacking a regex)
determine a regex and add it at Property:P7561#P1552: complex constraint value label (Q100884525) (Help)
Violations query:
List of this constraint violations: Database reports/Complex constraint violations/Define value label constraint#value label (1: languages lacking a regex)
determine a regex and add it at Property:P7561#P1552: complex constraint value label (Q100884525) (Help)
Violations query:
SELECT ?item ?lang (COUNT(*) as ?count) (SAMPLE(?l) as ?sample_l) (SAMPLE(?s) as ?sample_s) (SAMPLE(?value) as ?sample_value) WHERE { hint:Query hint:optimizer "None". ?s wdt:P7561 ?value . ?value rdfs:label ?l . BIND(lang(?l) as ?lang) OPTIONAL { wd:P7561 p:P1552 [ ps:P1552 wd:Q100884525 ; pq:P8770 ?t ] FILTER( lang(?t) = ?lang) } FILTER( !BOUND(?t) ) ?item wdt:P424 ?lang ; wdt:P305 [] . } GROUP BY ?item ?lang HAVING ( ?count > 9) ORDER BY DESC ( ?count)
List of this constraint violations: Database reports/Complex constraint violations/Define value label constraint#value label (1: languages lacking a regex)
Defines {{Complex constraint}}
on property talk pages for properties with complex constraint value label (Q100884525).
Usage
edit{{subst:Define value label constraint}}
See also
editThe above documentation is transcluded from Template:Define value label 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. |