This repository has been archived by the owner on Sep 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
data.json
46 lines (45 loc) · 2.1 KB
/
data.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
layout: default
context: "https://project-open-data.cio.gov/v1.1/schema/catalog.jsonld"
type: "dcat:Catalog"
conformsTo: "https://project-open-data.cio.gov/v1.1/schema"
describedBy: "https://project-open-data.cio.gov/v1.1/schema/catalog.json"
---
{
"@context":"{{ page.context }}",
"@type":"{{ page.type }}",
"conformsTo":"{{ page.conformsTo }}",
"describedBy": "{{ page.describedBy }}",
"dataset": [{% for d in site.categories.datasets %}
{
"@type":"dcat:Dataset",
"accessLevel": "public",
"identifier": "{{ d.identifier }}",
"title": "{{ d.title }}",
"modified": "{{ d.modified }}",
"rights": "-",
"bureauCode": [{% for code in d.bureauCode %}"{{ code }}"{% unless forloop.last %},{% endunless %}{% endfor %}],
"programCode": [{% for code in d.programCode %}"{{ code }}"{% unless forloop.last %},{% endunless %}{% endfor %}],{% if d.describedBy %}{% if d.describedBy != "" %}
"describedBy": "{{ d.describedBy }}",{% endif %}{% endif %}
"description": "{{ d.description | escape }}",
"distribution":[{% for endpoint in d.distribution %}{
{% if endpoint.format %}"format":"{{ endpoint.format }}",{% endif %}
{% if endpoint.mediaType %}"mediaType":"{{ endpoint.mediaType }}",{% endif %}
{% if endpoint.accessURL %}"accessURL":"{{ endpoint.accessURL }}",{% endif %}
{% if endpoint.downloadURL %}"downloadURL":"{{ endpoint.downloadURL }}",{% endif %}
"type":"{{ endpoint.type }}"
}{% unless forloop.last %},{% endunless %}{% endfor %}],
"keyword": [{% for kw in d.keyword %}"{{ kw }}"{% unless forloop.last %},{% endunless %}{% endfor %}],
"publisher": {
"@type":"{{ d.publisher.type }}",
"name": "{{ d.publisher.name }}"
},
"spatial": "{{ d.spatial }}",
"temporal": "{{ d.temporal }}",
"contactPoint": {
"@type":"{{ d.poc.type }}",
"fn": "{{ d.poc.fn }}",
"hasEmail": "{{ d.poc.hasEmail }}"
}
}{% unless forloop.last %},{% endunless %}{% endfor %}]
}