Revision 8973
Added by ben leinfelder almost 10 years ago
application-context-annotator.xml | ||
---|---|---|
3 | 3 |
xmlns:p="http://www.springframework.org/schema/p" |
4 | 4 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> |
5 | 5 |
|
6 |
<bean id="annotatorSubprocessor" class="org.dataone.cn.indexer.annotation.AnnotatorSubprocessor"/> |
|
7 |
<!-- no params needed for this processor yet --> |
|
6 |
<bean id="annotatorSubprocessor" class="org.dataone.cn.indexer.annotation.AnnotatorSubprocessor"> |
|
7 |
|
|
8 |
<!-- match any document type --> |
|
9 |
<property name="matchDocument" |
|
10 |
value="/d200:systemMetadata/formatId[text() != '']" /> |
|
11 |
<property name="fieldList"> |
|
12 |
<list> |
|
13 |
<ref bean="annotation.expansion" /> |
|
14 |
</list> |
|
15 |
</property> |
|
16 |
</bean> |
|
17 |
|
|
18 |
<bean id="annotation.expansion" class="org.dataone.cn.indexer.annotation.SparqlField"> |
|
19 |
<constructor-arg name="name" value="annotation_sm" /> |
|
20 |
<constructor-arg name="query"> |
|
21 |
<value> |
|
22 |
<![CDATA[ |
|
23 |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> |
|
24 |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
|
25 |
PREFIX owl: <http://www.w3.org/2002/07/owl#> |
|
26 |
|
|
27 |
SELECT ?annotation_sm |
|
28 |
FROM <$GRAPH_NAME> |
|
29 |
WHERE { |
|
30 |
<$CONCEPT_URI> rdfs:subClassOf+ ?annotation_sm . |
|
31 |
} |
|
32 |
]]> |
|
33 |
</value> |
|
34 |
</constructor-arg> |
|
35 |
<!--property name="multivalue" value="false" /--> |
|
36 |
</bean> |
|
8 | 37 |
|
9 | 38 |
</beans> |
Also available in: Unified diff
use sparql field and triple store from cn-index_processor (refactor). include annotatorSubprocessor for testing in metacat-index