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 10062 tao
	<bean id="rdfXmlSubprocessor" class="edu.ucsb.nceas.metacat.index.annotation.MetacatRdfXmlSubprocessor">
7 9018 leinfelder
		<property name="matchDocuments">
8
			<list>
9
				<value>http://www.w3.org/TR/rdf-syntax-grammar</value>
10
				<value>http://www.openarchives.org/ore/terms</value>
11
			</list>
12
		</property>
13 8692 leinfelder
		<property name="fieldList">
14
			<list>
15 8708 leinfelder
				<ref bean="annotation.standard" />
16
				<ref bean="annotation.characteristic" />
17 8719 leinfelder
				<ref bean="annotation.creator" />
18 8692 leinfelder
			</list>
19
		</property>
20
	</bean>
21
22 8973 leinfelder
	<bean id="annotation.standard" class="org.dataone.cn.indexer.annotation.SparqlField">
23 8701 leinfelder
		<constructor-arg name="name" value="standard_sm" />
24 8692 leinfelder
		<constructor-arg name="query">
25
			<value>
26
				<![CDATA[
27
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
28
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
29
				PREFIX owl: <http://www.w3.org/2002/07/owl#>
30
				PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#>
31
				PREFIX oa: <http://www.w3.org/ns/oa#>
32
				PREFIX dcterms: <http://purl.org/dc/terms/>
33
34 8701 leinfelder
				SELECT ?standard_sm ?pid
35 8692 leinfelder
				FROM <$GRAPH_NAME>
36
				WHERE {
37
38
						?measurement rdf:type oboe-core:Measurement .
39
						?measurement rdf:type ?restriction .
40 8701 leinfelder
						?restriction owl:onProperty oboe-core:usesStandard .
41
						?restriction owl:allValuesFrom ?standard .
42
						?standard rdfs:subClassOf+ ?standard_sm .
43
						?standard_sm rdfs:subClassOf oboe-core:Standard .
44 8692 leinfelder
45 8701 leinfelder
						?annotation oa:hasBody ?measurement .
46 8692 leinfelder
						?annotation oa:hasTarget ?target .
47
						?target oa:hasSource ?metadata .
48
						?metadata dcterms:identifier ?pid .
49
50
				 	}
51
				 ]]>
52
			</value>
53
		</constructor-arg>
54
		<!--property name="multivalue" value="false" /-->
55
	</bean>
56 8708 leinfelder
57 8973 leinfelder
	<bean id="annotation.characteristic" class="org.dataone.cn.indexer.annotation.SparqlField">
58 8708 leinfelder
		<constructor-arg name="name" value="characteristic_sm" />
59
		<constructor-arg name="query">
60
			<value>
61
				<![CDATA[
62
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
63
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
64
				PREFIX owl: <http://www.w3.org/2002/07/owl#>
65
				PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#>
66
				PREFIX oa: <http://www.w3.org/ns/oa#>
67
				PREFIX dcterms: <http://purl.org/dc/terms/>
68 8692 leinfelder
69 8708 leinfelder
				SELECT ?characteristic_sm ?pid
70
				FROM <$GRAPH_NAME>
71
				WHERE {
72
73
						?measurement rdf:type oboe-core:Measurement .
74
						?measurement rdf:type ?restriction .
75
						?restriction owl:onProperty oboe-core:ofCharacteristic .
76
						?restriction owl:allValuesFrom ?characteristic .
77
						?characteristic rdfs:subClassOf+ ?characteristic_sm .
78
						?characteristic_sm rdfs:subClassOf oboe-core:Characteristic .
79
80
						?annotation oa:hasBody ?measurement .
81
						?annotation oa:hasTarget ?target .
82
						?target oa:hasSource ?metadata .
83
						?metadata dcterms:identifier ?pid .
84
85
				 	}
86
				 ]]>
87
			</value>
88
		</constructor-arg>
89
		<!--property name="multivalue" value="false" /-->
90
	</bean>
91 8719 leinfelder
92 8973 leinfelder
	<bean id="annotation.creator" class="org.dataone.cn.indexer.annotation.SparqlField">
93 8719 leinfelder
		<constructor-arg name="name" value="creator_sm" />
94
		<constructor-arg name="query">
95
			<value>
96
				<![CDATA[
97
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
98
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
99
				PREFIX oa: <http://www.w3.org/ns/oa#>
100
				PREFIX dcterms: <http://purl.org/dc/terms/>
101
				PREFIX prov: <http://www.w3.org/ns/prov#>
102
				PREFIX foaf: <http://xmlns.com/foaf/0.1/>
103 8708 leinfelder
104 8719 leinfelder
				SELECT ?creator_sm ?pid
105
				FROM <$GRAPH_NAME>
106
				WHERE {
107
108
						?metadata dcterms:identifier ?pid .
109
						?metadata prov:wasAttributedTo ?person .
110
						?person dcterms:identifier ?creator_sm .
111
112
				 	}
113
				 ]]>
114
			</value>
115
		</constructor-arg>
116
		<!--property name="multivalue" value="false" /-->
117
	</bean>
118 8839 walker
119 8692 leinfelder
</beans>