Property talk:P4224

From Wikidata
Jump to navigation Jump to search

Documentation

category contains
category contains elements that are instances of this item
RepresentsWikimedia category (Q4167836)
Data typeItem
Template parameterin SPARQL form, on Commons c:Template:Category contains (experimental)
DomainWikimedia category (Q4167836)
Allowed values
According to this template: class items
According to statements in the property:
When possible, data should only be stored as statements
ExampleCategory:Grade I listed buildings in Bedfordshire (Q8497784)architectural structure (Q811979)
Category:Association football magazines (Q4305)magazine (Q41298)
Category:Ungulates (Q4333)taxon (Q16521)
Robot and gadget jobsMove existing statements on category items using is a list of (P360) to use this property instead
See alsocategory combines topics (P971), is a list of (P360), category's main topic (P301), contains (P4330), instance of (P31), related category (P7084)
Lists
Proposal discussionProposal discussion
Current uses
Total945,870
Main statement928,55398.2% of uses
Qualifier17,3091.8% of uses
Reference8<0.1% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Type “Wikimedia category (Q4167836): item must contain property “instance of (P31), subclass of (P279)” with classes “Wikimedia category (Q4167836)” or their subclasses (defined using subclass of (P279)). (Help)
List of violations of this constraint: Database reports/Constraint violations/P4224#Type Q4167836, hourly updated report, SPARQL
Scope is as main value (Q54828448), as qualifier (Q54828449): 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/P4224#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/P4224#Entity types
Q59542487 missing P4224
Wikimedia category (Q59542487)s should define their membership semantics using category contains (P4224) and relevant qualifiers (when applicable). (Help)
Violations query: SELECT DISTINCT ?item ?itemLabel WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } ?item wdt:P31 wd:Q59542487. FILTER NOT EXISTS { ?item wdt:P4224 ?category_contains. } }
List of this constraint violations: Database reports/Complex constraint violations/P4224#Q59542487 missing P4224

Metacategory constraints

[edit]

Conflicts with instance of (P31) : Wikimedia meta category (Q30432511) deleted because it means that The metacategory contains sub- metacategories OR categories which contains classes stated in category contains (P4224) Here.--Avatar6 (talk) 00:36, 11 September 2018 (UTC)[reply]

This is not what this property is used for

[edit]

There is extensive usage of using it to describe what the list contains.. so much so that Reasonator will show what should be in the list from a Wikidata point of view. Thanks, GerardM (talk) 08:41, 21 May 2020 (UTC)[reply]

Unclear relationship with category's main topic (P301)

[edit]

It is not very obvious to me when one should use this property vs. category's main topic (P301). I see that one of the Wikidata property example (P1855) used in the latter is Category:Ungulates (Q4333), which has the following two statements:

...which may help illustrate the difference, so I went ahead and added that very same item as an example for this property as well; but it still feels a bit fuzzy, so ideally there should be a disambiguation in the form of Wikidata usage instructions (P2559) added to both properties. Can anyone help with a proposed wording for those? --Waldyrious (talk) 22:40, 10 November 2024 (UTC)[reply]