File size: 9,138 Bytes
6f2ed01
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
# Relation registry for the benchmark (spec sections 2.2, 5.4, 6.2).
#
# Per relation:
#   relation_id      canonical snake_case name used in outputs
#   source_relations Wikidata property ids (or source-native names) that map here
#   direction        forward = subject + relation -> object, matching spec 2.2.
#                    inverse = the source stores the pair the other way round.
#   is_functional    the object is single- or approximately single-valued
#   is_inverse_well_posed  object determines subject uniquely -> reverse queries
#                    are meaningful; false means reverse goes to reverse_illposed
#   answer_type / answer_granularity   drive scoring and reporting breakdowns
#   qualification    canonical anchor question, slot {s}. Verified NOT to collide
#                    with any evaluation perturbation template (spec 16).
#   spec_6_2_flag    set when spec section 6.2 names this relation as unsuitable
#                    while the required count of 2,592 needs it. See
#                    outputs/reconstruction_differences.md.

# Global switches ------------------------------------------------------------
options:
  # Spec 2.2 forbids mixing triple directions. P1376 ("X is the capital of Y")
  # is stored inverse to P36. Flipping it merges those facts into `capital` and
  # changes the benchmark size, which spec 10 forbids doing silently. Default
  # false reproduces 2,592; set true only together with a差异 entry.
  normalize_inverse_direction: false
  # Spec 6.2 lists developer/manufacturer as unsuitable, but excluding them
  # cannot reach the required 2,592. Default false keeps them and flags them.
  drop_spec_6_2_flagged: false

relations:
  - relation_id: native_language
    source_relations: [P103]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: language
    answer_granularity: entity
    qualification: "Which language did {s} grow up speaking?"

  - relation_id: manufacturer
    source_relations: [P176]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: organization
    answer_granularity: entity
    qualification: "Which company builds {s}?"
    spec_6_2_flag: unsuitable_named_in_spec

  - relation_id: developer
    source_relations: [P178]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: organization
    answer_granularity: entity
    qualification: "Which company or person created {s}?"
    spec_6_2_flag: unsuitable_named_in_spec

  - relation_id: country
    source_relations: [P17]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: country
    answer_granularity: entity
    qualification: "Which country does {s} belong to?"

  - relation_id: original_network
    source_relations: [P449]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: organization
    answer_granularity: entity
    qualification: "Which network first broadcast {s}?"

  - relation_id: headquarters_location
    source_relations: [P159]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: city
    answer_granularity: entity
    qualification: "Which city hosts the main offices of {s}?"

  - relation_id: capital
    source_relations: [P36]
    direction: forward
    is_functional: true
    is_inverse_well_posed: true
    answer_type: city
    answer_granularity: entity
    qualification: "Which city is the seat of government of {s}?"

  - relation_id: capital_of
    source_relations: [P1376]
    direction: inverse          # stored as (city, capital_of, country)
    inverse_of: capital
    is_functional: true
    is_inverse_well_posed: true
    answer_type: country
    answer_granularity: entity
    qualification: "{s} is the capital city of which country?"

  - relation_id: owned_by
    source_relations: [P127]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: organization
    answer_granularity: entity
    qualification: "Who is the owner of {s}?"

  - relation_id: sport
    source_relations: [P641]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: sport
    answer_granularity: entity
    qualification: "Which sport is {s} associated with?"

  - relation_id: continent
    source_relations: [P30]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: place
    answer_granularity: entity
    qualification: "Which continent is {s} part of?"

  - relation_id: religion
    source_relations: [P140]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: religion
    answer_granularity: entity
    qualification: "Which faith does {s} follow?"

  - relation_id: applies_to_jurisdiction
    source_relations: [P1001]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: place
    answer_granularity: entity
    qualification: "Which jurisdiction does {s} have legal force in?"

  - relation_id: location
    source_relations: [P276]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: place
    answer_granularity: entity
    qualification: "At which location can {s} be found?"

  - relation_id: country_of_origin
    source_relations: [P495]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: country
    answer_granularity: entity
    qualification: "Which country did {s} originate from?"

  - relation_id: place_of_death
    source_relations: [P20]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: city
    answer_granularity: entity
    qualification: "At which place did {s} pass away?"

  - relation_id: place_of_birth
    source_relations: [P19]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: city
    answer_granularity: entity
    qualification: "In which place did {s} come into the world?"

  - relation_id: located_in
    source_relations: [P131]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: place
    answer_granularity: entity
    qualification: "Which administrative region contains {s}?"

  - relation_id: position_played
    source_relations: [P413]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: occupation
    answer_granularity: entity
    qualification: "On the field, which position is {s} assigned to?"

  - relation_id: location_of_formation
    source_relations: [P740]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: city
    answer_granularity: entity
    qualification: "{s} came into existence in which place?"

  - relation_id: father
    source_relations: [P22]
    direction: forward
    is_functional: true
    is_inverse_well_posed: false
    answer_type: person
    answer_granularity: entity
    qualification: "{s} is the child of which father?"

# Relations present in the enriched pool but EXCLUDED from the benchmark because
# the object is genuinely multi-valued, so an accepted-answer set can never be
# exhaustive (spec 6.2). Kept here for auditability.
excluded_multi_valued:
  - {source_relations: [P37],   reason: official language}
  - {source_relations: [P106],  reason: occupation}
  - {source_relations: [P27],   reason: country of citizenship}
  - {source_relations: [P31],   reason: instance of}
  - {source_relations: [P279],  reason: subclass of}
  - {source_relations: [P101],  reason: field of work}
  - {source_relations: [P108],  reason: employer}
  - {source_relations: [P463],  reason: member of}
  - {source_relations: [P1303], reason: instrument}
  - {source_relations: [P364],  reason: original language}
  - {source_relations: [P407],  reason: language of work}
  - {source_relations: [P1412], reason: language spoken}
  - {source_relations: [P50, P57, P58, P86, P162], reason: creator roles}
  - {source_relations: [P190],  reason: twinned city}
  - {source_relations: [P47],   reason: shares border with}
  - {source_relations: [P527],  reason: has part}
  - {source_relations: [P264],  reason: record label}
  - {source_relations: [P462],  reason: colour}
  - {source_relations: [P937],  reason: work location}
  - {source_relations: [P136],  reason: genre}
  - {source_relations: [P25],   reason: mother}
  - {source_relations: [IsA, UsedFor, AtLocation, HasA, HasProperty, CapableOf,
                        PartOf, Causes, CausesDesire, Desires, NotDesires,
                        HasSubevent, HasPrerequisite, MotivatedByGoal, MadeOf,
                        ReceivesAction],
     reason: ConceptNet open-world commonsense}

# Relations excluded because they belong to non-core sources (spec 6.1)
excluded_non_core:
  - {source_relations: [date_of_birth, place_of_birth, place_of_death],
     source: lama_googlere, reason: not a core source}