Project

General

Profile

1
<beans xmlns="http://www.springframework.org/schema/beans"
2
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
	xmlns:p="http://www.springframework.org/schema/p"
4
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
5

    
6
	<bean id="rdfXmlSubprocessor" class="edu.ucsb.nceas.metacat.index.annotation.RdfXmlSubprocessor">
7
		<property name="matchDocument"
8
			value="/d200:systemMetadata/formatId[text()='http://www.w3.org/TR/rdf-syntax-grammar'] | /d200:systemMetadata/formatId[text()='http://www.openarchives.org/ore/terms']" />
9
		<property name="fieldList">
10
			<list>
11
				<ref bean="annotation.standard" />
12
				<ref bean="annotation.characteristic" />
13
				<ref bean="annotation.creator" />
14
				<ref bean="prov.wasDerivedFrom" />
15
				<ref bean="prov.wasGeneratedBy" />
16
				<ref bean="prov.wasInformedBy" />
17
				<ref bean="prov.used" />
18
			</list>
19
		</property>	
20
	</bean>
21
	
22
	<bean id="annotation.standard" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
23
		<constructor-arg name="name" value="standard_sm" />
24
		<constructor-arg name="query">
25
			<value>
26
				<![CDATA[
27
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
28
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
29
				PREFIX owl: <http://www.w3.org/2002/07/owl#> 
30
				PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#> 
31
				PREFIX oa: <http://www.w3.org/ns/oa#>
32
				PREFIX dcterms: <http://purl.org/dc/terms/>
33

    
34
				SELECT ?standard_sm ?pid
35
				FROM <$GRAPH_NAME>
36
				WHERE { 
37
						
38
						?measurement rdf:type oboe-core:Measurement .
39
						?measurement rdf:type ?restriction .
40
						?restriction owl:onProperty oboe-core:usesStandard .
41
						?restriction owl:allValuesFrom ?standard .
42
						?standard rdfs:subClassOf+ ?standard_sm .
43
						?standard_sm rdfs:subClassOf oboe-core:Standard .
44
						
45
						?annotation oa:hasBody ?measurement .												
46
						?annotation oa:hasTarget ?target .
47
						?target oa:hasSource ?metadata .
48
						?metadata dcterms:identifier ?pid . 
49
						
50
				 	} 
51
				 ]]>
52
			</value>
53
		</constructor-arg>
54
		<!--property name="multivalue" value="false" /-->
55
	</bean>
56
	
57
	<bean id="annotation.characteristic" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
58
		<constructor-arg name="name" value="characteristic_sm" />
59
		<constructor-arg name="query">
60
			<value>
61
				<![CDATA[
62
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
63
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
64
				PREFIX owl: <http://www.w3.org/2002/07/owl#> 
65
				PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#> 
66
				PREFIX oa: <http://www.w3.org/ns/oa#>
67
				PREFIX dcterms: <http://purl.org/dc/terms/>
68

    
69
				SELECT ?characteristic_sm ?pid
70
				FROM <$GRAPH_NAME>
71
				WHERE { 
72
						
73
						?measurement rdf:type oboe-core:Measurement .
74
						?measurement rdf:type ?restriction .
75
						?restriction owl:onProperty oboe-core:ofCharacteristic .
76
						?restriction owl:allValuesFrom ?characteristic .
77
						?characteristic rdfs:subClassOf+ ?characteristic_sm .
78
						?characteristic_sm rdfs:subClassOf oboe-core:Characteristic .
79
						
80
						?annotation oa:hasBody ?measurement .												
81
						?annotation oa:hasTarget ?target .
82
						?target oa:hasSource ?metadata .
83
						?metadata dcterms:identifier ?pid . 
84
						
85
				 	} 
86
				 ]]>
87
			</value>
88
		</constructor-arg>
89
		<!--property name="multivalue" value="false" /-->
90
	</bean>
91
	
92
	<bean id="annotation.creator" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
93
		<constructor-arg name="name" value="creator_sm" />
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 oa: <http://www.w3.org/ns/oa#>				
100
				PREFIX dcterms: <http://purl.org/dc/terms/>
101
				PREFIX prov: <http://www.w3.org/ns/prov#>
102
				PREFIX foaf: <http://xmlns.com/foaf/0.1/>
103

    
104
				SELECT ?creator_sm ?pid
105
				FROM <$GRAPH_NAME>
106
				WHERE { 
107
								
108
						?metadata dcterms:identifier ?pid .
109
						?metadata prov:wasAttributedTo ?person .
110
						?person dcterms:identifier ?creator_sm .
111
						
112
				 	} 
