Project

General

Profile

1 8972 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 8973 leinfelder
	<bean id="annotatorSubprocessor" class="org.dataone.cn.indexer.annotation.AnnotatorSubprocessor">
7
8 9018 leinfelder
		<!-- 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 8973 leinfelder
		<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 8972 leinfelder
41
</beans>