淋巴细胞偏低什么意思| 点状钙化是什么意思| gucci是什么意思| 骷髅头是什么牌子| 中水是什么| 子宫颈肥大有什么危害| 疱疹性咽峡炎用什么药| 不丹为什么不跟中国建交| 算了是什么意思| 出生证明有什么用| 频频是什么意思| 影子代表什么生肖| 证过二是什么意思| 形单影只什么意思| 强迫症是什么意思| 书卷气是什么意思| 金乌是什么| 油漆用什么能洗掉| 安徽属于什么地区| 引产挂什么科| 吉页读什么| 办理户口迁移需要什么材料| 对联又称什么| 肠胃炎饮食要注意什么| 三国是什么朝代| 血糖高吃什么食物| 胃食管反流用什么药| 副词什么意思| 时光如梭是什么意思| 档次是什么意思| 疱疹是什么样的| 吃什么水果减肥| 刘备属相是什么生肖| 吃什么皮肤会变白| 输卵管造影是什么意思| 收官什么意思| 为什么一同房就出血| 什么的列车| 节育环嵌顿是什么意思| 心动过速吃什么药最好| 什么是离子| 贾乃亮演过什么电视剧| 渗透压是什么| 天长地久是什么意思| 小腿胀痛是什么原因| 潍坊有什么好玩的| 玛咖是什么| modal是什么意思| 女性血常规都检查什么| 山及念什么| 高铁为什么没有e| 七星瓢虫吃什么食物| 宋江是属什么生肖| 为什么汤泡饭对胃不好| 什么是早教机| 吃卡培他滨禁止吃什么| 有是什么意思| 完谷不化吃什么中成药| 青光眼是什么原因引起的| 曩是什么意思| 现在什么冰箱最好| 容易早醒是什么原因| 跳梁小丑是什么生肖| 凉粉是用什么做的| 1882年属什么生肖| 心心相什么| 凌字五行属什么| 肝风内动吃什么中成药| 屋后有坟有什么影响吗| pr是什么意思| 千人千面是什么意思| 一的五行属性是什么| 六个坚持是什么| 中秋节是什么时候| 三代试管是什么意思| 小儿电解质补给液有什么作用| 流弹是什么意思| 尿路感染吃什么药消炎| 胃胀打嗝吃什么药最好| aki是什么意思| 维u是什么药| 晚上吃什么减肥| 抗核抗体弱阳性说明什么| 长期便秘吃什么药效果最好| 双鱼座的上升星座是什么| 无偿是什么意思| 抗炎和消炎有什么区别| 7月14什么星座| 齐博林手表是什么档次| 头发长的慢是什么原因| 菓是什么意思| 什么地赞叹| 感觉抑郁了去医院挂什么科| 精尽人亡是什么意思| 老虎头衣服是什么牌子| 嗯哼的爸爸叫什么| 1月25日什么星座| 消炎药吃多了有什么副作用| 血浓度高是什么原因| 宫颈hsil是什么意思| 甘露茶叶属于什么茶| 胡子白了是什么原因| 焦糖是什么糖| 烤冷面是什么做的| 间歇脉多见于什么病| 结肠憩室是什么意思| 食指比无名指长代表什么| 可见一斑是什么意思| 糖类抗原50是什么指标| 硬膜囊前缘受压是什么意思| 第一次为什么进不去| 为什么会下雨| 唇炎去药店买什么药| 大小便失禁是什么意思| 为什么感冒会头痛| 什么样的白带是怀孕了| 民营和私营有什么区别| 乘务员是干什么的| 什么样的鲜花| offer是什么意思| 2013属什么生肖| 阴蒂痒是什么原因| 梦见狼是什么意思周公解梦| 玻璃水是什么| 心智是什么意思| 什么蔬菜含维生素c最多| 无花果什么时候种植| 胎儿肠管扩张是什么原因造成的| 血压高不能吃什么食物| 吹弹可破的意思是什么| 为什么抽血要空腹| 心绞痛吃什么药最管用| 歆字五行属什么| 什么牌子的洗衣机最好| 土界读什么| bp是什么的缩写| 是什么意思啊| 六月二十五号是什么星座| 花心大萝卜是什么意思| 醋酸是什么东西| 爱情是什么| 蛇为什么怕雄黄| 唐老鸭叫什么名字| 甲状腺囊性结节是什么意思| 脱肛是什么原因造成的| 梦见在水里游泳是什么意思| 男性漏尿是什么原因| 什么是善良| 心率过慢有什么危害| 电磁炉用什么锅| 老豆腐和嫩豆腐有什么区别| 运气是什么意思| 法脉是什么意思| 多囊是什么| 便秘吃什么药效果最好| 容易被吓到是什么原因| 瓜尔佳氏现在姓什么| 身体起水泡是什么病症| 壁立千仞无欲则刚是什么意思| 丑未相冲的结果是什么| 直接胆红素偏低是什么原因| 吃过期药有什么危害| 龙凤呈祥是什么意思| 重阳节吃什么好| 婴儿枕头里面装什么好| 筝是什么意思| cg是什么意思| 产褥热是什么病| 犬字旁的字和什么有关| 心不在焉什么意思| 中医考证需要什么条件| 什么是创业板股票| 三月是什么生肖| 老年人出虚汗是什么原因引起的| 为什么经常口腔溃疡| 老年人脚肿是什么原因引起的| 通透是什么意思| 五谷丰收是什么生肖| 主管药师是什么职称| 儿童不长个子去医院挂什么科| 低钾血症是什么病| 宝宝缺钙吃什么补得快| 上颚起泡是什么原因| 3月27是什么星座| va是什么维生素| 说话不清楚去医院挂什么科| 类风湿关节炎不能吃什么食物| 胃火大吃什么药效果好| 喝蒲公英根有什么好处| 低密度脂蛋白偏高是什么原因| 隆胸有什么危害和后遗症吗| 羟氯喹是什么药| 浅褐色是什么颜色| 过敏性鼻炎吃什么中药| 兰台是什么意思| 健忘是什么意思| 发烧拉稀是什么原因| 盐酸苯海索片治什么病| 男人是什么| 6月5号是什么星座的| 泥鳅喜欢吃什么食物| 梦见不干净的东西代表什么| 神经性皮炎不能吃什么食物| 做免疫组化意味什么| 抽烟为什么会头晕| 私通是什么意思| 越南用什么语言| 氨纶是什么面料| 舌头上有齿痕是什么原因| 来减一笔是什么字| 流口水是什么病| 属鸡和什么属相相克| 家庭出身是什么| 缺铁性贫血吃什么食物| 什么品种荔枝最好吃| 12月23是什么星座| 哺乳期胃疼可以吃什么药| 对峙什么意思| 厚黑学什么意思| 睾丸变小是什么原因| 太字五行属什么| 血糖高适合喝什么茶| 来大姨妈能喝什么饮料| 出国要办什么证件| 1996是什么年| 乳房长什么样| 挂名什么意思| 家道中落是什么意思| 不胜什么| 痰多咳嗽是什么原因| 金为什么克木| 马口鱼是什么鱼| 夜间抽搐的原因是什么| 上厕所出血是什么原因| 降钙素原是什么意思| 乙肝属于什么科| bug什么意思| pco2是什么意思| 抽血能查出什么| 胃息肉是什么原因造成的| 尿酸高能吃什么鱼| 丹毒病是什么原因引起的| 两败俱伤是什么意思| 土猪肉和普通猪肉有什么分别| 肾功能挂什么科| 扁桃体发炎是什么症状| 大大是什么意思| 肺结核挂什么科| 血管瘤有什么症状| 佝偻病什么症状| gp是什么的缩写| 鼻塞吃什么药| 丑未戌三刑 会发生什么| 带状疱疹有什么症状| 衣原体感染男性吃什么药| 吃什么东西对眼睛好| 羊水栓塞是什么意思| 包罗万象是什么意思| 五朵玫瑰花代表什么意思| 吃什么可以补胶原蛋白| 淘宝预售是什么意思| 肚子疼吃什么药| 啰嗦是什么意思| 血崩是什么症状| 百度Jump to content

