Project

General

Profile

1
<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
		<constructor-arg name="name" value="measurement_sm" />
18
		<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 ao: <http://purl.org/ao/>
26
				PREFIX dcterms: <http://purl.org/dc/terms/>
27
				PREFIX pav: <http://purl.org/pav/>
28
				PREFIX foaf: <http://xmlns.com/foaf/0.1/>
29

    
30
				SELECT ?measurement_sm ?pid
31
				FROM <$GRAPH_NAME>
32
				WHERE { 
33

    
34
						?measurement_sm rdf:type oboe-core:Measurement .
35
						?measurement_sm rdf:type ?restriction .
36
						?restriction owl:onProperty oboe-core:ofCharacteristic .
37
						?restriction owl:allValuesFrom ?characteristic .
38
						?characteristic rdfs:subClassOf+ ?allChar .
39
						?allChar rdfs:subClassOf oboe-core:Characteristic .
40
						
41
						OPTIONAL { 
42
							?measurement_sm rdf:type ?restriction2 .
43
							?restriction2 owl:onProperty oboe-core:usesStandard .
44
							?restriction2 owl:allValuesFrom ?standard .
45
						}
46
						
47
						?annotation ao:context ?measurement_sm .
48
						?annotation ao:annotatesResource ?metadata .
49
						?metadata dcterms:identifier ?pid . 
50
						
51
						?annotation pav:createdBy ?person .
52
						?person foaf:name ?name .
53
						?annotation pav:createdOn ?date .
54
				 	} 
55
				 ]]>
56
			</value>
57
		</constructor-arg>
58
		<!--property name="multivalue" value="false" /-->
59
	</bean>
60

    
61
</beans>
(1-1/11)