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 8781 leinfelder
			value="/d100:systemMetadata/formatId[text()='http://www.w3.org/TR/rdf-syntax-grammar'] | /d100: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
		<constructor-arg name="name" value="wasDerivedFrom_sm" />
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 prov: <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_sm
33
				FROM <$GRAPH_NAME>
34
				WHERE {
35
36
					?primary_data		ore:isDocumentedBy	?primary_metadata .
37
					?derived_data		prov:wasDerivedFrom	?primary_data .
38
					?derived_data		ore:isDocumentedBy	?derived_metadata .
39
					?derived_metadata	dcterms:identifier 	?pid .
40
					?primary_metadata	dcterms:identifier 	?wasDerivedFrom_sm .
41
42
				 	}
43
				 ]]>
44
			</value>
45
		</constructor-arg>
46
	</bean>
47
48 8708 leinfelder
	<bean id="annotation.standard" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
49 8701 leinfelder
		<constructor-arg name="name" value="standard_sm" />
50 8692 leinfelder
		<constructor-arg name="query">
51
			<value>
52
				<![CDATA[
53
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
54
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
55
				PREFIX owl: <http://www.w3.org/2002/07/owl#>
56
				PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#>
57
				PREFIX oa: <http://www.w3.org/ns/oa#>
58
				PREFIX dcterms: <http://purl.org/dc/terms/>
59
60 8701 leinfelder
				SELECT ?standard_sm ?pid
61 8692 leinfelder
				FROM <$GRAPH_NAME>
62
				WHERE {
63
64
						?measurement rdf:type oboe-core:Measurement .
65
						?measurement rdf:type ?restriction .
66 8701 leinfelder
						?restriction owl:onProperty oboe-core:usesStandard .
67
						?restriction owl:allValuesFrom ?standard .
68
						?standard rdfs:subClassOf+ ?standard_sm .
69
						?standard_sm rdfs:subClassOf oboe-core:Standard .
70 8692 leinfelder
71 8701 leinfelder
						?annotation oa:hasBody ?measurement .
72 8692 leinfelder
						?annotation oa:hasTarget ?target .
73
						?target oa:hasSource ?metadata .
74
						?metadata dcterms:identifier ?pid .
75
76
				 	}
77
				 ]]>
78
			</value>
79
		</constructor-arg>
80
		<!--property name="multivalue" value="false" /-->
81
	</bean>
82 8708 leinfelder
83
	<bean id="annotation.characteristic" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
84
		<constructor-arg name="name" value="characteristic_sm" />
85
		<constructor-arg name="query">
86
			<value>
87
				<![CDATA[
88
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
89
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
90
				PREFIX owl: <http://www.w3.org/2002/07/owl#>
91
				PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#>
92
				PREFIX oa: <http://www.w3.org/ns/oa#>
93
				PREFIX dcterms: <http://purl.org/dc/terms/>
94 8692 leinfelder
95 8708 leinfelder
				SELECT ?characteristic_sm ?pid
96
				FROM <$GRAPH_NAME>
97
				WHERE {
98
99
						?measurement rdf:type oboe-core:Measurement .
100
						?measurement rdf:type ?restriction .
101
						?restriction owl:onProperty oboe-core:ofCharacteristic .
102
						?restriction owl:allValuesFrom ?characteristic .
103
						?characteristic rdfs:subClassOf+ ?characteristic_sm .
104
						?characteristic_sm rdfs:subClassOf oboe-core:Characteristic .
105
106
						?annotation oa:hasBody ?measurement .
107
						?annotation oa:hasTarget ?target .
108
						?target oa:hasSource ?metadata .
109
						?metadata dcterms:identifier ?pid .
110
111
				 	}
112
				 ]]>
113
			</value>
114
		</constructor-arg>
115
		<!--property name="multivalue" value="false" /-->
116
	</bean>
117 8719 leinfelder
118
	<bean id="annotation.creator" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
119
		<constructor-arg name="name" value="creator_sm" />
120
		<constructor-arg name="query">
121
			<value>
122
				<![CDATA[
123
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
124
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
125
				PREFIX oa: <http://www.w3.org/ns/oa#>
126
				PREFIX dcterms: <http://purl.org/dc/terms/>
127
				PREFIX prov: <http://www.w3.org/ns/prov#>
128
				PREFIX foaf: <http://xmlns.com/foaf/0.1/>
129 8708 leinfelder
130 8719 leinfelder
				SELECT ?creator_sm ?pid
131
				FROM <$GRAPH_NAME>
132
				WHERE {
133
134
						?metadata dcterms:identifier ?pid .
135
						?metadata prov:wasAttributedTo ?person .
136
						?person dcterms:identifier ?creator_sm .
137
138
				 	}
139
				 ]]>
140
			</value>
141
		</constructor-arg>
142
		<!--property name="multivalue" value="false" /-->
143
	</bean>
144
145 8692 leinfelder
</beans>