睾丸扭转是什么导致的

From Wikidata
(Redirected from Help:Constraints)
Wikidata property constraint violation report on item page.
百度 本月伊始,在美国宣布对钢铝征收高关税后,股市下跌,不过很快回升,因为特朗普政府说关税不像看上去那么厉害,但本周损失更惨重。

Property constraints are rules on properties that specify how properties should be used. The Wikidata model itself is very flexible: nothing stops you from adding Universe (Q1) as head of government (P6). However, a constraint on the property can tell you that a head of government (P6) is usually a human.

Constraints are hints, not firm restrictions, and are meant as a help or guidance to the editor. They can have exceptions: for example, the town of Talkeetna (Q668224) had the cat Stubbs (Q7627362) as honorary mayor.

Some constraint types, currently one-of constraint and allowed qualifiers constraint, are also used to provide better suggestions when editing statements.

Note: Technically a property constraint is a statement (on a property) of a particular constraint type, specified via property constraint (P2302). So strictly speaking constraint and constraint type refer to two different things, for the sake of brevity this page however sometimes refers to constraint types simply as constraints.

[edit]
Item Help page Violation message
single-value constraint (Q19474404) Help:Property constraints portal/Single value MediaWiki:Wbqc-violation-message-single-value
distinct-values constraint (Q21502410) Help:Property constraints portal/Unique value
format constraint (Q21502404) Help:Property constraints portal/Format
subject type constraint (Q21503250) Help:Property constraints portal/Type
value-type constraint (Q21510865) Help:Property constraints portal/Value type
multi-value constraint (Q21510857) Help:Property constraints portal/Multi value MediaWiki:wbqc-violation-message-multi-value

Datatype-independent constraints

[edit]

Constraints to restrict where a property may be added

[edit]
property scope constraint
This property should only be used for certain scopes (main value of a statement, in a reference, as qualifier).
allowed-entity-types constraint
This property should only be used on certain entity types. Example: Wikidata property example (P1855) (properties).
subject type constraint
Items with this property should have a certain type. Example: Items with date of birth (P569) should be instance of (P31) human (Q5) or animal (Q729).
conflicts-with constraint
Items with this property should not have certain other properties or statements. Examples: sex or gender (P21) conflicts with author (P50), which in turn conflicts with instance of (P31)human (Q5).
item-requires-statement constraint
Items using this property should also have certain other statements. For example, items with killed by (P157) should have place of death (P20), date of death (P570) and manner of death (P1196)homicide (Q149086).
contemporary constraint
Items with this property and values for this property should coexist at some point in time. Examples: mother (P25), country of citizenship (P27).
label in language constraint
Items using this property should also have a label in a certain language. For example, items with Vietnamese middle name (P8500) should have a Vietnamese label.
description in language constraint
Items using this property should also have a description in a certain language.
lexeme requires language constraint
This property should be used on lexemes in a certain language. For example, Gran Enciclopèdia Catalana ID (former scheme) (P1296) should be used on Catalan (Q7026) lexemes.
lexeme requires lexical category constraint
lexeme-value-requires-lexical-category constraint


Constraints regarding the number of values

[edit]
single-value constraint
Items should have no more than one statement with this property. Often used for identifiers, but also many other properties: for example, people generally only have a single place of birth (P19) and place of death (P20).
single-best-value constraint
Items should have one “best” statement with this property. Often used for properties that can change over time: for example, cities and countries usually have a single current head of government (P6).
multi-value constraint
Items should have more than one statement with this property (or none). Rarely used, but examples include cast member (P161), has tense (P3103) and has grammatical mood (P3161).
distinct-values constraint
aka. unique value and distinct value. No two items should share a value for this property; each item’s value should be unique across all statements for this property in all of Wikidata. Almost all identifier properties have this constraint, since an identifier (ISBN, freebase ID, …) should uniquely identify an entity. Other examples include flag (P163) and anthem (P85).

Constraints regarding qualifiers

