-
Notifications
You must be signed in to change notification settings - Fork 0
/
metadata.json.tmpl
132 lines (132 loc) · 3.29 KB
/
metadata.json.tmpl
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"metadata": {
"resourcelink": "{{ .ResourceLink }}",
"relationships": [
{
"s": "self",
"p": "http://phaidra.org/ontology/isInAdminSet",
"o": "phaidra:museum.phaidra.org"
}
],
"json-ld": {
"edm:hasType": [
{
"@type": "skos:Concept",
"skos:exactMatch": [
"https:\/\/pid.phaidra.org\/vocabulary\/QTXN-YBJ3"
],
"skos:prefLabel": [
{
"@language": "eng",
"@value": "web application"
},
{
"@language": "deu",
"@value": "Web-Anwendung"
}
]
}
],
"dce:title": [
{
"@type": "bf:Title",
"bf:mainTitle": [
{
"@language": "eng",
"@value": "{{ .Title }}"
}
]
}
],
"role:aut": [
{
"@type": "schema:Person",
"schema:familyName": [
{
"@value": "{{ .Author.LastName }}"
}
],
"schema:givenName": [
{
"@value": "{{ .Author.FirstName }}"
}
]
}
],
"bf:note": [
{
"@type": "bf:Summary",
"skos:prefLabel": [
{
"@language": "eng",
"@value": "{{ .Description }}"
}
]
}
],
"dce:subject": [
{{$lenKeywords := minus (len .Keywords) 1}}
{{ range $i, $kw := .Keywords }}
{
"@type": "skos:Concept",
"skos:prefLabel": [
{{ $lenLabels := minus (len $kw) 1 }}
{{ range $j, $label := $kw }}
{
"@language": "{{ $label.Lang }}",
"@value": "{{ $label.Value }}"
}{{ if lt $j $lenLabels }},{{ end }}
{{ end }}
]
} {{ if lt $i $lenKeywords }},{{ end }}
{{ end }}
],
"dcterms:subject": [
{
"@type": "skos:Concept",
"rdfs:label": [
{{ $lenOefosFullLabel := minus (len .Oefos.FullLabel) 1 }}
{{ range $i, $label := .Oefos.FullLabel }}
{
"@language": "{{ $label.Lang }}",
"@value": "{{ $label.Value }}"
}{{ if lt $i $lenOefosFullLabel }},{{ end }}
{{ end }}
],
"skos:exactMatch": [
"{{ .Oefos.ExactMatch }}"
],
"skos:notation": [
"{{ .Oefos.Notation }}"
],
"skos:prefLabel": [
{{ $lenOefosPrefLabel := minus (len .Oefos.PrefLabel) 1 }}
{{ range $i, $label := .Oefos.PrefLabel }}
{
"@language": "{{ $label.Lang }}",
"@value": "{{ $label.Value }}"
}{{ if lt $i $lenOefosPrefLabel }},{{ end }}
{{ end }}
]
}
],
"rdax:P00009": [
{
"@type": "aiiso:Institute",
"skos:exactMatch": [
"{{ .OrgUnit.ExactMatch }}"
],
"skos:prefLabel": [
{{ $lenOrgUnitPrefLabel := minus (len .OrgUnit.FullLabel) 1 }}
{{ range $i, $label := .OrgUnit.FullLabel }}
{
"@language": "{{ $label.Lang }}",
"@value": "{{ $label.Value }}"
}{{ if lt $i $lenOrgUnitPrefLabel }},{{ end }}
{{ end }}
]
}
]
}
}
}