Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion corpus/crs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: country/DEU, role: origin}, {dcid: country/KEN, role: destination}]
window: {kind: all}
operations: []
Expand All @@ -18,6 +19,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: DACOfficialDonors, role: origin}, {dcid: country/BGD, role: destination}]
window: {kind: all}
operations: []
Expand Down Expand Up @@ -69,6 +71,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities:
- {dcid: EuropeanUnionInstitutions, role: origin}
- {dcid: country/ETH, role: destination}
Expand All @@ -83,6 +86,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities:
- {dcid: GlobalFund, role: origin}
- {dcid: country/MWI, role: destination}
Expand Down Expand Up @@ -140,6 +144,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: country/TUR, role: origin}, {dcid: country/SYR, role: destination}]
window: {kind: all}

Expand All @@ -151,6 +156,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: country/TUR, role: origin}, {dcid: country/SYR, role: destination}]
window: {kind: all}

Expand Down Expand Up @@ -193,6 +199,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: DACOfficialDonors, role: origin}, {dcid: DACSouthOfSahara, role: destination}]
window: {kind: all}
operations: []
Expand All @@ -205,6 +212,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: country/FRA, role: origin}, {dcid: DACAfrica, role: destination}]
window: {kind: all}

Expand All @@ -218,6 +226,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: DACOfficialDonors, role: origin}, {dcid: DACAfricaUnallocated, role: destination}]

- id: dq-crs-020
Expand Down Expand Up @@ -380,6 +389,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: country/USA, role: origin}, {dcid: country/PAK, role: destination}]
window: {kind: range, start: 2020, end: 2020}

Expand Down Expand Up @@ -423,10 +433,12 @@
parts:
- definite:
measure: {family: dac2a.oda_gross_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: country/GBR, role: origin}, {dcid: country/KEN, role: destination}]
window: {kind: range, start: 2022, end: 2022}
- definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: country/GBR, role: origin}, {dcid: country/KEN, role: destination}]
window: {kind: range, start: 2022, end: 2022}

Expand Down Expand Up @@ -468,6 +480,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: country/FRA, role: origin}, {dcid: country/SEN, role: destination}]
unit: {currency: EUR, prices: current}

Expand All @@ -485,6 +498,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: DACOfficialDonors, role: origin}, {dcid: country/KEN, role: destination}]
window: {kind: range, start: 2020, end: 2020}
unit: {currency: {role: destination}, prices: current}
Expand Down Expand Up @@ -570,6 +584,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
unit: {currency: USD, prices: constant}
no_data: {reason: unit_not_resolved, category: unresolved}

Expand All @@ -581,6 +596,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: DACOfficialDonors, role: origin}, {dcid: country/KEN, role: destination}]
unit: {currency: USD, prices: constant}

Expand Down Expand Up @@ -618,6 +634,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: country/DEU, role: origin}, {dcid: country/KEN, role: destination}]
window: {kind: range, start: 2015, end: 2020}
operations: []
Expand All @@ -630,6 +647,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: country/SWE, role: origin}, {dcid: country/TZA, role: destination}]

- id: dq-crs-052
Expand All @@ -640,6 +658,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: country/DEU, role: origin}, {dcid: country/KEN, role: destination}]
window: {kind: range, start: 1975, end: 1975}

Expand All @@ -651,6 +670,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: country/USA, role: origin}]
operations: [{verb: rank, over: destination}]

Expand All @@ -659,10 +679,11 @@
why: Compare is two origins in one part with no operation; DAC2a answers the aid measure.
reuse: panel/crs-046
tags: {theme: aid, entity: two_countries, direction: both, unit: default, time: none, operation: compare, breakdown: none, door: raw_text, phrasing: casual}
known_failure: {issue: 1156, checks: [disposition]}
known_failure: {issue: 1156, checks: [disposition, measure]}
expect:
definite:
measure: {family: dac2a.oda_gross_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities:
- {dcid: country/DEU, role: origin}
- {dcid: country/FRA, role: origin}
Expand All @@ -677,6 +698,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: country/CAN, role: origin}, {dcid: country/HTI, role: destination}]
operations: [{verb: growth}]

Expand Down Expand Up @@ -732,6 +754,7 @@
expect:
definite:
measure: {family: dac2a.oda_gross_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: DACOfficialDonors, role: origin}, {dcid: country/KEN, role: destination}]
window: {kind: range, start: 2020, end: 2020}

Expand Down Expand Up @@ -800,6 +823,7 @@
parts:
- definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: country/NOR, role: origin}, {dcid: country/ETH, role: destination}]
- {definite: {measure: {family: base.gdp}, entities: [{dcid: country/ETH, role: observationAbout}]}}