113
				 ]]>
114
			</value>
115
		</constructor-arg>
116
		<!--property name="multivalue" value="false" /-->
117
	</bean>
118
	
119
	<bean id="prov.wasDerivedFrom" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
120
		<constructor-arg name="name" value="wasDerivedFrom" />
121
		<constructor-arg name="query">
122
			<value>
123
				<![CDATA[
124
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
125
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
126
				PREFIX owl: <http://www.w3.org/2002/07/owl#> 
127
				PREFIX prov: <http://www.w3.org/ns/prov#> 
128
				PREFIX ore: <http://www.openarchives.org/ore/terms/> 
129
				PREFIX dcterms: <http://purl.org/dc/terms/>
130

    
131
				SELECT (str(?pidValue) as ?pid) (str(?wasDerivedFromValue) as ?wasDerivedFrom)
132
				FROM <$GRAPH_NAME>
133
				WHERE { 
134
						
135
					?derived_data		prov:wasDerivedFrom	?primary_data .
136
					?derived_data		dcterms:identifier 	?pidValue . 
137
					?primary_data		dcterms:identifier 	?wasDerivedFromValue .
138
						
139
				 	} 
140
				 ]]>
141
			</value>
142
		</constructor-arg>
143
	</bean>
144
	
145
	<bean id="prov.wasGeneratedBy" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
146
		<constructor-arg name="name" value="wasGeneratedBy" />
147
		<constructor-arg name="query">
148
			<value>
149
				<![CDATA[
150
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
151
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
152
				PREFIX owl: <http://www.w3.org/2002/07/owl#> 
153
				PREFIX prov: <http://www.w3.org/ns/prov#> 
154
				PREFIX ore: <http://www.openarchives.org/ore/terms/> 
155
				PREFIX dcterms: <http://purl.org/dc/terms/>
156

    
157
				SELECT (str(?pidValue) as ?pid) (str(?wasGeneratedByValue) as ?wasGeneratedBy)
158
				FROM <$GRAPH_NAME>
159
				WHERE { 
160
						
161
					?result			prov:wasGeneratedBy	?activity .
162
					?result			dcterms:identifier	?pidValue . 
163
					?activity		dcterms:identifier	?wasGeneratedByValue .
164
						
165
				 	} 
166
				 ]]>
167
			</value>
168
		</constructor-arg>
169
	</bean>
170
	
171
	<bean id="prov.wasInformedBy" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
172
		<constructor-arg name="name" value="wasInformedBy" />
173
		<constructor-arg name="query">
174
			<value>
175
				<![CDATA[
176
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
177
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
178
				PREFIX owl: <http://www.w3.org/2002/07/owl#> 
179
				PREFIX prov: <http://www.w3.org/ns/prov#> 
180
				PREFIX ore: <http://www.openarchives.org/ore/terms/> 
181
				PREFIX dcterms: <http://purl.org/dc/terms/>
182

    
183
				SELECT (str(?pidValue) as ?pid) (str(?wasInformedByValue) as ?wasInformedBy)
184
				FROM <$GRAPH_NAME>
185
				WHERE { 
186
						
187
					?activity				prov:wasInformedBy	?previousActivity .
188
					?activity				dcterms:identifier	?pidValue . 
189
					?previousActivity		dcterms:identifier	?wasInformedByValue .
190
						
191
				 	} 
192
				 ]]>
193
			</value>
194
		</constructor-arg>
195
	</bean>
196
	
197
	<bean id="prov.used" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
198
		<constructor-arg name="name" value="used" />
199
		<constructor-arg name="query">
200
			<value>
201
				<![CDATA[
202
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
203
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
204
				PREFIX owl: <http://www.w3.org/2002/07/owl#> 
205
				PREFIX prov: <http://www.w3.org/ns/prov#> 
206
				PREFIX ore: <http://www.openarchives.org/ore/terms/> 
207
				PREFIX dcterms: <http://purl.org/dc/terms/>
208

    
209
				SELECT (str(?pidValue) as ?pid) (str(?usedValue) as ?used)
210
				FROM <$GRAPH_NAME>
211
				WHERE { 
212
						
213
					?activity		prov:used			?data .
214
					?activity		dcterms:identifier	?pidValue . 
215
					?data			dcterms:identifier	?usedValue .
216
						
217
				 	} 
218
				 ]]>
219
			</value>
220
		</constructor-arg>
221
	</bean>
222

    
223
</beans>
(7-7/12)