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 |
|
|
<property name="matchDocument"
|
8 |
|
|
value="/d100:systemMetadata/formatId[text()='http://www.w3.org/TR/rdf-syntax-grammar']" />
|
9 |
|
|
<property name="fieldList">
|
10 |
|
|
<list>
|
11 |
8708
|
leinfelder
|
<ref bean="annotation.standard" />
|
12 |
|
|
<ref bean="annotation.characteristic" />
|
13 |
8719
|
leinfelder
|
<ref bean="annotation.creator" />
|
14 |
8692
|
leinfelder
|
</list>
|
15 |
|
|
</property>
|
16 |
|
|
</bean>
|
17 |
|
|
|
18 |
8708
|
leinfelder
|
<bean id="annotation.standard" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
|
19 |
8701
|
leinfelder
|
<constructor-arg name="name" value="standard_sm" />
|
20 |
8692
|
leinfelder
|
<constructor-arg name="query">
|
21 |
|
|
<value>
|
22 |
|
|
<![CDATA[
|
23 |
|
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
24 |
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
25 |
|
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
26 |
|
|
PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#>
|
27 |
|
|
PREFIX oa: <http://www.w3.org/ns/oa#>
|
28 |
|
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
29 |
|
|
|
30 |
8701
|
leinfelder
|
SELECT ?standard_sm ?pid
|
31 |
8692
|
leinfelder
|
FROM <$GRAPH_NAME>
|
32 |
|
|
WHERE {
|
33 |
|
|
|
34 |
|
|
?measurement rdf:type oboe-core:Measurement .
|
35 |
|
|
?measurement rdf:type ?restriction .
|
36 |
8701
|
leinfelder
|
?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 |
8692
|
leinfelder
|
|
41 |
8701
|
leinfelder
|
?annotation oa:hasBody ?measurement .
|
42 |
8692
|
leinfelder
|
?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 |
8708
|
leinfelder
|
|
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 |
8692
|
leinfelder
|
|
65 |
8708
|
leinfelder
|
SELECT ?characteristic_sm ?pid
|
66 |
|
|
FROM <$GRAPH_NAME>
|
67 |
|
|
WHERE {
|
68 |
|
|
|
69 |
|
|
?measurement rdf:type oboe-core:Measurement .
|
70 |
|
|
?measurement rdf:type ?restriction .
|
71 |
|
|
?restriction owl:onProperty oboe-core:ofCharacteristic .
|
72 |
|
|
?restriction owl:allValuesFrom ?characteristic .
|
73 |
|
|
?characteristic rdfs:subClassOf+ ?characteristic_sm .
|
74 |
|
|
?characteristic_sm rdfs:subClassOf oboe-core:Characteristic .
|
75 |
|
|
|
76 |
|
|
?annotation oa:hasBody ?measurement .
|
77 |
|
|
?annotation oa:hasTarget ?target .
|
78 |
|
|
?target oa:hasSource ?metadata .
|
79 |
|
|
?metadata dcterms:identifier ?pid .
|
80 |
|
|
|
81 |
|
|
}
|
82 |
|
|
]]>
|
83 |
|
|
</value>
|
84 |
|
|
</constructor-arg>
|
85 |
|
|
<!--property name="multivalue" value="false" /-->
|
86 |
|
|
</bean>
|
87 |
8719
|
leinfelder
|
|
88 |
|
|
<bean id="annotation.creator" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
|
89 |
|
|
<constructor-arg name="name" value="creator_sm" />
|
90 |
|
|
<constructor-arg name="query">
|
91 |
|
|
<value>
|
92 |
|
|
<![CDATA[
|
93 |
|
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
94 |
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
95 |
|
|
PREFIX oa: <http://www.w3.org/ns/oa#>
|
96 |
|
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
97 |
|
|
PREFIX prov: <http://www.w3.org/ns/prov#>
|
98 |
|
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
99 |
8708
|
leinfelder
|
|
100 |
8719
|
leinfelder
|
SELECT ?creator_sm ?pid
|
101 |
|
|
FROM <$GRAPH_NAME>
|
102 |
|
|
WHERE {
|
103 |
|
|
|
104 |
|
|
?metadata dcterms:identifier ?pid .
|
105 |
|
|
?metadata prov:wasAttributedTo ?person .
|
106 |
|
|
?person dcterms:identifier ?creator_sm .
|
107 |
|
|
|
108 |
|
|
}
|
109 |
|
|
]]>
|
110 |
|
|
</value>
|
111 |
|
|
</constructor-arg>
|
112 |
|
|
<!--property name="multivalue" value="false" /-->
|
113 |
|
|
</bean>
|
114 |
|
|
|
115 |
8692
|
leinfelder
|
</beans>
|