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
				<ref bean="annotation.measurement" />
12
			</list>
13
		</property>
14
	</bean>
15
16
	<bean id="annotation.measurement" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
17 8701 leinfelder
		<constructor-arg name="name" value="standard_sm" />
18 8692 leinfelder
		<constructor-arg name="query">
19
			<value>
20
				<![CDATA[
21
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
22
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
23
				PREFIX owl: <http://www.w3.org/2002/07/owl#>
24
				PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#>
25
				PREFIX oa: <http://www.w3.org/ns/oa#>
26
				PREFIX dcterms: <http://purl.org/dc/terms/>
27
				PREFIX foaf: <http://xmlns.com/foaf/0.1/>
28
29 8701 leinfelder
				SELECT ?standard_sm ?pid
30 8692 leinfelder
				FROM <$GRAPH_NAME>
31
				WHERE {
32
33
						?measurement rdf:type oboe-core:Measurement .
34
						?measurement rdf:type ?restriction .
35 8701 leinfelder
						?restriction owl:onProperty oboe-core:usesStandard .
36
						?restriction owl:allValuesFrom ?standard .
37
						?standard rdfs:subClassOf+ ?standard_sm .
38
						?standard_sm rdfs:subClassOf oboe-core:Standard .
39 8692 leinfelder
40 8701 leinfelder
						?annotation oa:hasBody ?measurement .
41 8692 leinfelder
						?annotation oa:hasTarget ?target .
42
						?target oa:hasSource ?metadata .
43
						?metadata dcterms:identifier ?pid .
44
45
				 	}
46
				 ]]>
47
			</value>
48
		</constructor-arg>
49
		<!--property name="multivalue" value="false" /-->
50
	</bean>
51
52
</beans>