splor-mg / dpm

https://splor-mg.github.io/dpm/
0 stars 0 forks source link

Adicionar suporte para instalação de data packages que possuem URL na propriedade `resource.path` #7

Open fjuniorr opened 1 year ago

fjuniorr commented 1 year ago

Os trechos relevantes da especificação:


A resource MUST contain a property describing the location of the data associated to the resource. The location of resource data MUST be specified by the presence of one (and only one) of these two properties:

path Data in Files

path MUST be a string – or an array of strings (see “Data in Multiple
Files”). Each string MUST be a “url-or-path” as defined in the next section.

URL or Path

A “url-or-path” is a string with the following additional constraints:

Examples:

# fully qualified url
"path": "http://ex.datapackages.org/big-csv/my-big.csv"

# relative path
# note: this will work both as a relative path on disk and on online
"path": "my-data-directory/my-csv.csv"