Property talk:P2303
Documentation
item that is an exception to the constraint, qualifier to define a property constraint in combination with P2302
Description | Property representing the exception statement from current constraint usage (see above for detailed explanation). | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Data type | Item | ||||||||||||
Domain | According to this template:
qualifier for property constraint (P2302)
According to statements in the property:
When possible, data should only be stored as statementsWikidata property (Q18616576) | ||||||||||||
Allowed values | nearly every item (note: this should be moved to the property statements) | ||||||||||||
Example | According to this template:
known exception ==> Q1234
According to statements in the property:
When possible, data should only be stored as statementsIUCN conservation status (P141) → Varia jamoerensis (Q27988539) Unicode character (P487) → eighth note (Q339575) | ||||||||||||
Robot and gadget jobs | Migrate constraints from property talk pages. | ||||||||||||
Lists | |||||||||||||
Proposal discussion | Proposal discussion | ||||||||||||
Current uses |
| ||||||||||||
Search for values |
List of violations of this constraint: Database reports/Constraint violations/P2303#Scope, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P2303#Entity types
List of violations of this constraint: Database reports/Constraint violations/P2303#Type Q18616576, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P2303#Item P2302, search, SPARQL
|
|
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 to define a property constraint in combination with P2302. "no value" can be used to specify no upper bound | range constraint <maximum value> 1,234 | - |
minimum value | P2313 | Quantity | minimum: qualifier to define a property constraint in combination with P2302 | 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 | - |
Discussion[edit]
Applies to subjects or objects?[edit]
Notified participants of WikiProject property constraints Can we clarify whether these exceptions apply to subjects or object? Imagine this situation (as found in author (P50)):
exception to constraint (P2303) ⟨ Brothers Grimm (Q2793) ⟩
Does this mean that the constraint does not apply on all statements in Brothers Grimm (Q2793) (subject), or that all statments with values Brothers Grimm (Q2793) (object) in whatever item are exempt from it? —MisterSynergy (talk) 15:57, 20 December 2017 (UTC)
- It applies to subjects. In your example, it means that the constraint will not be checked in author (P50) statements on Brothers Grimm (Q2793). See also Help:Property constraints portal# Constraint parameters: On the items listed under this parameter, the constraint is not checked. --Lucas Werkmeister (WMDE) (talk) 16:09, 20 December 2017 (UTC)
- Thnx. So this constraint on P50 does not make sense at all and I removed it. Do we have a constraint that exempts certain values from the exception? —MisterSynergy (talk) 16:11, 20 December 2017 (UTC)
- No, there’s no property like that as far as I’m aware, and if there is, WikibaseQualityConstraints / the checkConstraints gadget doesn’t support it. --Lucas Werkmeister (WMDE) (talk) 16:35, 20 December 2017 (UTC)
- Would be good if there was a way to do that. Another place where exceptions could be improved on, are the exceptions on taxon name (P225).
--- Jura 16:57, 20 December 2017 (UTC)
- Would be good if there was a way to do that. Another place where exceptions could be improved on, are the exceptions on taxon name (P225).
- I agree, a value-based value type constraint would be useful. I meanwhile removed a couple of (non-functional) exceptions from value-type constraint (Q21510865) statements which clearly aimed at value-based exempts. —MisterSynergy (talk) 17:05, 20 December 2017 (UTC)
Apply exception to class[edit]
Is there a way to apply exceptions to whole classes? For example, Unicode character (P487), Unicode code point (P4213) and Unicode block (P5522) all require Unicode character name (P9382) (as well as each other), because every Unicode character (Q29654788) has all four, and it's a good way to ensure that any new characters that get added are filled out properly. However, I want to make an exception if something is in the class private-use character (Q109615233) (as these don't have names). For example, U+F8FF (Q286579) and U+E000 (Q60963558). I have tried adding the classes to except under this property, but it doesn't seem to have worked. Theknightwho (talk) 19:24, 17 November 2021 (UTC)