-
Notifications
You must be signed in to change notification settings - Fork 4
/
configyaz.xml
executable file
·256 lines (251 loc) · 18.4 KB
/
configyaz.xml
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<backend syntax="xml">
<xslt stylesheet="/marklogic/bibliomata/marc2bibframe2/xsl/marc2bibframe2.xsl">
<param name="idsource" value="http://id.loc.gov/vocabulary/organizations/dlc"/>
<param name="baseuri" value="http://bibframe.example.org/"/>
<param name="localfields" value="true"/>
</xslt>
<rdf-lookup timeout="3">
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<lookup xpath="//bf:Agent[contains(@rdf:about,'example.org')][not(rdf:type/@rdf:resource='http://id.loc.gov/ontologies/bibframe/Family')]">
<key field="bflc:name11MatchKey"/>
<key field="bflc:name00MatchKey"/>
<key field="bflc:name10MatchKey"/>
<server url="http://id.loc.gov/authorities/names/label/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<rdf-lookup timeout="3">
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<lookup xpath="//bf:Agent[contains(@rdf:about,'example.org')][rdf:type/@rdf:resource='http://id.loc.gov/ontologies/bibframe/Family']">
<key field="bflc:name11MatchKey"/>
<key field="bflc:name00MatchKey"/>
<key field="bflc:name10MatchKey"/>
<server url="http://id.loc.gov/authorities/subjects/label/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<!-- places in names -->
<rdf-lookup timeout="3">
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<namespace prefix="madsrdf" href="http://www.loc.gov/mads/rdf/v1#"/>
<lookup xpath="//bf:Work/bf:subject/bf:Place[contains(@rdf:about,'example.org') or not (@rdf:about)][not(rdf:type/@rdf:resource='http://www.loc.gov/mads/rdf/v1#ComplexSubject')]|
//bf:Work/bf:subject/bf:Topic[rdf:type/@rdf:resource='http://www.loc.gov/mads/rdf/v1#Geographic'][contains(@rdf:about,'example.org') or not (@rdf:about)]">
<key field="madsrdf:authoritativeLabel"/>
<key field="rdfs:label"/>
<server url="http://id.loc.gov/authorities/names/label/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<!-- subjects -->
<rdf-lookup timeout="3" debug="1" >
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="madsrdf" href="http://www.loc.gov/mads/rdf/v1#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<lookup xpath="//bf:Topic/*[string(bf:source/bf:Source/bf:code)='fast']/bf:identifiedBy/bf:Identifier">
<key field="rdf:value"/>
<server url="http://id.worldcat.org/fast/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<!-- nate added componentlist and moved genreForm 2018-04-18
nate changed to only lookup lcsh or blank source
-->
<rdf-lookup timeout="3" >
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="madsrdf" href="http://www.loc.gov/mads/rdf/v1#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<lookup xpath="//bf:Work/bf:subject/bf:Temporal[contains(@rdf:about,'example.org')] |
//bf:Work/bf:subject/bf:Topic/madsrdf:componentList/madsrdf:Temporal[contains(@rdf:about,'example.org') or not(@rdf:about)]|
//bf:Work/bf:subject/bf:Topic[not(bf:source/bf:Source/bf:code) or string(bf:source/bf:Source/bf:code)='lcsh'][not(rdf:type/@rdf:resource='http://www.loc.gov/mads/rdf/v1#Geographic')][contains(@rdf:about,'example.org')] |
//bf:Work/bf:subject/*[not(bf:source/bf:Source/bf:code) or string(bf:source/bf:Source/bf:code)='lcsh']/madsrdf:componentList/madsrdf:Topic[contains(@rdf:about,'example.org') or not(@rdf:about)]| //bf:Work/bf:subject/bf:Place[contains(@rdf:about,'example.org')][rdf:type/@rdf:resource='http://www.loc.gov/mads/rdf/v1#ComplexSubject']">
<key field="rdfs:label"/>
<key field="madsrdf:authoritativeLabel"/>
<server url="http://id.loc.gov/authorities/subjects/label/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<!-- childrenssubjects -->
<rdf-lookup timeout="3">
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="madsrdf" href="http://www.loc.gov/mads/rdf/v1#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<!-- nate added 2018-11-23-->
<lookup xpath="//bf:Work/bf:subject/*/madsrdf:componentList/*[string(bf:source/bf:Source/bf:code)='lcshac'][contains(@rdf:about,'example.org') or not(@rdf:about)]|
//bf:Work/bf:subject/*[string(bf:source/bf:Source/bf:code)='lcshac'][contains(@rdf:about,'example.org') or not(@rdf:about)] ">
<key field="rdfs:label"/>
<key field="madsrdf:authoritativeLabel"/>
<server url="http://id.loc.gov/authorities/childrensSubjects/label/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<rdf-lookup timeout="3">
<!-- nate added tgm 2018-05-08 graphicMaterials -->
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="madsrdf" href="http://www.loc.gov/mads/rdf/v1#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<lookup xpath="//bf:Work//bf:genreForm/bf:GenreForm[string(bf:source/bf:Source/bf:code)='gmgpc' or string(bf:source/bf:Source/bf:code)='lctgm'][contains(@rdf:about,'example.org') or not(@rdf:about)] |
//bf:Work/bf:subject/*[string(bf:source/bf:Source/bf:code)='gmgpc' or string(bf:source/bf:Source/bf:code)='lctgm'][contains(@rdf:about,'example.org') or not(@rdf:about)] [not(madsrdf:componentList)] | //bf:Work/bf:subject/*[string(bf:source/bf:Source/bf:code)='gmgpc' or string(bf:source/bf:Source/bf:code)='lctgm']/madsrdf:componentList/madsrdf:GenreForm[contains(@rdf:about,'example.org') or not(@rdf:about)] | //bf:Work/bf:subject/*[string(bf:source/bf:Source/bf:code)='gmgpc' or string(bf:source/bf:Source/bf:code)='lctgm']/madsrdf:componentList/madsrdf:Topic[contains(@rdf:about,'example.org') or not(@rdf:about)] |
//bf:Work/bf:genreForm/bf:GenreForm[string(bf:source/bf:Source/bf:code)='gmgpc' or string(bf:source/bf:Source/bf:code)='lctgm']/madsrdf:componentList/madsrdf:GenreForm[contains(@rdf:about,'example.org') or not(@rdf:about)]">
<key field="rdfs:label"/>
<key field="madsrdf:authoritativeLabel"/>
<server url="http://id.loc.gov/vocabulary/graphicMaterials/label/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<!-- genreForms -->
<rdf-lookup timeout="3">
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="madsrdf" href="http://www.loc.gov/mads/rdf/v1#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<lookup xpath="//bf:Work//bf:genreForm/bf:GenreForm[not(bf:source/bf:Source/bf:code) or (string(bf:source/bf:Source/bf:code)!='gmgpc' and string(bf:source/bf:Source/bf:code)!='lctgm')][contains(@rdf:about,'example.org') or not(@rdf:about)] |
//bf:Work/bf:subject/bf:GenreForm[not(bf:source/bf:Source/bf:code) or (string(bf:source/bf:Source/bf:code)!='gmgpc' and string(bf:source/bf:Source/bf:code)!='lctgm')][contains(@rdf:about,'example.org') or not(@rdf:about)] | //bf:Work/bf:subject//madsrdf:componentList/madsrdf:GenreForm[not(bf:source/bf:Source/bf:code) or (string(bf:source/bf:Source/bf:code)!='gmgpc' and string(bf:source/bf:Source/bf:code)!='lctgm')][contains(@rdf:about,'example.org') or not(@rdf:about)] | //bf:Work/bf:genreForm/bf:GenreForm/madsrdf:componentList/madsrdf:GenreForm[not(bf:source/bf:Source/bf:code) or (string(bf:source/bf:Source/bf:code)!='gmgpc' and string(bf:source/bf:Source/bf:code)!='lctgm')][contains(@rdf:about,'example.org') or not(@rdf:about)]">
<key field="rdfs:label"/>
<key field="madsrdf:authoritativeLabel"/>
<server url="http://id.loc.gov/authorities/genreForms/label/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<!-- imprints: any provision -->
<rdf-lookup timeout="3">
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="madsrdf" href="http://www.loc.gov/mads/rdf/v1#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<lookup xpath="//bf:Instance//bf:provisionActivity/bf:ProvisionActivity/bf:agent/bf:Agent[contains(@rdf:about,'example.org') or not(@rdf:about)]">
<key field="rdfs:label"/>
<server url="http://id.loc.gov/bfentities/providers/label/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<!-- geo -->
<rdf-lookup timeout="3">
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="madsrdf" href="http://www.loc.gov/mads/rdf/v1#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<lookup xpath="//bf:Work//bf:subject/madsrdf:Geographic[contains(@rdf:about,'example.org')]| //bf:Work/bf:subject//madsrdf:componentList/madsrdf:Geographic[not(@rdf:about)]">
<key field="madsrdf:authoritativeLabel"/>
<server url="http://id.loc.gov/authorities/names/label/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<!-- relators using new code service 2018-12-18 -->
<rdf-lookup timeout="3">
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<lookup xpath="//bf:Role[not(@rdf:about)]">
<key field="bflc:relatorMatchKey"/>
<key field="rdfs:label"/>
<server url="http://id.loc.gov/vocabulary/relators/label/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<!-- http://id.loc.gov/authorities/performanceMediums/label/mixed%20chorus nate test -->
<rdf-lookup timeout="3">
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<lookup xpath="//bf:musicMedium[not(@rdf:resource)]/bf:MusicMedium[not(@rdf:about)][not(bf:note)]">
<!-- <lookup xpath="//bf:MusicMedium[not(@rdf:about)][not(@rdf:resource)][bf:source/bf:Source/rdfs:label='lcmpt'][not(bf:note)]"> -->
<key field="rdfs:label"/>
<server url="http://id.loc.gov/authorities/performanceMediums/label/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<!-- language -->
<rdf-lookup timeout="3">
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="madsrdf" href="http://www.loc.gov/mads/rdf/v1#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<lookup xpath="//bf:Language[not(@rdf:about)][rdfs:label]">
<key field="rdfs:label"/>
<server url="http://id.loc.gov/vocabulary/languages/label/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<!-- org code -->
<rdf-lookup timeout="3">
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="madsrdf" href="http://www.loc.gov/mads/rdf/v1#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<lookup xpath="//bf:adminMetadata/bf:AdminMetadata/bf:descriptionModifier/bf:Agent[rdfs:label]|
//bf:adminMetadata/bf:AdminMetadata/bf:source/bf:Source[rdf:type='http://id.loc.gov/ontologies/bibframe/Agent'][rdfs:label] | //bf:adminMetadata/bf:AdminMetadata/bf:source/bf:Agent[rdfs:label] ">
<key field="rdfs:label"/>
<server url="http://id.loc.gov/vocabulary/organizations/code/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<!-- 336 contentType if not code -->
<rdf-lookup timeout="3">
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="madsrdf" href="http://www.loc.gov/mads/rdf/v1#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<lookup xpath="//bf:Work/bf:content/bf:Content[not(@rdf:about)][rdfs:label]">
<key field="rdfs:label"/>
<server url="http://id.loc.gov/vocabulary/contentTypes/label/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<!-- 337 mediatype if not code -->
<rdf-lookup timeout="3">
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="madsrdf" href="http://www.loc.gov/mads/rdf/v1#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<lookup xpath="//bf:Instance/bf:media/bf:Media[not(@rdf:about)][rdfs:label] ">
<key field="rdfs:label"/>
<server url="http://id.loc.gov/vocabulary/mediaTypes/label/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<!-- 338 carrier if not $b -->
<rdf-lookup timeout="3">
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="madsrdf" href="http://www.loc.gov/mads/rdf/v1#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<lookup xpath="//bf:Instance/bf:carrier/bf:Carrier[not(@rdf:about)][rdfs:label] ">
<key field="rdfs:label"/>
<server url="http://id.loc.gov/vocabulary/carriers/label/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<!-- scale -->
<rdf-lookup timeout="3">
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="madsrdf" href="http://www.loc.gov/mads/rdf/v1#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<lookup xpath="//bf:Work/bf:scale/bf:Scale[not(@rdf:about)][rdfs:label]">
<key field="rdfs:label"/>
<server url="http://id.loc.gov/vocabulary/mscale/label/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
<rdf-lookup timeout="3" >
<namespace prefix="bf" href="http://id.loc.gov/ontologies/bibframe/"/>
<namespace prefix="bflc" href="http://id.loc.gov/ontologies/bflc/"/>
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<namespace prefix="madsrdf" href="http://www.loc.gov/mads/rdf/v1#"/>
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
<lookup xpath="//bf:Work/bf:supplementaryContent/bf:SupplementaryContent[not(@rdf:about)][rdfs:label]">
<key field="rdfs:label"/>
<server url="http://id.loc.gov/vocabulary/msupplcont/label/%s" method="HEAD"/>
</lookup>
</rdf-lookup>
</backend>