1 |
8692
|
leinfelder
|
<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 |
9018
|
leinfelder
|
<property name="matchDocuments">
|
8 |
|
|
<list>
|
9 |
|
|
<value>http://www.w3.org/TR/rdf-syntax-grammar</value>
|
10 |
|
|
<value>http://www.openarchives.org/ore/terms</value>
|
11 |
|
|
</list>
|
12 |
|
|
</property>
|
13 |
8692
|
leinfelder
|
<property name="fieldList">
|
14 |
|
|
<list>
|
15 |
8708
|
leinfelder
|
<ref bean="annotation.standard" />
|
16 |
|
|
<ref bean="annotation.characteristic" />
|
17 |
8719
|
leinfelder
|
<ref bean="annotation.creator" />
|
18 |
8781
|
leinfelder
|
<ref bean="prov.wasDerivedFrom" />
|
19 |
8839
|
walker
|
<ref bean="prov.wasGeneratedBy" />
|
20 |
|
|
<ref bean="prov.wasInformedBy" />
|
21 |
|
|
<ref bean="prov.used" />
|
22 |
8692
|
leinfelder
|
</list>
|
23 |
|
|
</property>
|
24 |
|
|
</bean>
|
25 |
|
|
|
26 |
8973
|
leinfelder
|
<bean id="annotation.standard" class="org.dataone.cn.indexer.annotation.SparqlField">
|
27 |
8701
|
leinfelder
|
<constructor-arg name="name" value="standard_sm" />
|
28 |
8692
|
leinfelder
|
<constructor-arg name="query">
|
29 |
|
|
<value>
|
30 |
|
|
<![CDATA[
|
31 |
|
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
32 |
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
33 |
|
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
34 |
|
|
PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#>
|
35 |
|
|
PREFIX oa: <http://www.w3.org/ns/oa#>
|
36 |
|
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
37 |
|
|
|
38 |
8701
|
leinfelder
|
SELECT ?standard_sm ?pid
|
39 |
8692
|
leinfelder
|
FROM <$GRAPH_NAME>
|
40 |
|
|
WHERE {
|
41 |
|
|
|
42 |
|
|
?measurement rdf:type oboe-core:Measurement .
|
43 |
|
|
?measurement rdf:type ?restriction .
|
44 |
8701
|
leinfelder
|
?restriction owl:onProperty oboe-core:usesStandard .
|
45 |
|
|
?restriction owl:allValuesFrom ?standard .
|
46 |
|
|
?standard rdfs:subClassOf+ ?standard_sm .
|
47 |
|
|
?standard_sm rdfs:subClassOf oboe-core:Standard .
|
48 |
8692
|
leinfelder
|
|
49 |
8701
|
leinfelder
|
?annotation oa:hasBody ?measurement .
|
50 |
8692
|
leinfelder
|
?annotation oa:hasTarget ?target .
|
51 |
|
|
?target oa:hasSource ?metadata .
|
52 |
|
|
?metadata dcterms:identifier ?pid .
|
53 |
|
|
|
54 |
|
|
}
|
55 |
|
|
]]>
|
56 |
|
|
</value>
|
57 |
|
|
</constructor-arg>
|
58 |
|
|
<!--property name="multivalue" value="false" /-->
|
59 |
|
|
</bean>
|
60 |
8708
|
leinfelder
|
|
61 |
8973
|
leinfelder
|
<bean id="annotation.characteristic" class="org.dataone.cn.indexer.annotation.SparqlField">
|
62 |
8708
|
leinfelder
|
<constructor-arg name="name" value="characteristic_sm" />
|
63 |
|
|
<constructor-arg name="query">
|
64 |
|
|
<value>
|
65 |
|
|
<![CDATA[
|
66 |
|
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
67 |
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
68 |
|
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
69 |
|
|
PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#>
|
70 |
|
|
PREFIX oa: <http://www.w3.org/ns/oa#>
|
71 |
|
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
72 |
8692
|
leinfelder
|
|
73 |
8708
|
leinfelder
|
SELECT ?characteristic_sm ?pid
|
74 |
|
|
FROM <$GRAPH_NAME>
|
75 |
|
|
WHERE {
|
76 |
|
|
|
77 |
|
|
?measurement rdf:type oboe-core:Measurement .
|
78 |
|
|
?measurement rdf:type ?restriction .
|
79 |
|
|
?restriction owl:onProperty oboe-core:ofCharacteristic .
|
80 |
|
|
?restriction owl:allValuesFrom ?characteristic .
|
81 |
|
|
?characteristic rdfs:subClassOf+ ?characteristic_sm .
|
82 |
|
|
?characteristic_sm rdfs:subClassOf oboe-core:Characteristic .
|
83 |
|
|
|
84 |
|
|
?annotation oa:hasBody ?measurement .
|
85 |
|
|
?annotation oa:hasTarget ?target .
|
86 |
|
|
?target oa:hasSource ?metadata .
|
87 |
|
|
?metadata dcterms:identifier ?pid .
|
88 |
|
|
|
89 |
|
|
}
|
90 |
|
|
]]>
|
91 |
|
|
</value>
|
92 |
|
|
</constructor-arg>
|
93 |
|
|
<!--property name="multivalue" value="false" /-->
|
94 |
|
|
</bean>
|
95 |
8719
|
leinfelder
|
|
96 |
8973
|
leinfelder
|
<bean id="annotation.creator" class="org.dataone.cn.indexer.annotation.SparqlField">
|
97 |
8719
|
leinfelder
|
<constructor-arg name="name" value="creator_sm" />
|
98 |
|
|
<constructor-arg name="query">
|
99 |
|
|
<value>
|
100 |
|
|
<![CDATA[
|
101 |
|
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
102 |
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
103 |
|
|
PREFIX oa: <http://www.w3.org/ns/oa#>
|
104 |
|
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
105 |
|
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
106 |
|
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
107 |
8708
|
leinfelder
|
|
108 |
8719
|
leinfelder
|
SELECT ?creator_sm ?pid
|
109 |
|
|
FROM <$GRAPH_NAME>
|
110 |
|
|
WHERE {
|
111 |
|
|
|
112 |
|
|
?metadata dcterms:identifier ?pid .
|
113 |
|
|
?metadata prov:wasAttributedTo ?person .
|
114 |
|
|
?person dcterms:identifier ?creator_sm .
|
115 |
|
|
|
116 |
|
|
}
|
117 |
|
|
]]>
|
118 |
|
|
</value>
|
119 |
|
|
</constructor-arg>
|
120 |
|
|
<!--property name="multivalue" value="false" /-->
|
121 |
|
|
</bean>
|
122 |
8839
|
walker
|
|
123 |
8973
|
leinfelder
|
<bean id="prov.wasDerivedFrom" class="org.dataone.cn.indexer.annotation.SparqlField">
|
124 |
8839
|
walker
|
<constructor-arg name="name" value="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 |
8719
|
leinfelder
|
|
135 |
8839
|
walker
|
SELECT (str(?pidValue) as ?pid) (str(?wasDerivedFromValue) as ?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 |
8973
|
leinfelder
|
<bean id="prov.wasGeneratedBy" class="org.dataone.cn.indexer.annotation.SparqlField">
|
150 |
8839
|
walker
|
<constructor-arg name="name" value="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 ?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 |
8973
|
leinfelder
|
<bean id="prov.wasInformedBy" class="org.dataone.cn.indexer.annotation.SparqlField">
|
176 |
8839
|
walker
|
<constructor-arg name="name" value="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 ?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 |
8973
|
leinfelder
|
<bean id="prov.used" class="org.dataone.cn.indexer.annotation.SparqlField">
|
202 |
8839
|
walker
|
<constructor-arg name="name" value="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 ?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 |
8692
|
leinfelder
|
</beans>
|