Revision 10060
Added by ben leinfelder almost 8 years ago
metacat-index/src/main/resources/application-context-annotator.xml | ||
---|---|---|
16 | 16 |
<ref bean="annotation.expansion" /> |
17 | 17 |
<ref bean="annotation.bioportal.expansion" /> |
18 | 18 |
<ref bean="annotation.esor.expansion" /> |
19 |
<ref bean="annotation.cosine.expansion" /> |
|
19 | 20 |
</list> |
20 | 21 |
</property> |
21 | 22 |
<property name="fieldsToMerge"> |
22 | 23 |
<list> |
23 | 24 |
<value>sem_annotation</value> |
24 | 25 |
<value>sem_annotation_bioportal_sm</value> |
25 |
<value>sem_annotation_esor_sm</value> |
|
26 |
<value>sem_annotation_esor_sm</value> |
|
27 |
<value>sem_annotation_cosine_sm</value> |
|
26 | 28 |
<value>sem_annotates</value> |
27 | 29 |
<value>sem_annotated_by</value> |
28 | 30 |
</list> |
29 | 31 |
</property> |
30 | 32 |
<property name="ontologyList"> |
31 | 33 |
<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 | 34 |
<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 | 35 |
</list> |
40 | 36 |
</property> |
41 | 37 |
</bean> |
... | ... | |
130 | 126 |
</value> |
131 | 127 |
</constructor-arg> |
132 | 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> |
|
133 | 148 |
|
134 | 149 |
</beans> |
Also available in: Unified diff
merge changes from d1 indexing lib