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 annotation documents -->
9
		<property name="matchDocuments">
10
			<list>
11
				<value>http://docs.annotatorjs.org/en/v1.2.x/annotation-format.html</value>
12
			</list>
13
		</property>
14
		<property name="fieldList">
15
			<list>
16
				<ref bean="annotation.expansion" />
17
			</list>
18
		</property>	
19
	</bean>
20
	
21
	<bean id="annotation.expansion" class="org.dataone.cn.indexer.annotation.SparqlField">
22
		<constructor-arg name="name" value="annotation_sm" />
23
		<constructor-arg name="query">
24
			<value>
25
				<![CDATA[
26
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
27
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
28
				PREFIX owl: <http://www.w3.org/2002/07/owl#> 
29
				
30
				SELECT ?annotation_sm
31
				FROM <$GRAPH_NAME>				
32
				WHERE { 
33
						<$CONCEPT_URI> rdfs:subClassOf+ ?annotation_sm .
34
				 	} 
35
				 ]]>
36
			</value>
37
		</constructor-arg>
38
		<!--property name="multivalue" value="false" /-->
39
	</bean>
40

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