Project

General

Profile

« Previous | Next » 

Revision 9155

merge CN annotation context files to metacat (MN) to support semantic index fields.

View differences:

metacat-index/src/main/resources/application-context-annotator.xml
18 18
		</property>
19 19
		<property name="fieldsToMerge">
20 20
     		<list>
21
     			<value>annotation_sm</value>
22
     			<value>annotates_sm</value>
23
     			<value>annotated_by_sm</value>
21
     			<value>sem_annotation</value>
22
     			<value>sem_annotates</value>
23
     			<value>sem_annotated_by</value>
24 24
     		</list>
25 25
     	</property>	
26 26
	</bean>
27 27
	
28 28
	<bean id="annotation.expansion" class="org.dataone.cn.indexer.annotation.SparqlField">
29
		<constructor-arg name="name" value="annotation_sm" />
29
		<constructor-arg name="name" value="sem_annotation" />
30 30
		<constructor-arg name="query">
31 31
			<value>
32 32
				<![CDATA[
......
34 34
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
35 35
				PREFIX owl: <http://www.w3.org/2002/07/owl#> 
36 36
				
37
				SELECT ?annotation_sm
37
				SELECT ?sem_annotation
38 38
				FROM <$GRAPH_NAME>				
39 39
				WHERE { 
40
						<$CONCEPT_URI> rdfs:subClassOf+ ?annotation_sm .
40
						<$CONCEPT_URI> rdfs:subClassOf+ ?sem_annotation .
41 41
				 	} 
42 42
				 ]]>
43 43
			</value>

Also available in: Unified diff