Expand Down
7 changes: 7 additions & 0 deletions corpus/dac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
expect:
definite:
measure: {family: [dac2a.oda_net_received, dac2a.oda_gross_received]}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: DACOfficialDonors, role: origin}, {dcid: country/KOR, role: destination}]
window: {kind: range, start: 1980, end: 1980}

Expand Down Expand Up @@ -317,6 +318,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: DACOfficialDonors, role: origin}, {dcid: country/ETH, role: destination}]
window: {kind: range, start: 1965, end: 1965}

Expand All @@ -338,6 +340,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: DACOfficialDonors, role: origin}, {dcid: country/KEN, role: destination}]
window: {kind: range, start: 2022, end: 2022}

Expand Down Expand Up @@ -469,6 +472,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: GroupOfSeven, role: origin}, {dcid: DACAfrica, role: destination}]

- id: dq-dac-036
Expand All @@ -487,6 +491,7 @@
expect:
definite:
measure: {family: dac2a.oda_gross_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: country/FRA, role: origin}, {dcid: DACAsia, role: destination}]

- id: dq-dac-038
Expand All @@ -496,6 +501,7 @@
expect:
definite:
measure: {family: dac2a.oda_gross_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: DACOfficialDonors, role: origin}, {dcid: DACFarEastAsia, role: destination}]

- id: dq-dac-039
Expand All @@ -516,6 +522,7 @@
expect:
definite:
measure: {family: dac2a.oda_gross_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: DACOfficialDonors, role: origin}, {dcid: DACAsia, role: destination}]
window: {kind: range, start: 1990, end: 1999}

Expand Down
18 changes: 11 additions & 7 deletions corpus/datasets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
tags: {theme: aid, entity: country, direction: destination_only, door: raw_text, dataset: none, language: fr}
# Extraction drops "imputée", and "multilateral" without "imputed" refuses qualifier_not_bound
# on the CRS answer instead of answering from the imputed table.
known_failure: {issue: 1156, checks: [measure]}
known_failure: {issue: 1156, checks: [measure, provenance]}
expect:
definite:
measure: {family: dac2a.imputed_multilateral}
Expand Down Expand Up @@ -163,6 +163,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: country/DEU, role: origin}, {dcid: country/KEN, role: destination}]
operations: []

Expand All @@ -173,6 +174,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: DACOfficialDonors, role: origin}, {dcid: country/KEN, role: destination}]
window: {kind: range, start: 2024, end: 2024}

Expand All @@ -190,6 +192,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: DACMultilaterals, role: origin}, {dcid: country/KEN, role: destination}]
operations: []

Expand Down Expand Up @@ -326,11 +329,11 @@
query: aid to Kenya, not imputed
why: '"Imputed" words are the DAC2a measure, not a source, so "not imputed" reaches bind as a dropped qualifier and DAC2a answers with its provenance unbound.'
tags: {theme: aid, entity: country, direction: destination_only, door: raw_text, dataset: excluded}
known_failure: {issue: 1156, checks: [disposition]}
known_failure: {issue: 1156, checks: [disposition, measure, entities]}
expect:
definite:
measure: {family: dac2a.oda_gross_received}
provenance: {bound: false}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral, bound: true}
entities: [{dcid: country/KEN, role: destination}]
operations: []

Expand All @@ -341,7 +344,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {bound: true}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral, bound: true}
entities: [{dcid: DACOfficialDonors, role: origin}, {dcid: country/KEN, role: destination}]
operations: []

Expand Down Expand Up @@ -384,14 +387,15 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral}
entities: [{dcid: DACMultilaterals, role: origin}, {dcid: country/KEN, role: destination}]
operations: []

- id: dataset-inputed-aid-kenya
query: inputed aid to Kenya
why: '"Inputed" is a misspelling of "imputed", and imputed aid to Kenya names no sector, so DAC2a''s imputed multilateral line answers it.'
tags: {theme: aid, entity: country, direction: destination_only, door: raw_text, dataset: none, phrasing: misspelt}
known_failure: {issue: 1164, checks: [measure]}
known_failure: {issue: 1164, checks: [measure, provenance]}
expect:
definite:
measure: {family: dac2a.imputed_multilateral}
Expand All @@ -417,7 +421,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {bound: true}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral, bound: true}
entities: [{dcid: DACOfficialDonors, role: origin}, {dcid: country/KEN, role: destination}]
operations: []

Expand Down Expand Up @@ -492,7 +496,7 @@
expect:
definite:
measure: {family: dac2a.oda_net_received}
provenance: {bound: true}
provenance: {origin: dfo, dataset: provenance/ONEDAC2aBilateral, bound: true}
entities: [{dcid: DACOfficialDonors, role: origin}, {dcid: country/KEN, role: destination}]
operations: []

Expand Down
Loading
Loading