1
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
2
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
3
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
4
|
http://www.springframework.org/schema/beans/spring-beans.xsd
|
5
|
http://www.springframework.org/schema/context
|
6
|
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
|
7
|
|
8
|
|
9
|
<bean id="prov20150115.wasDerivedFrom" class="org.dataone.cn.indexer.annotation.SparqlField">
|
10
|
<constructor-arg name="name" value="prov_wasDerivedFrom" />
|
11
|
<constructor-arg name="query">
|
12
|
<value>
|
13
|
<![CDATA[
|
14
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
15
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
16
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
17
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
18
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
19
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
20
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
21
|
|
22
|
SELECT (str(?pidValue) as ?pid) (str(?wasDerivedFromValue) as ?prov_wasDerivedFrom)
|
23
|
FROM <$GRAPH_NAME>
|
24
|
WHERE {
|
25
|
|
26
|
?derived_data prov:wasDerivedFrom ?primary_data .
|
27
|
?derived_data dcterms:identifier ?pidValue .
|
28
|
?primary_data dcterms:identifier ?wasDerivedFromValue .
|
29
|
|
30
|
}
|
31
|
]]>
|
32
|
</value>
|
33
|
</constructor-arg>
|
34
|
</bean>
|
35
|
|
36
|
<bean id="prov20150115.generated" class="org.dataone.cn.indexer.annotation.SparqlField">
|
37
|
<constructor-arg name="name" value="prov_generated" />
|
38
|
<constructor-arg name="query">
|
39
|
<value>
|
40
|
<![CDATA[
|
41
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
42
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
43
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
44
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
45
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
46
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
47
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
48
|
|
49
|
SELECT (str(?pidValue) as ?pid) (str(?generatedValue) as ?prov_generated)
|
50
|
FROM <$GRAPH_NAME>
|
51
|
WHERE {
|
52
|
|
53
|
?result prov:wasGeneratedBy ?activity .
|
54
|
?activity prov:qualifiedAssociation ?association .
|
55
|
?association prov:hadPlan ?program .
|
56
|
?result dcterms:identifier ?generatedValue .
|
57
|
?program dcterms:identifier ?pidValue .
|
58
|
|
59
|
}
|
60
|
]]>
|
61
|
</value>
|
62
|
</constructor-arg>
|
63
|
</bean>
|
64
|
|
65
|
<bean id="prov20150115.wasInformedBy" class="org.dataone.cn.indexer.annotation.SparqlField">
|
66
|
<constructor-arg name="name" value="prov_wasInformedBy" />
|
67
|
<constructor-arg name="query">
|
68
|
<value>
|
69
|
<![CDATA[
|
70
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
71
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
72
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
73
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
74
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
75
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
76
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
77
|
|
78
|
SELECT (str(?pidValue) as ?pid) (str(?wasInformedByValue) as ?prov_wasInformedBy)
|
79
|
FROM <$GRAPH_NAME>
|
80
|
WHERE {
|
81
|
|
82
|
?activity prov:wasInformedBy ?previousActivity .
|
83
|
?activity dcterms:identifier ?pidValue .
|
84
|
?previousActivity dcterms:identifier ?wasInformedByValue .
|
85
|
|
86
|
}
|
87
|
]]>
|
88
|
</value>
|
89
|
</constructor-arg>
|
90
|
</bean>
|
91
|
|
92
|
<bean id="prov20150115.used" class="org.dataone.cn.indexer.annotation.SparqlField">
|
93
|
<constructor-arg name="name" value="prov_used" />
|
94
|
<constructor-arg name="query">
|
95
|
<value>
|
96
|
<![CDATA[
|
97
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
98
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
99
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
100
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
101
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
102
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
103
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
104
|
|
105
|
SELECT (str(?pidValue) as ?pid) (str(?usedValue) as ?prov_used)
|
106
|
FROM <$GRAPH_NAME>
|
107
|
WHERE {
|
108
|
|
109
|
?activity prov:used ?data .
|
110
|
?activity prov:qualifiedAssociation ?association .
|
111
|
?association prov:hadPlan ?program .
|
112
|
?program dcterms:identifier ?pidValue .
|
113
|
?data dcterms:identifier ?usedValue .
|
114
|
|
115
|
}
|
116
|
]]>
|
117
|
</value>
|
118
|
</constructor-arg>
|
119
|
</bean>
|
120
|
|
121
|
<bean id="prov20150115.generatedByProgram" class="org.dataone.cn.indexer.annotation.SparqlField">
|
122
|
<constructor-arg name="name" value="prov_generatedByProgram" />
|
123
|
<constructor-arg name="query">
|
124
|
<value>
|
125
|
<![CDATA[
|
126
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
127
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
128
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
129
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
130
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
131
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
132
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
133
|
|
134
|
SELECT (str(?pidValue) as ?pid) (str(?programPidValue) as ?prov_generatedByProgram)
|
135
|
FROM <$GRAPH_NAME>
|
136
|
WHERE {
|
137
|
|
138
|
?derived_data prov:wasGeneratedBy ?execution .
|
139
|
?execution prov:qualifiedAssociation ?association .
|
140
|
?association prov:hadPlan ?program .
|
141
|
?program dcterms:identifier ?programPidValue .
|
142
|
?derived_data dcterms:identifier ?pidValue .
|
143
|
}
|
144
|
]]>
|
145
|
</value>
|
146
|
</constructor-arg>
|
147
|
</bean>
|
148
|
|
149
|
<bean id="prov20150115.generatedByExecution" class="org.dataone.cn.indexer.annotation.SparqlField">
|
150
|
<constructor-arg name="name" value="prov_generatedByExecution" />
|
151
|
<constructor-arg name="query">
|
152
|
<value>
|
153
|
<![CDATA[
|
154
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
155
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
156
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
157
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
158
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
159
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
160
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
161
|
|
162
|
SELECT (str(?pidValue) as ?pid) (str(?executionPidValue) as ?prov_generatedByExecution)
|
163
|
FROM <$GRAPH_NAME>
|
164
|
WHERE {
|
165
|
|
166
|
?derived_data prov:wasGeneratedBy ?execution .
|
167
|
?execution dcterms:identifier ?executionPidValue .
|
168
|
?derived_data dcterms:identifier ?pidValue .
|
169
|
}
|
170
|
]]>
|
171
|
</value>
|
172
|
</constructor-arg>
|
173
|
</bean>
|
174
|
|
175
|
<bean id="prov20150115.generatedByUser" class="org.dataone.cn.indexer.annotation.SparqlField">
|
176
|
<constructor-arg name="name" value="prov_generatedByUser" />
|
177
|
<constructor-arg name="query">
|
178
|
<value>
|
179
|
<![CDATA[
|
180
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
181
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
182
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
183
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
184
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
185
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
186
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
187
|
|
188
|
SELECT (str(?pidValue) as ?pid) ?prov_generatedByUser
|
189
|
FROM <$GRAPH_NAME>
|
190
|
WHERE {
|
191
|
|
192
|
?derived_data prov:wasGeneratedBy ?execution .
|
193
|
?execution prov:qualifiedAssociation ?association .
|
194
|
?association prov:agent ?prov_generatedByUser .
|
195
|
?derived_data dcterms:identifier ?pidValue .
|
196
|
}
|
197
|
]]>
|
198
|
</value>
|
199
|
</constructor-arg>
|
200
|
</bean>
|
201
|
|
202
|
<bean id="prov20150115.usedByProgram" class="org.dataone.cn.indexer.annotation.SparqlField">
|
203
|
<constructor-arg name="name" value="prov_usedByProgram" />
|
204
|
<constructor-arg name="query">
|
205
|
<value>
|
206
|
<![CDATA[
|
207
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
208
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
209
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
210
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
211
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
212
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
213
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
214
|
|
215
|
SELECT (str(?pidValue) as ?pid) (str(?programPidValue) as ?prov_usedByProgram)
|
216
|
FROM <$GRAPH_NAME>
|
217
|
WHERE {
|
218
|
|
219
|
?execution prov:used ?primary_data .
|
220
|
?execution prov:qualifiedAssociation ?association .
|
221
|
?association prov:hadPlan ?program .
|
222
|
?program dcterms:identifier ?programPidValue .
|
223
|
?primary_data dcterms:identifier ?pidValue .
|
224
|
}
|
225
|
]]>
|
226
|
</value>
|
227
|
</constructor-arg>
|
228
|
</bean>
|
229
|
|
230
|
<bean id="prov20150115.usedByExecution" class="org.dataone.cn.indexer.annotation.SparqlField">
|
231
|
<constructor-arg name="name" value="prov_usedByExecution" />
|
232
|
<constructor-arg name="query">
|
233
|
<value>
|
234
|
<![CDATA[
|
235
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
236
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
237
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
238
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
239
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
240
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
241
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
242
|
|
243
|
SELECT (str(?pidValue) as ?pid) (str(?executionIdValue) as ?prov_usedByExecution)
|
244
|
FROM <$GRAPH_NAME>
|
245
|
WHERE {
|
246
|
|
247
|
?execution prov:used ?primary_data .
|
248
|
?primary_data dcterms:identifier ?pidValue .
|
249
|
?execution dcterms:identifier ?executionIdValue .
|
250
|
}
|
251
|
]]>
|
252
|
</value>
|
253
|
</constructor-arg>
|
254
|
</bean>
|
255
|
|
256
|
<bean id="prov20150115.usedByUser" class="org.dataone.cn.indexer.annotation.SparqlField">
|
257
|
<constructor-arg name="name" value="prov_usedByUser" />
|
258
|
<constructor-arg name="query">
|
259
|
<value>
|
260
|
<![CDATA[
|
261
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
262
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
263
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
264
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
265
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
266
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
267
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
268
|
|
269
|
SELECT (str(?pidValue) as ?pid) ?prov_usedByUser
|
270
|
FROM <$GRAPH_NAME>
|
271
|
WHERE {
|
272
|
|
273
|
?execution prov:used ?primary_data .
|
274
|
?execution prov:qualifiedAssociation ?association .
|
275
|
?association prov:agent ?prov_usedByUser .
|
276
|
?primary_data dcterms:identifier ?pidValue .
|
277
|
}
|
278
|
]]>
|
279
|
</value>
|
280
|
</constructor-arg>
|
281
|
</bean>
|
282
|
|
283
|
<bean id="prov20150115.wasExecutedByExecution" class="org.dataone.cn.indexer.annotation.SparqlField">
|
284
|
<constructor-arg name="name" value="prov_wasExecutedByExecution" />
|
285
|
<constructor-arg name="query">
|
286
|
<value>
|
287
|
<![CDATA[
|
288
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
289
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
290
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
291
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
292
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
293
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
294
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
295
|
|
296
|
SELECT (str(?pidValue) as ?pid) (str(?executionIdValue) as ?prov_wasExecutedByExecution)
|
297
|
FROM <$GRAPH_NAME>
|
298
|
WHERE {
|
299
|
|
300
|
?execution prov:qualifiedAssociation ?association .
|
301
|
?association prov:hadPlan ?program .
|
302
|
?execution dcterms:identifier ?executionIdValue .
|
303
|
?program dcterms:identifier ?pidValue .
|
304
|
}
|
305
|
]]>
|
306
|
</value>
|
307
|
</constructor-arg>
|
308
|
</bean>
|
309
|
|
310
|
<bean id="prov20150115.wasExecutedByUser" class="org.dataone.cn.indexer.annotation.SparqlField">
|
311
|
<constructor-arg name="name" value="prov_wasExecutedByUser" />
|
312
|
<constructor-arg name="query">
|
313
|
<value>
|
314
|
<![CDATA[
|
315
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
316
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
317
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
318
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
319
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
320
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
321
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
322
|
|
323
|
SELECT (str(?pidValue) as ?pid) ?prov_wasExecutedByUser
|
324
|
FROM <$GRAPH_NAME>
|
325
|
WHERE {
|
326
|
|
327
|
?execution prov:qualifiedAssociation ?association .
|
328
|
?association prov:hadPlan ?program .
|
329
|
?association prov:agent ?prov_wasExecutedByUser .
|
330
|
?program dcterms:identifier ?pidValue .
|
331
|
}
|
332
|
]]>
|
333
|
</value>
|
334
|
</constructor-arg>
|
335
|
</bean>
|
336
|
|
337
|
<bean id="prov20150115.hasSources" class="org.dataone.cn.indexer.annotation.SparqlField">
|
338
|
<constructor-arg name="name" value="prov_hasSources" />
|
339
|
<constructor-arg name="query">
|
340
|
<value>
|
341
|
<![CDATA[
|
342
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
343
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
344
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
345
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
346
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
347
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
348
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
349
|
PREFIX cito: <http://purl.org/spar/cito/>
|
350
|
|
351
|
SELECT (str(?pidValue) as ?pid) (str(?sourceDataPidValue) as ?prov_hasSources)
|
352
|
FROM <$GRAPH_NAME>
|
353
|
WHERE {
|
354
|
?derived_data prov:wasDerivedFrom ?source_data .
|
355
|
?derived_data cito:documentedBy ?derived_metadata .
|
356
|
?derived_metadata dcterms:identifier ?pidValue .
|
357
|
?source_data dcterms:identifier ?sourceDataPidValue .
|
358
|
}
|
359
|
]]>
|
360
|
</value>
|
361
|
</constructor-arg>
|
362
|
</bean>
|
363
|
|
364
|
<bean id="prov20150115.hasDerivations" class="org.dataone.cn.indexer.annotation.SparqlField">
|
365
|
<constructor-arg name="name" value="prov_hasDerivations" />
|
366
|
<constructor-arg name="query">
|
367
|
<value>
|
368
|
<![CDATA[
|
369
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
370
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
371
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
372
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
373
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
374
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
375
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
376
|
PREFIX cito: <http://purl.org/spar/cito/>
|
377
|
|
378
|
SELECT (str(?pidValue) as ?pid) (str(?derivedDataPidValue) as ?prov_hasDerivations)
|
379
|
FROM <$GRAPH_NAME>
|
380
|
WHERE {
|
381
|
?derived_data prov:wasDerivedFrom ?source_data .
|
382
|
?source_data cito:documentedBy ?source_metadata .
|
383
|
?source_metadata dcterms:identifier ?pidValue .
|
384
|
?derived_data dcterms:identifier ?derivedDataPidValue .
|
385
|
}
|
386
|
]]>
|
387
|
</value>
|
388
|
</constructor-arg>
|
389
|
</bean>
|
390
|
|
391
|
<bean id="prov20150115.instanceOfClass" class="org.dataone.cn.indexer.annotation.SparqlField">
|
392
|
<constructor-arg name="name" value="prov_instanceOfClass" />
|
393
|
<constructor-arg name="query">
|
394
|
<value>
|
395
|
<![CDATA[
|
396
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
397
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
398
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
399
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
400
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
401
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
402
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
403
|
|
404
|
SELECT (str(?pidValue) as ?pid) ?prov_instanceOfClass
|
405
|
FROM <$GRAPH_NAME>
|
406
|
WHERE {
|
407
|
|
408
|
?subject rdf:type ?prov_instanceOfClass .
|
409
|
?subject dcterms:identifier ?pidValue .
|
410
|
}
|
411
|
]]>
|
412
|
</value>
|
413
|
</constructor-arg>
|
414
|
</bean>
|
415
|
|
416
|
</beans>
|