Project

General

Profile

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 8826 leinfelder
			value="/d200:systemMetadata/formatId[text()='http://www.w3.org/TR/rdf-syntax-grammar'] | /d200:systemMetadata/formatId[text()='http://www.openarchives.org/ore/terms']" />
9 8692 leinfelder
		<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 8781 leinfelder
				<ref bean="prov.wasDerivedFrom" />
15
16 8692 leinfelder
			</list>
17
		</property>
18
	</bean>
19
20 8781 leinfelder
	<bean id="prov.wasDerivedFrom" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
21 8837 walker
		<constructor-arg name="name" value="wasDerivedFrom" />
22 8781 leinfelder
		<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 8837 walker
				PREFIX j.0: <http://www.w3.org/ns/prov#>
29 8781 leinfelder
				PREFIX ore: <http://www.openarchives.org/ore/terms/>
30
				PREFIX dcterms: <http://purl.org/dc/terms/>
31
32 8837 walker
				SELECT ?pid ?wasDerivedFrom
33 8781 leinfelder
				FROM <$GRAPH_NAME>
34
				WHERE {
35
36 8837 walker
					?derived_data		j.0:wasDerivedFrom	?primary_data .
37
					?derived_data		dcterms:identifier 	?pid .
38
					?primary_data		dcterms:identifier 	?wasDerivedFrom .
39 8781 leinfelder
40
				 	}
41
				 ]]>
42
			</value>
43
		</constructor-arg>
44
	</bean>
45
46 8708 leinfelder
	<bean id="annotation.standard" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
47 8701 leinfelder
		<constructor-arg name="name" value="standard_sm" />
48 8692 leinfelder
		<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 8701 leinfelder
				SELECT ?standard_sm ?pid
59 8692 leinfelder
				FROM <$GRAPH_NAME>
60
				WHERE {
61
62
						?measurement rdf:type oboe-core:Measurement .
63
						?measurement rdf:type ?restriction .
64 8701 leinfelder
						?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 8692 leinfelder
69 8701 leinfelder
						?annotation oa:hasBody ?measurement .
70 8692 leinfelder
						?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 8708 leinfelder
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 8692 leinfelder
93 8708 leinfelder
				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 8719 leinfelder
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 8708 leinfelder
128 8719 leinfelder
				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 8692 leinfelder
</beans>