nfdi4objects / n4o-import

N4O Graph import workflow
1 stars 0 forks source link

Create datapackage files for import #9

Open nichtich opened 2 months ago

nichtich commented 2 months ago

See https://datapackage.org/recipes/files-inside-archives/#example for an example.

{
  "profile": "data-package",
  "resources": [
    {
      "path": "https://zenodo.org/records/4849646/files/ogi-ogham/ogham-datav1-v1.1.zip",
      "format": "zip",
      "mediatype": "application/zip",
      "bytes": "152930986",
      "hash": "776db7fd75a984dd161aead8d5d99534",
      "resources": [
        {
          "path": "ogi-ogham-ogham-datav1-c458452/rdf/ogham/og_sites_1.ttl",
          "format": "ttl",
          "mediatype": "text/turtle",
          "bytes": 462712
        },
        ...
      ]
    }
  ]
}

File mediatype can be guessed for instance with https://github.com/openpreserve/fido