[edit]
allowed qualifiers constraint
Statements for this property should not have any qualifiers other than the listed ones. Examples: continent (P30) with qualifiers start time (P580) and end time (P582), and Freebase ID (P646) with no qualifiers at all.
required qualifier constraint
Statements for this property must have all of the listed qualifiers. Example: stock exchange (P414) with ticker symbol (P249) and start time (P580).

Constraints regarding references

[edit]
citation-needed constraint
Statements for this property should have at least one reference. Example: properties likely to be challenged.

Datatype-specific constraints

[edit]

Constraints for datatype item/entity

[edit]
value-type constraint
Values for this property should have a certain type. Example: mother (P25) should be instance of (P31) human (Q5) or animal (Q729).
one-of constraint
Values for this property should be one of a given set of items. Example: driving side (P1622) should be either left (Q13196750) or right (Q14565199).
none-of constraint
Values for this property should not be one of a given set of items. Example: instance of (P31) should not be woman (Q467).
value-requires-statement constraint
aka. target required statement. Values for this property should also have certain other statements. For example, screenwriter (P58) values should have sex or gender (P21) and occupation (P106)screenwriter (Q28389).
symmetric constraint
Statements using this property should always exist in both directions. Examples: sibling (P3373), twinned administrative body (P190).
inverse constraint
Statements using this property should always have an inverse statement. Examples: father (P22)/mother (P25) with child (P40).
complex constraint value label
Values for this property have to have a label in a specific language that matches a specific format.

Constraints for Quantity

[edit]
integer constraint
Values for this property should be integers without decimal places.
allowed units constraint
Values for this statement should only use certain units (or none). Examples: term length of position (P2097) (unit: year (Q577)), population (P1082) (no units).
no-bounds constraint
Values for this property should not use upper and lower bounds. This applies to most non-physical properties with quantity data type, for which the concept of uncertainties is not defined.
range constraint
Values for this property should be within a certain range or interval. Examples: flattening (P1102) is always between 0 and 1, and UTC date of spacecraft launch (P619) should not be before .
difference-within-range constraint
aka. difference within range. The difference between values for this property and for another property should be within a certain range or interval. For example, the difference between date of birth (P569) and date of death (P570) should be between 0?and 150?years.

Constraints for Time

[edit]
range constraint
Values for this property should be within a certain range or interval. Examples: flattening (P1102) is always between 0 and 1, and UTC date of spacecraft launch (P619) should not be before .
difference-within-range constraint
aka. difference within range. The difference between values for this property and for another property should be within a certain range or interval. For example, the difference between date of birth (P569) and date of death (P570) should be between 0?and 150?years.

Constraints for string-based datatypes

[edit]

The constraint types listed in this section can be used for properties that have a string-based datatype.

format constraint
Values for this property should have a certain format. Often used for identifiers (n digits long, starts with a certain letter, consists of digits, …).
[edit]
Commons link constraint
Values for this statement should be valid links to Wikimedia Commons. Examples: image (P18) (“File” namespace), Commons category (P373) (“Category” namespace).

Constraints alphabetically

[edit]

Several constraints have their own predefined templates and are listed at Help:Property constraints/list of constraints.

Usage instructions

[edit]

Constraint reports are shown for all logged in users when they visit an entity page.

A constraint violation report displayed on an item page.

You can also check all constraints for an item on Special:ConstraintReport. This page is provided by WikibaseQualityConstraints (also known as "constraints extension"). A bot also maintains reports of constraint violation; see a summary of violations across Wikidata on Wikidata:Database reports/Constraint violations.

Constraint type items

[edit]

There is an item for each constraint type, e.g. subject type constraint (Q21503250).

Constraint statements on properties

[edit]

Constraints for a property are specified as statements on the property, using property constraint (P2302) and the constraint type item. For example: sibling (P3373)property constraint (P2302)symmetric constraint (Q21510862). Deprecated statements are ignored, so changing a constraint statement’s rank to “deprecated” is a convenient way to temporarily disable a constraint without completely removing it.

Constraint parameters

[edit]

Many constraints are configurable: one of has a list of the permitted values, type contains the type, etc. These settings which configure the constraint are called parameters.

Constraint parameters are specified as qualifiers on the statement. For example:

