Project

General

Profile

« Previous | Next » 

Revision 8719

View differences:

metacat-index/src/main/resources/application-context-oa.xml
10 10
			<list>
11 11
				<ref bean="annotation.standard" />
12 12
				<ref bean="annotation.characteristic" />
13
				<ref bean="annotation.creator" />
13 14
			</list>
14 15
		</property>	
15 16
	</bean>
......
25 26
				PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#> 
26 27
				PREFIX oa: <http://www.w3.org/ns/oa#>
27 28
				PREFIX dcterms: <http://purl.org/dc/terms/>
28
				PREFIX foaf: <http://xmlns.com/foaf/0.1/>
29 29

  
30 30
				SELECT ?standard_sm ?pid
31 31
				FROM <$GRAPH_NAME>
......
61 61
				PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#> 
62 62
				PREFIX oa: <http://www.w3.org/ns/oa#>
63 63
				PREFIX dcterms: <http://purl.org/dc/terms/>
64
				PREFIX foaf: <http://xmlns.com/foaf/0.1/>
65 64

  
66 65
				SELECT ?characteristic_sm ?pid
67 66
				FROM <$GRAPH_NAME>
......
85 84
		</constructor-arg>
86 85
		<!--property name="multivalue" value="false" /-->
87 86
	</bean>
87
	
88
	<bean id="annotation.creator" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField">
89
		<constructor-arg name="name" value="creator_sm" />
90
		<constructor-arg name="query">
91
			<value>
92
				<![CDATA[
93
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
94
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
95
				PREFIX oa: <http://www.w3.org/ns/oa#>				
96
				PREFIX dcterms: <http://purl.org/dc/terms/>
97
				PREFIX prov: <http://www.w3.org/ns/prov#>
98
				PREFIX foaf: <http://xmlns.com/foaf/0.1/>
88 99

  
100
				SELECT ?creator_sm ?pid
101
				FROM <$GRAPH_NAME>
102
				WHERE { 
103
								
104
						?metadata dcterms:identifier ?pid .
105
						?metadata prov:wasAttributedTo ?person .
106
						?person dcterms:identifier ?creator_sm .
107
						
108
				 	} 
109
				 ]]>
110
			</value>
111
		</constructor-arg>
112
		<!--property name="multivalue" value="false" /-->
113
	</bean>
114

  
89 115
</beans>

Also available in: Unified diff