Help:プロパティ制約/必須修飾子

This page is a translated version of the page Help:Property constraints portal/Required qualifiers and the translation is 100% complete.

required qualifier constraint (Q21510856)は、このプロパティに求められる修飾子を規定します。「許容される」修飾子を制限するためには、許容修飾子制約を使用します。

例えば、head of state (P35)の文は常にstart time (P580)修飾子を持つべきです。

もしそのプロパティが許容修飾子制約も持つならば、すべての必須修飾子が許容修飾子としても列挙されていなければなりません。

この制約は文の主値のみをチェックすることができ、もし他のconstraint scope (P4680)が規定されていれば、エラーが報告されます。

可能なアクション

この制約の違反に対処する方法はいくつかあります。

  • 最もありえそうなのは、欠落している修飾子を追加すべきであるというケースです。もし値が知られていないならば、unknown value Helpを使うことで意味を成すかもしれません。
  • この文には稀ではありますが、制約に対する正当な例外である可能性があります。その場合には何もするべきではありません。

パラメータ

この制約には、1つの必須パラメータがあります。

property (P2306)
求められる修飾子を含めます。厳密にひとつのプロパティのみを含めなければなりません (no value Help または unknown value Help は許可されません)。複数の修飾子を要求するには、この型の制約を複数使用します。

例1

population (P1082) の設定例。

property constraint
  required qualifier constraint
property point in time
0 references
add reference


add value

例2

solubility (P2177) の設定例。

property constraint
  required qualifier constraint
property solvent
0 references
add reference
  required qualifier constraint
property temperature
0 references
add reference


add value

テンプレート

プロパティに制約が設定されると、以下のテンプレートが自動でプロパティの議論ページに表示されます。このテンプレートは Template:Property documentation から呼び出された Template:Constraint を用いて Module:Constraints が作成します。翻訳の定義はModule:i18n/constraints をご参照ください。

Required qualifier “determination method (P459): this property should be used with the listed qualifier. (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/P1082#mandatory qualifier, SPARQL

一覧

必須修飾子制約が設定されているプロパティの一覧。