There are several general parameters that can be added to any constraint statement:

constraint status (P2316)
With the value mandatory constraint (Q21502408), this parameter can be used to mark a constraint as mandatory. Violations of mandatory constraints are more severe than violations of non-mandatory ones. Non-mandatory constraints should have a value of suggestion constraint (Q62026391).
exception to constraint (P2303)
Lists known exceptions to the constraint. On the items listed under this parameter, the constraint is not checked.
group by (P2304)
Contains a property by the values of which constraint violations should be grouped. That is, when the database reports list violations for a constraint (for all items), the items with violations are grouped by the value they have for the property given in the group by (P2304) parameter. (The constraints extension does not use this parameter.)
constraint scope (P4680)
Specifies in which part of a statement the constraints applies, using the three special values constraint checked on main value (Q46466787), constraint checked on qualifiers (Q46466783) and constraint checked on references (Q46466805). Use any combination of these values to specify where a constraint should be checked. If the parameter is not specified, the default scope depends on the constraint type. (Note that the database reports only list violations on the main value of a statement.)
constraint clarification (P6607)
Provides a simple explanation for the purpose of the constraint (why it exists) and recommended actions to resolve the constraint.


When constraints aren’t checked

[edit]

Each individual constraint can list exceptions in its constraint parameters (see above); on any statements of that item, that constraint will not be checked at all. (There is currently no mechanism for specifying other entity types as exceptions, or for listing exceptions in a different way.)

On properties like Wikidata property example (P1855), Wikidata property example for properties (P2271), etc., as defined in wgWBQualityConstraintsPropertiesWithViolatingQualifiers, all constraint checks on qualifiers are skipped. For these properties, qualifiers have a different meaning than usual: they’re more similar to main statements than qualifiers of that statement, so it doesn’t really make sense to check constraints on those qualifiers.

WikibaseQualityConstraints only uses normal-rank and preferred-rank constraint statements and ignores deprecated-rank ones, so setting a constraint’s rank to deprecated can be used to “hide” it from WikibaseQualityConstraints. (KrBot uses all constraint statements regardless of rank.)

Custom constraints

[edit]

With some knowledge of SPARQL one can make very complex constraints for certain properties, above and beyond the restrictions mentioned above. More information is available at Template:Complex constraint. The reports are maintained by a third-party bot and not part of Wikibase software. See also the list of properties using complex constraints.

See also

[edit]
吃什么增加孕酮 胎动频繁是什么原因 花开半夏是什么意思 战五渣是什么意思 根的作用是什么
高血糖可以吃什么 阴道里面痒是什么原因 老年人血压忽高忽低是什么原因 什么是外阴白斑 尿碱是什么
芥末是什么植物 什么材质 大使是什么行政级别 受精卵着床是什么意思 sj是什么
砷是什么东西 刚愎自负是什么意思 什么湖什么海 运动后出汗多是什么原因 什么是电商平台
什么花能吃hcv9jop4ns2r.cn 两肺散在小结节是什么意思hcv9jop0ns3r.cn 七月二十四是什么星座mmeoe.com 人格分裂什么意思hcv9jop1ns8r.cn 李世民是什么民族liaochangning.com
刘邦是汉什么帝hcv7jop9ns1r.cn 但愿人长久的下一句是什么hcv7jop6ns8r.cn 八六年属什么生肖hcv8jop4ns3r.cn 深棕色是什么颜色hcv7jop5ns6r.cn 突然腰疼是什么原因hcv8jop5ns1r.cn
生日蛋糕上写什么字比较有创意hcv8jop7ns2r.cn copd是什么病的简称hcv9jop4ns2r.cn 检查胃挂什么科hcv9jop0ns1r.cn 系带割掉了有什么影响hcv9jop3ns1r.cn 打醮是什么意思hcv9jop2ns2r.cn
肝功能是什么hcv8jop4ns2r.cn 尿痛流脓吃什么药96micro.com 肠粘连会有什么症状hcv8jop2ns9r.cn 有时头晕是什么原因hcv8jop1ns2r.cn 筋头巴脑是什么东西hcv8jop2ns4r.cn
百度