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="edu.ucsb.nceas.metacat.index.annotation.MetacatAnnotatorSubprocessor">
|
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
|
<ref bean="annotation.bioportal.expansion" />
|
18
|
<ref bean="annotation.esor.expansion" />
|
19
|
<ref bean="annotation.cosine.expansion" />
|
20
|
</list>
|
21
|
</property>
|
22
|
<property name="fieldsToMerge">
|
23
|
<list>
|
24
|
<value>sem_annotation</value>
|
25
|
<value>sem_annotation_bioportal_sm</value>
|
26
|
<value>sem_annotation_esor_sm</value>
|
27
|
<value>sem_annotation_cosine_sm</value>
|
28
|
<value>sem_annotates</value>
|
29
|
<value>sem_annotated_by</value>
|
30
|
</list>
|
31
|
</property>
|
32
|
<property name="ontologyList">
|
33
|
<list>
|
34
|
<value>http://purl.dataone.org/ontologies/observation/d1-ECSO.owl</value>
|
35
|
</list>
|
36
|
</property>
|
37
|
</bean>
|
38
|
|
39
|
<bean id="annotation.expansion" class="org.dataone.cn.indexer.annotation.SparqlField">
|
40
|
<constructor-arg name="name" value="sem_annotation" />
|
41
|
<constructor-arg name="query">
|
42
|
<value>
|
43
|
<![CDATA[
|
44
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
45
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
46
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
47
|
|
48
|
SELECT ?sem_annotation
|
49
|
WHERE {
|
50
|
<$CONCEPT_URI> rdfs:subClassOf+ ?sem_annotation .
|
51
|
}
|
52
|
]]>
|
53
|
</value>
|
54
|
</constructor-arg>
|
55
|
<!--property name="multivalue" value="false" /-->
|
56
|
</bean>
|
57
|
|
58
|
<!-- bioportal-based annotation -->
|
59
|
<bean id="annotation.bioportal.expansion" class="org.dataone.cn.indexer.annotation.SparqlField">
|
60
|
<constructor-arg name="name" value="sem_annotation_bioportal_sm" />
|
61
|
<constructor-arg name="query">
|
62
|
<value>
|
63
|
<![CDATA[
|
64
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
65
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
66
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
67
|
|
68
|
SELECT ?sem_annotation_bioportal_sm
|
69
|
WHERE {
|
70
|
<$CONCEPT_URI> rdfs:subClassOf+ ?sem_annotation_bioportal_sm .
|
71
|
}
|
72
|
]]>
|
73
|
</value>
|
74
|
</constructor-arg>
|
75
|
</bean>
|
76
|
<bean id="annotation.bioportal.raw" class="org.dataone.cn.indexer.annotation.SparqlField">
|
77
|
<constructor-arg name="name" value="sem_annotation_bioportal_raw_sm" />
|
78
|
<constructor-arg name="query">
|
79
|
<value>
|
80
|
<![CDATA[
|
81
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
82
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
83
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
84
|
|
85
|
SELECT ?sem_annotation_bioportal_raw_sm
|
86
|
WHERE {
|
87
|
<$CONCEPT_URI> rdf:about ?sem_annotation_bioportal_raw_sm .
|
88
|
}
|
89
|
]]>
|
90
|
</value>
|
91
|
</constructor-arg>
|
92
|
</bean>
|
93
|
|
94
|
<!-- esor-based annotation -->
|
95
|
<bean id="annotation.esor.expansion" class="org.dataone.cn.indexer.annotation.SparqlField">
|
96
|
<constructor-arg name="name" value="sem_annotation_esor_sm" />
|
97
|
<constructor-arg name="query">
|
98
|
<value>
|
99
|
<![CDATA[
|
100
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
101
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
102
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
103
|
|
104
|
SELECT ?sem_annotation_esor_sm
|
105
|
WHERE {
|
106
|
<$CONCEPT_URI> rdfs:subClassOf+ ?sem_annotation_esor_sm .
|
107
|
}
|
108
|
]]>
|
109
|
</value>
|
110
|
</constructor-arg>
|
111
|
</bean>
|
112
|
<bean id="annotation.esor.raw" class="org.dataone.cn.indexer.annotation.SparqlField">
|
113
|
<constructor-arg name="name" value="sem_annotation_esor_raw_sm" />
|
114
|
<constructor-arg name="query">
|
115
|
<value>
|
116
|
<![CDATA[
|
117
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
118
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
119
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
120
|
|
121
|
SELECT ?sem_annotation_esor_raw_sm
|
122
|
WHERE {
|
123
|
<$CONCEPT_URI> rdf:about ?sem_annotation_esor_raw_sm .
|
124
|
}
|
125
|
]]>
|
126
|
</value>
|
127
|
</constructor-arg>
|
128
|
</bean>
|
129
|
|
130
|
<!-- cosine-based annotation -->
|
131
|
<bean id="annotation.cosine.expansion" class="org.dataone.cn.indexer.annotation.SparqlField">
|
132
|
<constructor-arg name="name" value="sem_annotation_cosine_sm" />
|
133
|
<constructor-arg name="query">
|
134
|
<value>
|
135
|
<![CDATA[
|
136
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
137
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
138
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
139
|
|
140
|
SELECT ?sem_annotation_cosine_sm
|
141
|
WHERE {
|
142
|
<$CONCEPT_URI> rdfs:subClassOf+ ?sem_annotation_cosine_sm .
|
143
|
}
|
144
|
]]>
|
145
|
</value>
|
146
|
</constructor-arg>
|
147
|
</bean>
|
148
|
|
149
|
</beans>
|