Logo: Relish

  1. Sign in

Project: Data-curator

Open a Data Package

As a User

I want to open a tabular data package

So that I can view or edit the data, metadata and provenance information in the data package

RULES

  • Tabular data packages can be opened from a URL or local path
  • A tabular data package can be stored in .zip or .json format
  • The datapackage.zip typically contains:
    • tabular data resources (e.g. one or more .csv files located via a local path or url reference)
      • JSON Tabular Data is not supported
    • a datapackage.json file (that describes the data package and contains a table schema and may contain a CSV dialect for each resource)
      • the schema and dialect for each resource may be in-line or referenced via a url
    • a README.md file (containing the provenance information)
  • The datapackage.json file not in a zip file:
    • references the tabular data resources via a url
    • describes the tabular data package and contains the schema and dialect for each resource, either inline or referenced via a url
    • doesn't include or reference and README.md or README.txt
  • "Open Data Package" can be invoked from the Menu

LATER

  • Open datapackage.json from a local file
  • Open a data package that references a Table Schema at a URL
  • Open a data package that references a CSV Dialect at a URL

QUESTIONS

Scenarios
Open a valid datapackage.json from a local file
Given
Data Curator is open
When
"Open Data Package" is invoked
And
a valid datapackage.json file at a local file is selected
Then
the properties from datapackage.json should be loaded into the property panels
And
each data resource (at a URL or path) should be opened in a new data tab to the right of any other open data tabs
And
each Data tab should be named using the data resource name
And
each data resource header row should be set using the dialect
Open a valid datapackage.json with properties unsupported by Data Curator from a local file
Given
Data Curator is open
When
"Open Data Package" is invoked
And
a valid datapackage.json file at a local file is selected
Then
the properties from datapackage.json should be displayed in the property panels
And
the data at the path of each data resource should open in a new data tab to the right of any other open data tabs
And
each Data tab should be named using the data resource name
And
each data resource header row should be set using the dialect
And
a warning should be displayed stating that some unsupported properties were not imported
Open a invalid datapackage.json from a local file
Given
Data Curator is open
When
"Open Data Package" is invoked
And
an invalid datapackage.json file at a local file is selected
Then
an error message should be displayed
Open a valid datapackage.json from a URL
Given
Data Curator is open
When
"Open Data Package" is invoked
And
a valid datapackage.json file at a URL is selected
Then
the properties from datapackage.json should be displayed in the property panels
And
the data at the path of each data resource should open in a new data tab to the right of any other open data tabs
And
each Data tab should be named using the data resource name
And
each data resource header row should be set using the dialect
Open a datapackage.json with properties unsupported by Data Curator from a URL
Given
Data Curator is open
When
"Open Data Package" is invoked
And
the datapackage.json file at the URL is selected
Then
the properties from datapackage.json should be displayed in the property panels
And
the data at the path of each data resource should open in a new data tab to the right of any other open data tabs
And
each Data tab should be named using the data resource name
And
each data resource header row should be set using the dialect
And
a warning should be displayed stating that some unsupported properties were not imported
Open an invalid datapackage.json from a URL
Given
Data Curator is open
When
"Open Data Package" is invoked
And
an invalid datapackage.json file at a URL is selected
Then
an error message should be displayed
Open a valid datapackage.zip from a local file
Given
Data Curator is open
When
"Open Data Package" is invoked
And
a valid datapackage.zip file at a local file is selected
Then
the properties from datapackage.json should be loaded into the property panels
And
each data resource (at a URL or path) should be opened in a new data tab to the right of any other open data tabs
And
each Data tab should be named using the data resource name
And
each data resource header row should be set using the dialect
And
the README.md should be displayed in the provenance information panel
Open a datapackage.zip with properties unsupported by Data Curator from a local file
Given
Data Curator is open
When
"Open Data Package" is invoked
And
a valid datapackage.zip file at a local file is selected
Then
the properties from datapackage.json should be displayed in the property panels
And
the data at the path of each data resource should open in a new data tab to the right of any other open data tabs
And
each Data tab should be named using the data resource name
And
each data resource header row should be set using the dialect
And
the README.md should be displayed in the provenance information panel
And
a warning should be displayed stating that some unsupported properties were not imported
Open a invalid datapackage.zip from a local file
Given
Data Curator is open
When
"Open Data Package" is invoked
And
an invalid datapackage.zip file at a local file is selected
Then
an error message should be displayed
Open a valid datapackage.zip from a URL
Given
Data Curator is open
When
"Open Data Package" is invoked
And
the datapackage.zip file at a URL is selected
Then
the properties from datapackage.json file should be displayed in the property panels
And
the data at the path of each data resource should open in a new data tab to the right of any other open data tabs
And
each Data tab should be named using the data resource name
And
each data resource header row should be set using the dialect
And
the README.md should be displayed in the provenance information panel
Open a datapackage.zip with properties unsupported by Data Curator from a URL
Given
Data Curator is open
When
"Open Data Package" is invoked
And
the datapackage.zip file at a URL is specified
Then
the properties from datapackage.json should be displayed in the property panels
And
the data at the path of each data resource should open in a new data tab to the right of any other open data tabs
And
each Data tab should be named using the data resource name
And
each data resource header row should be set using the dialect
And
the README.md should be displayed in the provenance information panel
And
a warning should be displayed stating that some unsupported properties were not imported
Open a invalid datapackage.zip from a URL
Given
Data Curator is open
When
"Open Data Package" is invoked
And
an invalid datapackage.zip file at a URL is selected
Then
an error message should be displayed

Last published over 1 year ago by Matt Mulholland.