Skip to content

Commit ae43280

Browse files
committed
Merge pull request project-open-data#204 from philipashlock/schema-metadata-fixes
Fixes small errors in metadata schema descriptions
2 parents 5f683de + 9ff524b commit ae43280

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

schema.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,23 +183,23 @@ Further Metadata Field Guidance (alphabetical by JSON field)
183183
{: .table .table-striped}
184184
**Field** | **distribution**
185185
----- | -----
186-
**Cardinality** | (0,1)
186+
**Cardinality** | (0,n)
187187
**Required** | No
188188
**Accepted Values** | See Usage Notes
189-
**Usage Notes** | Distribution is a concatenation, as appropriate, of the following elements: **accessURL** and **format**. If an entry has only one dataset, enter details for that one; if it has multiple datasets (such as a bulk download and an API), separate entries with a comma, as seen below:
189+
**Usage Notes** | Distribution is a concatenation, as appropriate, of the following elements: **accessURL** and **format**. If an entry has only one dataset, enter details for that one; if it has multiple datasets (such as a bulk download and an API), separate entries as seen below:
190190

191191
"distribution": [
192192
{
193193
"accessURL": "https://explore.data.gov/views/ykv5-fn9t/rows.csv?accessType=DOWNLOAD",
194-
"format": "csv"
194+
"format": "text/csv"
195195
},
196196
{
197197
"accessURL": "https://explore.data.gov/views/ykv5-fn9t/rows.json?accessType=DOWNLOAD",
198-
"format": "json"
198+
"format": "application/json"
199199
},
200200
{
201201
"accessURL": "https://explore.data.gov/views/ykv5-fn9t/rows.xml?accessType=DOWNLOAD",
202-
"format": "xml"
202+
"format": "text/xml"
203203
}
204204
]
205205
@@ -255,7 +255,7 @@ Further Metadata Field Guidance (alphabetical by JSON field)
255255
**Required** | No
256256
**Accepted Values** | Array of strings
257257
**Usage Notes** | This should adhere to the [RFC 5646](http://tools.ietf.org/html/rfc5646) standard. http://rishida.net/utils/subtags/ provides a good tool for checking and verifying language codes. A language tag is comprised of either one or two parts, the language subtag (such as en for English, sp for Spanish, wo for Wolof) and the regional subtag (such as US for United States, GB for Great Britain, MX for Mexico), separated by a hyphen. Regional subtags should only be provided when needed to distinguish a language tag from another one (such as American vs. British English).
258-
**Examples** | `{"language":["es-MX"], ["wo"], ["nv"], ["en-US"]}`
258+
**Examples** | `{"language":["es-MX", "wo", "nv", "en-US"]}`
259259

260260
{: .table .table-striped}
261261
**Field** | **license**
@@ -318,7 +318,7 @@ Further Metadata Field Guidance (alphabetical by JSON field)
318318
**Required** | No
319319
**Accepted Values** | Array of strings (URLs)
320320
**Usage Notes** | Enclose each URL within strings. Separate multiple URLs with a comma.
321-
**Example** | `{"references":["http://www.agency.gov/fruits/fruits.csv", "http://www.agency.gov/legumes/legumes_directions.html", "http://www.agency.gov/fruits/fruits.csv,http://www.agency.gov/fruits/fruits_directions.html"]}`
321+
**Example** | `{"references":["http://www.agency.gov/legumes/legumes_data_documentation.html", "http://www.agency.gov/fruits/fruit_data_documentation.html"]}`
322322

323323
{: .table .table-striped}
324324
**Field** | **spatial**

0 commit comments

Comments
 (0)