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
|
<!-- This index field is inteded for use across multiple documents, which requires
|
338
|
a triple store, which is not currently implemented, so it is disabled for now..
|
339
|
<bean id="prov20150115.hasSources" class="org.dataone.cn.indexer.annotation.SparqlField">
|
340
|
<constructor-arg name="name" value="prov_hasSources" />
|
341
|
<constructor-arg name="query">
|
342
|
<value>
|
343
|
<![CDATA[
|
344
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
345
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
346
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
347
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
348
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
349
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
350
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
351
|
PREFIX cito: <http://purl.org/spar/cito/>
|
352
|
|
353
|
SELECT (str(?pidValue) as ?pid) (str(?sourceDataPidValue) as ?prov_hasSources)
|
354
|
FROM <$GRAPH_NAME>
|
355
|
WHERE {
|
356
|
?execution prov:used ?source_data .
|
357
|
?execution prov:qualifiedAssociation ?association .
|
358
|
?association prov:hadPlan ?program .
|
359
|
?program dcterms:identifier ?pidValue .
|
360
|
?source_data dcterms:identifier ?sourceDataPidValue .
|
361
|
}
|
362
|
]]>
|
363
|
</value>
|
364
|
</constructor-arg>
|
365
|
</bean>
|
366
|
-->
|
367
|
|
368
|
<bean id="prov20150115.hasDerivations" class="org.dataone.cn.indexer.annotation.SparqlField">
|
369
|
<constructor-arg name="name" value="prov_hasDerivations" />
|
370
|
<constructor-arg name="query">
|
371
|
<value>
|
372
|
<![CDATA[
|
373
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
374
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
375
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
376
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
377
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
378
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
379
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
380
|
PREFIX cito: <http://purl.org/spar/cito/>
|
381
|
|
382
|
SELECT (str(?pidValue) as ?pid) (str(?derivedDataPidValue) as ?prov_hasDerivations)
|
383
|
FROM <$GRAPH_NAME>
|
384
|
WHERE {
|
385
|
?derived_data prov:wasDerivedFrom ?source_data .
|
386
|
?source_data dcterms:identifier ?pidValue .
|
387
|
?derived_data dcterms:identifier ?derivedDataPidValue .
|
388
|
}
|
389
|
]]>
|
390
|
</value>
|
391
|
</constructor-arg>
|
392
|
</bean>
|
393
|
|
394
|
<bean id="prov20150115.instanceOfClass" class="org.dataone.cn.indexer.annotation.SparqlField">
|
395
|
<constructor-arg name="name" value="prov_instanceOfClass" />
|
396
|
<constructor-arg name="query">
|
397
|
<value>
|
398
|
<![CDATA[
|
399
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
400
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
401
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
402
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
403
|
PREFIX provone: <http://purl.dataone.org/provone/2015/01/15/ontology#>
|
404
|
PREFIX ore: <http://www.openarchives.org/ore/terms/>
|
405
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
406
|
|
407
|
SELECT (str(?pidValue) as ?pid) ?prov_instanceOfClass
|
408
|
FROM <$GRAPH_NAME>
|
409
|
WHERE {
|
410
|
|
411
|
?subject rdf:type ?prov_instanceOfClass .
|
412
|
?subject dcterms:identifier ?pidValue .
|
413
|
}
|
414
|
]]>
|
415
|
</value>
|
416
|
</constructor-arg>
|
417
|
</bean>
|
418
|
|
419
|
</beans>
|