Project

General

Profile

« Previous | Next » 

Revision 10154

remove unused OA indexing file and reference

View differences:

metacat-index/src/main/resources/application-context-oa.xml
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="rdfXmlSubprocessor" class="edu.ucsb.nceas.metacat.index.annotation.MetacatRdfXmlSubprocessor">
7
		<property name="matchDocuments">
8
			<list>
9
				<value>http://www.w3.org/TR/rdf-syntax-grammar</value>
10
				<value>http://www.openarchives.org/ore/terms</value>
11
			</list>
12
		</property>	
13
		<property name="fieldList">
14
			<list>
15
				<ref bean="annotation.standard" />
16
				<ref bean="annotation.characteristic" />
17
				<ref bean="annotation.creator" />
18
			</list>
19
		</property>	
20
	</bean>
21
	
22
	<bean id="annotation.standard" class="org.dataone.cn.indexer.annotation.SparqlField">
23
		<constructor-arg name="name" value="standard_sm" />
24
		<constructor-arg name="query">
25
			<value>
26
				<![CDATA[
27
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
28
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
29
				PREFIX owl: <http://www.w3.org/2002/07/owl#> 
30
				PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#> 
31
				PREFIX oa: <http://www.w3.org/ns/oa#>
32
				PREFIX dcterms: <http://purl.org/dc/terms/>
33

  
34
				SELECT ?standard_sm ?pid
35
				FROM <$GRAPH_NAME>
36
				WHERE { 
37
						
38
						?measurement rdf:type oboe-core:Measurement .
39
						?measurement rdf:type ?restriction .
40
						?restriction owl:onProperty oboe-core:usesStandard .
41
						?restriction owl:allValuesFrom ?standard .
42
						?standard rdfs:subClassOf+ ?standard_sm .
43
						?standard_sm rdfs:subClassOf oboe-core:Standard .
44
						
45
						?annotation oa:hasBody ?measurement .												
46
						?annotation oa:hasTarget ?target .
47
						?target oa:hasSource ?metadata .
48
						?metadata dcterms:identifier ?pid . 
49
						
50
				 	} 
51
				 ]]>
52
			</value>
53
		</constructor-arg>
54
		<!--property name="multivalue" value="false" /-->
55
	</bean>
56
	
57
	<bean id="annotation.characteristic" class="org.dataone.cn.indexer.annotation.SparqlField">
58
		<constructor-arg name="name" value="characteristic_sm" />
59
		<constructor-arg name="query">
60
			<value>
61
				<![CDATA[
62
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
63
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
64
				PREFIX owl: <http://www.w3.org/2002/07/owl#> 
65
				PREFIX oboe-core: <http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#> 
66
				PREFIX oa: <http://www.w3.org/ns/oa#>
67
				PREFIX dcterms: <http://purl.org/dc/terms/>
68

  
69
				SELECT ?characteristic_sm ?pid
70
				FROM <$GRAPH_NAME>
71
				WHERE { 
72
						
73
						?measurement rdf:type oboe-core:Measurement .
74
						?measurement rdf:type ?restriction .
75
						?restriction owl:onProperty oboe-core:ofCharacteristic .
76
						?restriction owl:allValuesFrom ?characteristic .
77
						?characteristic rdfs:subClassOf+ ?characteristic_sm .
78
						?characteristic_sm rdfs:subClassOf oboe-core:Characteristic .
79
						
80
						?annotation oa:hasBody ?measurement .												
81
						?annotation oa:hasTarget ?target .
82
						?target oa:hasSource ?metadata .
83
						?metadata dcterms:identifier ?pid . 
84
						
85
				 	} 
86
				 ]]>
87
			</value>
88
		</constructor-arg>
89
		<!--property name="multivalue" value="false" /-->
90
	</bean>
91
	
92
	<bean id="annotation.creator" class="org.dataone.cn.indexer.annotation.SparqlField">
93
		<constructor-arg name="name" value="creator_sm" />
94
		<constructor-arg name="query">
95
			<value>
96
				<![CDATA[
97
				PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
98
				PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
99
				PREFIX oa: <http://www.w3.org/ns/oa#>				
100
				PREFIX dcterms: <http://purl.org/dc/terms/>
101
				PREFIX prov: <http://www.w3.org/ns/prov#>
102
				PREFIX foaf: <http://xmlns.com/foaf/0.1/>
103

  
104
				SELECT ?creator_sm ?pid
105
				FROM <$GRAPH_NAME>
106
				WHERE { 
107
								
108
						?metadata dcterms:identifier ?pid .
109
						?metadata prov:wasAttributedTo ?person .
110
						?person dcterms:identifier ?creator_sm .
111
						
112
				 	} 
113
				 ]]>
114
			</value>
115
		</constructor-arg>
116
		<!--property name="multivalue" value="false" /-->
117
	</bean>
118
	
119
</beans>
120 0

  
metacat-index/src/main/resources/index-processor-context.xml
27 27
    <import resource="application-context-resource-map.xml" />
28 28
    <import resource="application-context-systemmeta200.xml" />
29 29
    
30
     
31
    <import resource="application-context-oa.xml" />
32 30
    <import resource="application-context-annotator.xml" />    
33 31
    
34 32
    <import resource="application-context-delete-subprocessors.xml" />    

Also available in: Unified diff