Property talk:P2305
Jump to navigation
Jump to search
Documentation
item of property constraint
qualifier to define a property constraint in combination with "property constraint" (P2302)
qualifier to define a property constraint in combination with "property constraint" (P2302)
Represents | allowed-entity-types constraint (Q52004125) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Data type | Item | ||||||||||||
Domain | Wikidata property (Q18616576) | ||||||||||||
Example | mass (P2067) → kilogram (Q11570) video (P10) → Wikibase item (Q29934200) | ||||||||||||
See also | property constraint (P2302), property (P2306) | ||||||||||||
Lists | |||||||||||||
Proposal discussion | Proposal discussion | ||||||||||||
Current uses |
| ||||||||||||
Search for values |
[create Create a translatable help page (preferably in English) for this property to be included here]
Scope is as qualifier (Q54828449): the property must be used by specified way only (Help)
List of violations of this constraint: Database reports/Constraint violations/P2305#Scope, hourly updated report, SPARQLAllowed entity types are Wikibase property (Q29934218): the property may only be used on a certain entity type (Help)
List of violations of this constraint: Database reports/Constraint violations/P2305#Entity types, hourly updated reportType “Wikidata property (Q18616576)”: item must contain property “instance of (P31)” with classes “Wikidata property (Q18616576)” or their subclasses (defined using subclass of (P279)). (Help)
List of violations of this constraint: Database reports/Constraint violations/P2305#Type Q18616576, hourly updated report, SPARQLItem “property constraint (P2302)”: Items with this property should also have “property constraint (P2302)”. (Help)
List of violations of this constraint: Database reports/Constraint violations/P2305#Item P2302, hourly updated report, search, SPARQLItems of an "allowed entity types constraint" must be Wikidata datatypes
The only allowed items for the item of property constraint (P2305) qualifier to the allowed-entity-types constraint (Q52004125) are Wikibase item (Q29934200), Wikibase property (Q29934218), Wikibase MediaInfo (Q59712033), Wikibase lexeme (Q51885771), Wikibase form (Q54285143) and Wikibase sense (Q54285715). (Help)
Violations query:
List of this constraint violations: Database reports/Complex constraint violations/P2305#Items of an "allowed entity types constraint" must be Wikidata datatypes
The only allowed items for the item of property constraint (P2305) qualifier to the allowed-entity-types constraint (Q52004125) are Wikibase item (Q29934200), Wikibase property (Q29934218), Wikibase MediaInfo (Q59712033), Wikibase lexeme (Q51885771), Wikibase form (Q54285143) and Wikibase sense (Q54285715). (Help)
Violations query:
SELECT ?item ?itemLabel ?datatype ?datatypeLabel WHERE { ?item p:P2302 [ ps:P2302 wd:Q52004125; pq:P2305 ?datatype; wikibase:rank ?rank ]. FILTER (?datatype NOT IN (wd:Q29934200, wd:Q29934218, wd:Q59712033, wd:Q51885771, wd:Q54285143, wd:Q54285715)). FILTER (?rank != wikibase:DeprecatedRank) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
List of this constraint violations: Database reports/Complex constraint violations/P2305#Items of an "allowed entity types constraint" must be Wikidata datatypes
Items of an "lexeme requires language constraint" must be human languages
The only allowed items for the item of property constraint (P2305) qualifier to the allowed-entity-types constraint (Q52004125) are instances of human language (Q20162172) or instances of a subclass of human language (Q20162172). (Help)
Violations query:
List of this constraint violations: Database reports/Complex constraint violations/P2305#Items of an "lexeme requires language constraint" must be human languages
The only allowed items for the item of property constraint (P2305) qualifier to the allowed-entity-types constraint (Q52004125) are instances of human language (Q20162172) or instances of a subclass of human language (Q20162172). (Help)
Violations query:
SELECT ?item ?itemLabel ?language ?languageLabel WHERE { ?item p:P2302 [ ps:P2302 wd:Q55819106; pq:P2305 ?language; wikibase:rank ?rank ]. FILTER NOT EXISTS { ?language wdt:P31/wdt:P279* wd:Q20162172. } FILTER (?rank != wikibase:DeprecatedRank) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
List of this constraint violations: Database reports/Complex constraint violations/P2305#Items of an "lexeme requires language constraint" must be human languages
Items of an "allowed units constraint" must be units of measurement
The only allowed values for the item of property constraint (P2305) qualifier to allowed units constraint (Q21514353) are instances of unit of measurement (Q47574) or instances of a subclass of unit of measurement (Q47574). Use applies to part (P518), applies to people (P6001) or other similar qualifiers to distinguish counts. (Help)
Violations query:
List of this constraint violations: Database reports/Complex constraint violations/P2305#Items of an "allowed units constraint" must be units of measurement
The only allowed values for the item of property constraint (P2305) qualifier to allowed units constraint (Q21514353) are instances of unit of measurement (Q47574) or instances of a subclass of unit of measurement (Q47574). Use applies to part (P518), applies to people (P6001) or other similar qualifiers to distinguish counts. (Help)
Violations query:
SELECT ?item ?itemLabel ?unit ?unitLabel WHERE { ?item p:P2302 [ps:P2302 wd:Q21514353; pq:P2305 ?unit ]. MINUS { ?unit wdt:P2442 []. } MINUS { ?unit wdt:P279* wd:Q8142. } MINUS { ?unit wdt:P31/wdt:P279* wd:Q47574. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
List of this constraint violations: Database reports/Complex constraint violations/P2305#Items of an "allowed units constraint" must be units of measurement
|
|
Title | ID | Data type | Description | Examples | Inverse |
---|---|---|---|---|---|
property constraint | P2302 | Item | property constraint: constraint applicable to a Wikidata property | IMDb ID <property constraint> distinct-values constraint | - |
exception to constraint | P2303 | Item | item that is an exception to the constraint, qualifier to define a property constraint in combination with P2302 | IUCN conservation status <exception to constraint> Varia jamoerensis | - |
group by | P2304 | Property | GROUP BY: qualifier to define a property constraint in combination with P2302 (Wikidata property constraint) that is used to group constraint violations in constraint violation reports | → Property talk:P2304 | - |
item of property constraint | P2305 | Item | allowed-entity-types constraint: qualifier to define a property constraint in combination with "property constraint" (P2302) | mass <item of property constraint> kilogram | - |
property | P2306 | Property | Wikidata property: qualifier to define a property constraint in combination with P2302 (property constraint), or to limit the scope of Q44292881 (wikidata statement) | → Property talk:P2306 | - |
Wikimedia Commons namespace | P2307 | String | qualifier used with the Commons link property constraint (Q21510852) to specify acceptable Wikimedia Commons namespaces that a property value can link to | → Property talk:P2307 | - |
class | P2308 | Item | class: qualifier to define a property constraint in combination with "property constraint" (P2302) | → Property talk:P2308 | - |
relation | P2309 | Item | relation and relation: qualifier to define a property constraint in combination with P2302. Possibly values are: "instance of", "subclass of" or "instance or subclass of". The qualifier to use with the property "relative" is "type of kinship" (P1039), not this | → Property talk:P2309 | - |
minimum date (property constraint) | P2310 | Point in time | qualifier to define a property constraint in combination with "property constraint" (P2302) | → Property talk:P2310 | - |
maximum date (property constraint) | P2311 | Point in time | qualifier to define a property constraint in combination with "property constraint" (P2302). Use "unknown value" for current date. | → Property talk:P2311 | - |
maximum value | P2312 | Quantity | maximum: qualifier indicating the lowest possible value of a quantity. "no value" can be used to specify no upper bound | range constraint <maximum value> 1,234 | - |
minimum value | P2313 | Quantity | minimum: qualifier indicating the lowest possible value of a quantity | range constraint <minimum value> 0 | - |
format as a regular expression | P1793 | String | regular expression: regex describing an identifier or a Wikidata property. When using on property constraints, ensure syntax is a PCRE | ISO 639-3 <format as a regular expression> [a-z]{3} and IMDb ID <format as a regular expression> ev\d{7}\/\d{4}(-\d)?|(ch|co|ev|nm|tt)\d{7} | - |
constraint status | P2316 | Item | Wikidata constraint status: qualifier to define a property constraint in combination with P2302. Use values "mandatory constraint" or "suggestion constraint" | property scope constraint <constraint status> mandatory constraint | - |
syntax clarification | P2916 | Monolingual text | syntax: qualifier for P1793 (regular expression): to provide a textual description of the regex syntax of a value. Should be displayable after the text "The value for the property should match" and be followed by the regex. | Yandex Music artist ID <syntax clarification> numerisk streng, 1 til 7 tall | - |
Label
[edit]I think this was first created with the label "item". This is clear in the context of constraint, but too generic outside. The current "qualifier of property constraint" isn't ideal either. Maybe we can come up with a better one.
--- Jura 07:23, 13 July 2017 (UTC)
How do you allow an property to be in a property
[edit]e.g. GitHub topic (P9100) could be set on a property --> that we have code in GITHUB related to that WD property eg. GitHub username (P2037) --> Github topic wdp2037 - Salgo60 (talk) 11:09, 31 January 2021 (UTC)