Help:プロパティ制約/逆関係
Jump to navigation
Jump to search
List of violations of this constraint: Database reports/Constraint violations/P25#inverse, SPARQL
これは特定の制約型に関する文書ページです。プロパティ制約の全般的な概要はHelp:プロパティ制約をご参照ください。 |
inverse constraint (Q21510855)は、あるプロパティが逆プロパティを持ち、そのプロパティの値が元の項目を指し返す逆プロパティの文を持つべきであると規定します。
例えば、mother (P25)は逆プロパティchild (P40)を持ちます。もし文Jesus (Q302)mother (P25)Mary (Q345)が存在するならば、逆の文Mary (Q345)child (P40)Jesus (Q302)も存在すべきです。
constraint scope (P4680) が指定されていない場合、この制約は文の主値においてのみチェックされます。 これは現状でサポートされている唯一の範囲でもあります。
可能なアクション
この制約の違反に対処する方法はいくつかあります。
- 最もありえそうなのは、逆の文が欠落している他の項目にそれを追加すべきであるというケースです。このようなケースは多数あるかもしれないので、ボットによって対処することがよくあります。
- 現在の項目がその文を持つべきではなく、文を除去すべき可能性があります。
- この項目には稀にではありますが、制約に対する正当な例外という可能性があります。その場合には何もするべきではありません。
パラメータ
この制約には、1つの必須パラメータがあります。
- property (P2306)
- 逆プロパティを含めます。厳密にひとつのプロパティを含めなければなりません(no value Helpまたはunknown value Helpは許容されません)。
例
mother (P25) の設定例。
property constraint |
| ||||||||||||
add value |
テンプレート
プロパティに制約が設定されると、以下のテンプレートが自動でプロパティの議論ページに表示されます。このテンプレートは Template:Property documentation から呼び出された Template:Constraint を用いて Module:Constraints が作成します。翻訳の定義はModule:i18n/constraints をご参照ください。
Inverse property of “child (P40)”:
if [item A] has this property (mother (P25)) linked to [item B],
then [item B] should also have property “child (P40)” linked to [item A]. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). if [item A] has this property (mother (P25)) linked to [item B],
then [item B] should also have property “child (P40)” linked to [item A]. (Help)
List of violations of this constraint: Database reports/Constraint violations/P25#inverse, SPARQL
一覧
逆関係制約が設定されているプロパティの一覧。
- Category:Properties with inverse constraints
- SPARQL query - click the execute button at the linked page to see the query result.