Revision 10071
Added by Jing Tao over 7 years ago
application-context-oa.xml | ||
---|---|---|
15 | 15 |
<ref bean="annotation.standard" /> |
16 | 16 |
<ref bean="annotation.characteristic" /> |
17 | 17 |
<ref bean="annotation.creator" /> |
18 |
<ref bean="prov.wasDerivedFrom" /> |
|
19 |
<ref bean="prov.wasGeneratedBy" /> |
|
20 |
<ref bean="prov.wasInformedBy" /> |
|
21 |
<ref bean="prov.used" /> |
|
22 | 18 |
</list> |
23 | 19 |
</property> |
24 | 20 |
</bean> |
... | ... | |
120 | 116 |
<!--property name="multivalue" value="false" /--> |
121 | 117 |
</bean> |
122 | 118 |
|
123 |
<bean id="prov.wasDerivedFrom" class="org.dataone.cn.indexer.annotation.SparqlField"> |
|
124 |
<constructor-arg name="name" value="prov_wasDerivedFrom" /> |
|
125 |
<constructor-arg name="query"> |
|
126 |
<value> |
|
127 |
<![CDATA[ |
|
128 |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> |
|
129 |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
|
130 |
PREFIX owl: <http://www.w3.org/2002/07/owl#> |
|
131 |
PREFIX prov: <http://www.w3.org/ns/prov#> |
|
132 |
PREFIX ore: <http://www.openarchives.org/ore/terms/> |
|
133 |
PREFIX dcterms: <http://purl.org/dc/terms/> |
|
134 |
|
|
135 |
SELECT (str(?pidValue) as ?pid) (str(?wasDerivedFromValue) as ?prov_wasDerivedFrom) |
|
136 |
FROM <$GRAPH_NAME> |
|
137 |
WHERE { |
|
138 |
|
|
139 |
?derived_data prov:wasDerivedFrom ?primary_data . |
|
140 |
?derived_data dcterms:identifier ?pidValue . |
|
141 |
?primary_data dcterms:identifier ?wasDerivedFromValue . |
|
142 |
|
|
143 |
} |
|
144 |
]]> |
|
145 |
</value> |
|
146 |
</constructor-arg> |
|
147 |
</bean> |
|
148 |
|
|
149 |
<bean id="prov.wasGeneratedBy" class="org.dataone.cn.indexer.annotation.SparqlField"> |
|
150 |
<constructor-arg name="name" value="prov_wasGeneratedBy" /> |
|
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 ore: <http://www.openarchives.org/ore/terms/> |
|
159 |
PREFIX dcterms: <http://purl.org/dc/terms/> |
|
160 |
|
|
161 |
SELECT (str(?pidValue) as ?pid) (str(?wasGeneratedByValue) as ?prov_wasGeneratedBy) |
|
162 |
FROM <$GRAPH_NAME> |
|
163 |
WHERE { |
|
164 |
|
|
165 |
?result prov:wasGeneratedBy ?activity . |
|
166 |
?result dcterms:identifier ?pidValue . |
|
167 |
?activity dcterms:identifier ?wasGeneratedByValue . |
|
168 |
|
|
169 |
} |
|
170 |
]]> |
|
171 |
</value> |
|
172 |
</constructor-arg> |
|
173 |
</bean> |
|
174 |
|
|
175 |
<bean id="prov.wasInformedBy" class="org.dataone.cn.indexer.annotation.SparqlField"> |
|
176 |
<constructor-arg name="name" value="prov_wasInformedBy" /> |
|
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 ore: <http://www.openarchives.org/ore/terms/> |
|
185 |
PREFIX dcterms: <http://purl.org/dc/terms/> |
|
186 |
|
|
187 |
SELECT (str(?pidValue) as ?pid) (str(?wasInformedByValue) as ?prov_wasInformedBy) |
|
188 |
FROM <$GRAPH_NAME> |
|
189 |
WHERE { |
|
190 |
|
|
191 |
?activity prov:wasInformedBy ?previousActivity . |
|
192 |
?activity dcterms:identifier ?pidValue . |
|
193 |
?previousActivity dcterms:identifier ?wasInformedByValue . |
|
194 |
|
|
195 |
} |
|
196 |
]]> |
|
197 |
</value> |
|
198 |
</constructor-arg> |
|
199 |
</bean> |
|
200 |
|
|
201 |
<bean id="prov.used" class="org.dataone.cn.indexer.annotation.SparqlField"> |
|
202 |
<constructor-arg name="name" value="prov_used" /> |
|
203 |
<constructor-arg name="query"> |
|
204 |
<value> |
|
205 |
<![CDATA[ |
|
206 |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> |
|
207 |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
|
208 |
PREFIX owl: <http://www.w3.org/2002/07/owl#> |
|
209 |
PREFIX prov: <http://www.w3.org/ns/prov#> |
|
210 |
PREFIX ore: <http://www.openarchives.org/ore/terms/> |
|
211 |
PREFIX dcterms: <http://purl.org/dc/terms/> |
|
212 |
|
|
213 |
SELECT (str(?pidValue) as ?pid) (str(?usedValue) as ?prov_used) |
|
214 |
FROM <$GRAPH_NAME> |
|
215 |
WHERE { |
|
216 |
|
|
217 |
?activity prov:used ?data . |
|
218 |
?activity dcterms:identifier ?pidValue . |
|
219 |
?data dcterms:identifier ?usedValue . |
|
220 |
|
|
221 |
} |
|
222 |
]]> |
|
223 |
</value> |
|
224 |
</constructor-arg> |
|
225 |
</bean> |
|
226 |
|
|
227 | 119 |
</beans> |
Also available in: Unified diff
Merge the code for rdfxml subprocessor from d1_cn_index_processor to metacat.