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
				
16
			</list>
17
		</property>	
18
	</bean>
19
	
20
	<bean id="prov.wasDerivedFrom" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
21
		<constructor-arg name="name" value="wasDerivedFrom" />
22
		<constructor-arg name="query">
23
			<value>
24
				<![CDATA[
25
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
26
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
27
				PREFIX owl: <http://www.w3.org/2002/07/owl#> 
28
				PREFIX j.0: <http://www.w3.org/ns/prov#> 
29
				PREFIX ore: <http://www.openarchives.org/ore/terms/> 
30
				PREFIX dcterms: <http://purl.org/dc/terms/>
31

    
32
				SELECT ?pid ?wasDerivedFrom
33
				FROM <$GRAPH_NAME>
34
				WHERE { 
35
						
36
					?derived_data		j.0:wasDerivedFrom	?primary_data .
37
					?derived_data		dcterms:identifier 	?pid . 
38
					?primary_data		dcterms:identifier 	?wasDerivedFrom .
39
						
40
				 	} 
41
				 ]]>
42
			</value>
43
		</constructor-arg>
44
	</bean>
45
	
46
	<bean id="annotation.standard" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
47
		<constructor-arg name="name" value="standard_sm" />
48
		<constructor-arg name="query">
49
			<value>
50
				<![CDATA[
51
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
52
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
53
				PREFIX owl: <http://www.w3.org/2002/07/owl#> 
54
				PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#> 
55
				PREFIX oa: <http://www.w3.org/ns/oa#>
56
				PREFIX dcterms: <http://purl.org/dc/terms/>
57

    
58
				SELECT ?standard_sm ?pid
59
				FROM <$GRAPH_NAME>
60
				WHERE { 
61
						
62
						?measurement rdf:type oboe-core:Measurement .
63
						?measurement rdf:type ?restriction .
64
						?restriction owl:onProperty oboe-core:usesStandard .
65
						?restriction owl:allValuesFrom ?standard .
66
						?standard rdfs:subClassOf+ ?standard_sm .
67
						?standard_sm rdfs:subClassOf oboe-core:Standard .
68
						
69
						?annotation oa:hasBody ?measurement .												
70
						?annotation oa:hasTarget ?target .
71
						?target oa:hasSource ?metadata .
72
						?metadata dcterms:identifier ?pid . 
73
						
74
				 	} 
75
				 ]]>
76
			</value>
77
		</constructor-arg>
78
		<!--property name="multivalue" value="false" /-->
79
	</bean>
80
	
81
	<bean id="annotation.characteristic" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
82
		<constructor-arg name="name" value="characteristic_sm" />
83
		<constructor-arg name="query">
84
			<value>
85
				<![CDATA[
86
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
87
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
88
				PREFIX owl: <http://www.w3.org/2002/07/owl#> 
89
				PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#> 
90
				PREFIX oa: <http://www.w3.org/ns/oa#>
91
				PREFIX dcterms: <http://purl.org/dc/terms/>
92

    
93
				SELECT ?characteristic_sm ?pid
94
				FROM <$GRAPH_NAME>
95
				WHERE { 
96
						
97
						?measurement rdf:type oboe-core:Measurement .
98
						?measurement rdf:type ?restriction .
99
						?restriction owl:onProperty oboe-core:ofCharacteristic .
100
						?restriction owl:allValuesFrom ?characteristic .
101
						?characteristic rdfs:subClassOf+ ?characteristic_sm .
102
						?characteristic_sm rdfs:subClassOf oboe-core:Characteristic .
103
						
104
						?annotation oa:hasBody ?measurement .												
105
						?annotation oa:hasTarget ?target .
106
						?target oa:hasSource ?metadata .
107
						?metadata dcterms:identifier ?pid . 
108
						
109
				 	} 
110
				 ]]>
111
			</value>
112
		</constructor-arg>
113
		<!--property name="multivalue" value="false" /-->
114
	</bean>
115
	
116
	<bean id="annotation.creator" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
117
		<constructor-arg name="name" value="creator_sm" />
118
		<constructor-arg name="query">
119
			<value>
120
				<![CDATA[
121
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
122
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
123
				PREFIX oa: <http://www.w3.org/ns/oa#>				
124
				PREFIX dcterms: <http://purl.org/dc/terms/>
125
				PREFIX prov: <http://www.w3.org/ns/prov#>
126
				PREFIX foaf: <http://xmlns.com/foaf/0.1/>
127

    
128
				SELECT ?creator_sm ?pid
129
				FROM <$GRAPH_NAME>
130
				WHERE { 
131
								
132
						?metadata dcterms:identifier ?pid .
133
						?metadata prov:wasAttributedTo ?person .
134
						?person dcterms:identifier ?creator_sm .
135
						
136
				 	} 
137
				 ]]>
138
			</value>
139
		</constructor-arg>
140
		<!--property name="multivalue" value="false" /-->
141
	</bean>
142

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