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

    
134
</beans>
(1-1/17)