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="/d100:systemMetadata/formatId[text()='http://www.w3.org/TR/rdf-syntax-grammar']" />
|
9
|
<property name="fieldList">
|
10
|
<list>
|
11
|
<ref bean="annotation.standard" />
|
12
|
<ref bean="annotation.characteristic" />
|
13
|
</list>
|
14
|
</property>
|
15
|
</bean>
|
16
|
|
17
|
<bean id="annotation.standard" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
|
18
|
<constructor-arg name="name" value="standard_sm" />
|
19
|
<constructor-arg name="query">
|
20
|
<value>
|
21
|
<![CDATA[
|
22
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
23
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
24
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
25
|
PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#>
|
26
|
PREFIX oa: <http://www.w3.org/ns/oa#>
|
27
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
28
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
29
|
|
30
|
SELECT ?standard_sm ?pid
|
31
|
FROM <$GRAPH_NAME>
|
32
|
WHERE {
|
33
|
|
34
|
?measurement rdf:type oboe-core:Measurement .
|
35
|
?measurement rdf:type ?restriction .
|
36
|
?restriction owl:onProperty oboe-core:usesStandard .
|
37
|
?restriction owl:allValuesFrom ?standard .
|
38
|
?standard rdfs:subClassOf+ ?standard_sm .
|
39
|
?standard_sm rdfs:subClassOf oboe-core:Standard .
|
40
|
|
41
|
?annotation oa:hasBody ?measurement .
|
42
|
?annotation oa:hasTarget ?target .
|
43
|
?target oa:hasSource ?metadata .
|
44
|
?metadata dcterms:identifier ?pid .
|
45
|
|
46
|
}
|
47
|
]]>
|
48
|
</value>
|
49
|
</constructor-arg>
|
50
|
<!--property name="multivalue" value="false" /-->
|
51
|
</bean>
|
52
|
|
53
|
<bean id="annotation.characteristic" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
|
54
|
<constructor-arg name="name" value="characteristic_sm" />
|
55
|
<constructor-arg name="query">
|
56
|
<value>
|
57
|
<![CDATA[
|
58
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
59
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
60
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
61
|
PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#>
|
62
|
PREFIX oa: <http://www.w3.org/ns/oa#>
|
63
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
64
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
65
|
|
66
|
SELECT ?characteristic_sm ?pid
|
67
|
FROM <$GRAPH_NAME>
|
68
|
WHERE {
|
69
|
|
70
|
?measurement rdf:type oboe-core:Measurement .
|
71
|
?measurement rdf:type ?restriction .
|
72
|
?restriction owl:onProperty oboe-core:ofCharacteristic .
|
73
|
?restriction owl:allValuesFrom ?characteristic .
|
74
|
?characteristic rdfs:subClassOf+ ?characteristic_sm .
|
75
|
?characteristic_sm rdfs:subClassOf oboe-core:Characteristic .
|
76
|
|
77
|
?annotation oa:hasBody ?measurement .
|
78
|
?annotation oa:hasTarget ?target .
|
79
|
?target oa:hasSource ?metadata .
|
80
|
?metadata dcterms:identifier ?pid .
|
81
|
|
82
|
}
|
83
|
]]>
|
84
|
</value>
|
85
|
</constructor-arg>
|
86
|
<!--property name="multivalue" value="false" /-->
|
87
|
</bean>
|
88
|
|
89
|
</beans>
|