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
		<property name="fieldsToMerge">
20
     		<list>
21
     			<value>sem_annotation</value>
22
     			<value>sem_annotates</value>
23
     			<value>sem_annotated_by</value>
24
     		</list>
25
     	</property>	
26
	</bean>
27
	
28
	<bean id="annotation.expansion" class="org.dataone.cn.indexer.annotation.SparqlField">
29
		<constructor-arg name="name" value="sem_annotation" />
30
		<constructor-arg name="query">
31
			<value>
32
				<![CDATA[
33
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
34
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
35
				PREFIX owl: <http://www.w3.org/2002/07/owl#> 
36
				
37
				SELECT ?sem_annotation
38
				FROM <$GRAPH_NAME>				
39
				WHERE { 
40
						<$CONCEPT_URI> rdfs:subClassOf+ ?sem_annotation .
41
				 	} 
42
				 ]]>
43
			</value>
44
		</constructor-arg>
45
		<!--property name="multivalue" value="false" /-->
46
	</bean>
47

    
48
</beans>
(1-1/14)