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
			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 8692 leinfelder
			</list>
14
		</property>
15
	</bean>
16
17 8708 leinfelder
	<bean id="annotation.standard" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
18 8701 leinfelder
		<constructor-arg name="name" value="standard_sm" />
19 8692 leinfelder
		<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 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
				PREFIX foaf: <http://xmlns.com/foaf/0.1/>
65 8692 leinfelder
66 8708 leinfelder
				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 8692 leinfelder
</beans>