Property talk:P9241

From Wikidata
Jump to navigation Jump to search

Documentation

demographics of topic
item that deals with demographics of the subject
Representsdemographics (Q2725376), demographics of country or region (Q23983664)
Has qualitycomplex constraint value label (Q100884525), complex constraint value label template (Q100883797)
Data typeItem
ExampleAndorra (Q228)demographics of Andorra (Q2087350)
Greenland (Q223)demographics of Greenland (Q337836)
South America (Q18)demographics of South America (Q5256080)
Dammarie-sur-Loing (Q1167459)demographics of Dammarie-sur-Loing (Q3043873)
See alsohistory of topic (P2184), economy of topic (P8744), geography of topic (P2633), culture (P2596)
Lists
Proposal discussionProposal discussion
Current uses
Total1,172
Main statement1,16499.3% of uses
Qualifier80.7% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Value type “demographics of country or region (Q23983664): This property should use items as value that contain property “instance of (P31)”. On these, the value for instance of (P31) should be an item that uses subclass of (P279) with value demographics of country or region (Q23983664) (or a subclass thereof). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P9241#Value type Q23983664, SPARQL
Distinct values: this property likely contains a value that is different from all other items. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P9241#Unique value, SPARQL (every item), SPARQL (by value)
Single value: this property generally contains a single value. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P9241#Single value, SPARQL
Scope is as main value (Q54828448): the property must be used by specified way only (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P9241#Scope, SPARQL
Allowed entity types are Wikibase item (Q29934200): the property may only be used on a certain entity type (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P9241#Entity types
Without qualifiers: this property should be used without any qualifiers. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P9241#allowed qualifiers
Property “instance of (P31): demographics of country or region (Q23983664)” declared by target items of “demographics of topic (P9241): If [item A] has this property with value [item B], [item B] is required to have property “instance of (P31): demographics of country or region (Q23983664)”. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P9241#Target required claim P31, SPARQL
Item “country (P17): Items with this property should also have “country (P17)”. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: Earth (Q2)
List of violations of this constraint: Database reports/Constraint violations/P9241#Item P17, search, SPARQL
Property “country (P17)” declared by target items of “demographics of topic (P9241): If [item A] has this property with value [item B], [item B] is required to have property “country (P17)”. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: demographics of the world (Q5256120)
List of violations of this constraint: Database reports/Constraint violations/P9241#Target required claim P17, SPARQL, SPARQL (by value)
Property “topic's main category (P910)” declared by target items of “demographics of topic (P9241): If [item A] has this property with value [item B], [item B] is required to have property “topic's main category (P910)”. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P9241#Target required claim P910, SPARQL, SPARQL (by value)
Property “subclass of (P279)” declared by target items of “demographics of topic (P9241): If [item A] has this property with value [item B], [item B] is required to have property “subclass of (P279)”. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P9241#Target required claim P279, SPARQL, SPARQL (by value)
candidates (1: demographics of region without P276)
possible values for this property (Help)
Violations query: SELECT ?item ?loc WHERE { ?item wdt:P31 wd:Q23983664 . MINUS { ?item wdt:P276 ?loc } MINUS { ?loc wdt:P9241 ?item } }
List of this constraint violations: Database reports/Complex constraint violations/P9241#candidates (1: demographics of region without P276)
candidates (2: demographics of region with P276)
possible values for this property (Help)
Violations query: SELECT ?item ?loc WHERE { ?item wdt:P31 wd:Q23983664 ; wdt:P276 ?loc . MINUS { ?loc wdt:P9241 ?item } }
List of this constraint violations: Database reports/Complex constraint violations/P9241#candidates (2: demographics of region with P276)
value label (1: should match regex)
fix label or adjust regex for language at Property:P9241#P1552: complex constraint value label (Q100884525) (Help)
Violations query: SELECT ?item ?lang ?l ?value ?v ?t WHERE { hint:Query hint:optimizer "None". wd:P9241 p:P1552 [ ps:P1552 wd:Q100884525 ; pq:P8770 ?t ] BIND( lang(?t) as ?lang) ?item wdt:P9241 ?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/P9241#value label (1: should match regex)
value label (1: languages lacking a regex)
determine a regex and add it at Property:P9241#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:P9241 ?value . ?value rdfs:label ?l . BIND(lang(?l) as ?lang) OPTIONAL { wd:P9241 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/P9241#value label (1: languages lacking a regex)

Consistency of value labels with value label regex[edit]

This list is periodically updated by a bot. Manual changes to the list will be removed on the next update!

WDQS | PetScan | TABernacle | Find images | Recent changes
lang ?lang regex labels ≠regex % regex
Dutch nl demografie van (de |het )?.+ 1155 0 100
Galician gl demografía d.+ 167 0 100
Welsh cy demograffeg .+ 122 0 100
Afrikaans af demografie van .+ 125 0 100
French fr démographie d(u |es |e l'|e la |e |').+ 892 3 99.7
German de Demografie .+ 93 10 89.2
Italian it demografia d(ella|ello|elle|egli|el|ei|i|ell|)[ '].+ 44 3 93.2
Polish pl demografia .+ 85 3 96.5
Spanish es demografía de(l| las| la)? .+ 265 8 97
English en demographics of .+ 1149 8 99.3
Portuguese pt demografia d(os|as|e|o|a) .+ 235 3 98.7
Catalan ca demografia .+ 79 1 98.7
Romanian ro demografia .+ 118 14 88.1
Brazilian Portuguese pt-br demografia d(os|as|e|o|a) .+ 22 2 90.9

Discussion[edit]

Currently designed for regional[edit]

This currently flags problems urban culture (Q778407) ---> demographics of topic (P9241) ---> urban population (Q115055942)

  • inverse constraint - urban people should also have the inverse statement location urban culture.
  • urban people should have a statement instance of demographics of country or region.
  • Values of demographics of topic statements should be instances of demographics of country or region (or of a subclass of it), but urban people currently isn't.

Lots of demographic labels are not regional. elderly people (Q2191986) is another. Bluerasberry (talk) 15:01, 4 November 2022 (UTC)[reply]