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="annotatorSubprocessor" class="org.dataone.cn.indexer.annotation.AnnotatorSubprocessor">
7
		
8
		<!-- match any document type -->
9
		<property name="matchDocument"
10
			value="/d200:systemMetadata/formatId[text() != '']" />
11
		<property name="fieldList">
12
			<list>
13
				<ref bean="annotation.expansion" />
14
			</list>
15
		</property>	
16
	</bean>
17
	
18
	<bean id="annotation.expansion" class="org.dataone.cn.indexer.annotation.SparqlField">
19
		<constructor-arg name="name" value="annotation_sm" />
20
		<constructor-arg name="query">
21
			<value>
22
				<![CDATA[
23
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
24
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
25
				PREFIX owl: <http://www.w3.org/2002/07/owl#> 
26
				
27
				SELECT ?annotation_sm
28
				FROM <$GRAPH_NAME>				
29
				WHERE { 
30
						<$CONCEPT_URI> rdfs:subClassOf+ ?annotation_sm .
31
				 	} 
32
				 ]]>
33
			</value>
34
		</constructor-arg>
35
		<!--property name="multivalue" value="false" /-->
36
	</bean>
37

    
38
</beans>
(1-1/12)