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 |
9054
|
leinfelder
|
</property>
|
19 |
|
|
<property name="fieldsToMerge">
|
20 |
|
|
<list>
|
21 |
9155
|
leinfelder
|
<value>sem_annotation</value>
|
22 |
|
|
<value>sem_annotates</value>
|
23 |
|
|
<value>sem_annotated_by</value>
|
24 |
9054
|
leinfelder
|
</list>
|
25 |
|
|
</property>
|
26 |
8973
|
leinfelder
|
</bean>
|
27 |
|
|
|
28 |
|
|
<bean id="annotation.expansion" class="org.dataone.cn.indexer.annotation.SparqlField">
|
29 |
9155
|
leinfelder
|
<constructor-arg name="name" value="sem_annotation" />
|
30 |
8973
|
leinfelder
|
<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 |
9155
|
leinfelder
|
SELECT ?sem_annotation
|
38 |
8973
|
leinfelder
|
FROM <$GRAPH_NAME>
|
39 |
|
|
WHERE {
|
40 |
9155
|
leinfelder
|
<$CONCEPT_URI> rdfs:subClassOf+ ?sem_annotation .
|
41 |
8973
|
leinfelder
|
}
|
42 |
|
|
]]>
|
43 |
|
|
</value>
|
44 |
|
|
</constructor-arg>
|
45 |
|
|
<!--property name="multivalue" value="false" /-->
|
46 |
|
|
</bean>
|
47 |
8972
|
leinfelder
|
|
48 |
|
|
</beans>
|