Skip to content

Support for multipart tabular resources #33

Description

@roll

Overview

Specs-v1 has introduced concept of multipart resources:

{
    "resources": [
        {
             "name" : "name",
             "path": ["chunk1.csv", "chunk2.csv"]
        }
    ]

So if we have:

resource.json

{
  "name" : "name",
  "path": ["chunk1.csv", "chunk2.csv"]
}

chunk1.csv

header1, header2
value1, value2

chunk2.csv

value3, value4

we could get all table rows:

resource = Resource('resource.json')
resource.headers()
# header1, header2
resource.read()
# value1, value2
# value3, value4

Activity

  1. added this to the Version-1 milestone on Nov 10, 2017
  2. roll commented on Nov 30, 2017

    @roll
    ContributorAuthor

    @OriHoch
    Great!

    So if we have:

    resource.json

    {
      "name" : "name",
      "path": ["chunk1.csv", "chunk2.csv"]
    }
    

    chunk1.csv

    header1, header2
    value1, value2
    

    chunk2.csv

    value3, value4
    

    we could get all table rows:

    resource = Resource('resource.json')
    resource.headers()
    # header1, header2
    resource.read()
    # value1, value2
    # value3, value4
  3. changed the title [-]Do we support multipart resources?[/-] [+]Support for chunked tabular resources?[/+] on Dec 25, 2017
  4. roll commented on Dec 25, 2017

    @roll
    ContributorAuthor

    I've updated the title/description. Re-opening because I'm not sure I had a clearly formulated question at first place.

  5. reopened this on Dec 25, 2017
  6. stale commented on Oct 6, 2019

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  7. changed the title [-]Support for chunked tabular resources?[/-] [+]Support for multipart tabular resources[/+] on Oct 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions