راهنما:درگاه محدودیتهای خصوصیت/گسترهنماها
This is the documentation page for a particular constraint type. See Help:Property constraints portal for a general overview of property constraints. |
allowed qualifiers constraint (Q21510851) مشخص میکند که فقط مجموعهٔ خاصی از گسترهنماها میتوانند با یک خصوصیت استفاده شوند. برای مشخص کردن گسترهنماهای الزامی، از محدودیت گسترهنماهای اجباری استفاده کنید.
بهعنوان مثال، تنها گسترهنماهای معتبر برای musical conductor (P3300) start time (P580)، end time (P582) و object named as (P1932) هستند.
این محدودیت فقط روی مقدار اصلی یک اظهار قابل بررسی است. اگر constraint scope (P4680) دیگری مشخص شده باشد، خطا گزارش میشود.
اگر چنین محدودیتی روی یک خصوصیت تعریف شده باشد، زمانی که شخصی یک اظهار جدید را با آن خصوصیت اضافه میکند، از مقادیر آن بهعنوان پیشنهاد نیز استفاده میشود. بهعنوان مثال، شخصی که یک musical conductor (P3300) اظهار جدید اضافه میکند، در هنگام افزودن یک اظهار، گسترهنماهای مجاز start time (P580)، end time (P582) و object named as (P1932) را بهعنوان پیشنهاد میبیند. (با جستجوی آنها یا چسباندن شناسهٔ خصوصیتهایشان میتوان سایر خصوصیتها را اضافه کرد.)
فعالیتهای ممکن
چندین راه ممکن برای رسیدگی به نقض این محدودیت وجود دارد:
- این امکان وجود دارد که گسترهنمای مناسبی برای استفاده برای اظهار نباشد و بهجای آن باید از یک خصوصیت مشابه اما متفاوت استفاده شود. فهرست گسترهنماهای مجاز برای یک خصوصیت کاربردی را بررسی کنید.
- این امکان وجود دارد که اظهار به هیچ وجه گسترهنما نداشته باشد و گسترهنما باید حذف شود.
- ممکن است اظهار یک استثنای نادر، اما مشروع برای محدودیت باشد، و هیچ کاری نباید انجام شود.
پارامترها
این محدودیت یک پارامتر اجباری دارد:
- property (P2306)
- Contains the permitted qualifiers. Must contain one or more properties, or a single no value Help to specify that statements for this property should not have any qualifiers. (unknown value Help is not permitted.)
مثالها
مثال ۱
برای مثال، گسترهنمای معتبر برای students count (P2196) point in time است.
property constraint |
| ||||||||||||
add value |
مثال ۲ - هیچگونه گسترهنمای مجاز
Setting for no qualifiers allowed. no value specify that statements for this property should not have any qualifiers. "no value" is added to statements by clicking on the icon beside the value field that looks like this .
property constraint |
| ||||||||||||
add value |
گسترهنماهای سراسری مجاز
Certain properties are expected to be allowed as qualifiers on almost any statement: notably reason for deprecated rank (P2241), reason for preferred rank (P7452), and mapping relation type (P4390). WikibaseQualityConstraints knows nothing of these special properties; consequently, it’s expected that they are included in most allowed qualifiers constraint (Q21510851) constraints. (See T242797 for discussion.)
الگو
When the constraint is set to the property, the following template is automatically displayed in the property talk page. The template is created by Module:Constraints using Template:Constraint, invoked from Template:Property documentation. Translations for some constraint messages are defined at Module:i18n/constraints; others, such as the message for allowed qualifiers constraint (Q21510851), are located on TranslateWiki.
List of violations of this constraint: Database reports/Constraint violations/P286#allowed qualifiers, SPARQL
فهرستها
فهرستی از خصوصیتهایی که محدودیت گسترهنماهای مجاز را تنظیم کردهاند.
- Category:Properties with qualifiers constraints
- SPARQL query - click the execute button at the linked page to see the query result.