-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue-68 Behaviour test info.json config.loader (#165)
* 1.A cube is loaded using the info.json with a CSV. 2.Cube&qb validation succeeds. 3.Cube is serialised to CSV-W 4.csvlint validation succeeds 5.csv2rdf succeeds 6.RDF passes "SKOS, qb" SPARQL tests 7.Ouput ttl is compared with ttl as we do in gss-utils 8.Additional ttl is appended to the resulting RDF for multi-measure-data.csv as the Measure dimension and unit attribute defined in info.json is an existing dimension and attribute. * 1. Refactoring of "some-existing unit" to "unit"
- Loading branch information
1 parent
7e542e5
commit 8629341
Showing
8 changed files
with
202 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
.../tests/test-cases/configloaders/multi-measure-info-json-test-files/multi-measure-data.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Period,Measure,Unit,Value | ||
2021,one-litre-and-less,percentage,4 | ||
2022,more-than-one-litre,percentage,6 | ||
2023,number-of-bottles,count,5 |
42 changes: 42 additions & 0 deletions
42
...tests/test-cases/configloaders/multi-measure-info-json-test-files/multi-measure-info.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"id": "multi-measure-bulletin", | ||
"title": "multi-measure-bottles", | ||
"publisher": "HM Revenue & Customs", | ||
"description": "All bulletins provide details on percentage of one litre or less & more than one litre bottles. This information is provided on a yearly basis.", | ||
"landingPage": "https://www.gov.uk/government/statistics/bottles-bulletin", | ||
"datasetNotes": [ | ||
"\"UK bottles-bulletin Tables\" Excel file, latest version on page" | ||
], | ||
"published": "2019-02-28", | ||
"families": [ | ||
"Trade" | ||
], | ||
"extract": { | ||
"source": "XLS", | ||
"stage": "Done" | ||
}, | ||
"transform": { | ||
"airtable": "recys4OhEtE0gE14P", | ||
"columns": { | ||
"Period": { | ||
"parent": "http://purl.org/linked-data/sdmx/2009/dimension#refPeriod", | ||
"value": "http://reference.data.gov.uk/id/{+period}", | ||
"codelist": false | ||
}, | ||
"Measure": { | ||
"type": "measures", | ||
"value": "http://gss-data.org.uk/def/x/{+measure}" | ||
}, | ||
"Unit": { | ||
"type": "units", | ||
"value": "http://gss-data.org.uk/def/concept/measurement-units/{+unit}" | ||
}, | ||
"Value": { | ||
"datatype": "integer" | ||
} | ||
}, | ||
"main_issue": 67 | ||
}, | ||
"sizingNotes": "", | ||
"notes": "" | ||
} |
4 changes: 4 additions & 0 deletions
4
...ests/test-cases/configloaders/single-measure-info-json-test-files/single-measure-data.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Period,Value,Marker | ||
2021,40,Provisional | ||
2022,50,Provisional | ||
2023,60,Provisional |
45 changes: 45 additions & 0 deletions
45
...sts/test-cases/configloaders/single-measure-info-json-test-files/single-measure-info.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"id": "single-measure-bulletin", | ||
"title": "single-measure-bottles-bulletin", | ||
"publisher": "HM Revenue & Customs", | ||
"description": "All bulletins provide details on percentage of one litre or less bottles. This information is provided on a yearly basis.", | ||
"landingPage": "https://www.gov.uk/government/statistics/bottles-bulletin", | ||
"datasetNotes": [ | ||
"\"UK bottles-bulletin Tables\" Excel file, latest version on page" | ||
], | ||
"published": "2019-02-28", | ||
"families": [ | ||
"Trade" | ||
], | ||
"extract": { | ||
"source": "XLS", | ||
"stage": "Done" | ||
}, | ||
"transform": { | ||
"airtable": "recys4OhEtE0gE14P", | ||
"columns": { | ||
"Period": { | ||
"type": "dimension", | ||
"new": { | ||
"subPropertyOf": "http://purl.org/linked-data/sdmx/2009/dimension#refPeriod", | ||
"codelist": false | ||
}, | ||
"value": "http://reference.data.gov.uk/id/{+period}" | ||
}, | ||
"Marker": { | ||
"type": "attribute" | ||
}, | ||
"Value": { | ||
"type": "observations", | ||
"datatype": "integer", | ||
"measure": { | ||
"label": "One litre and less" | ||
}, | ||
"unit": "http://gss-data.org.uk/def/concept/measurement-units/percentage" | ||
} | ||
}, | ||
"main_issue": 67 | ||
}, | ||
"sizingNotes": "", | ||
"notes": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters