-
Notifications
You must be signed in to change notification settings - Fork 1
/
application-context-ontology-model-service.xml
96 lines (88 loc) · 5.32 KB
/
application-context-ontology-model-service.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="ontologyModelService" class="org.dataone.cn.indexer.annotation.OntologyModelService">
<property name="fieldList">
<list>
<ref bean="eml.annotation.property.expansion" />
<ref bean="eml.annotation.value.expansion" />
</list>
</property>
<property name="ontologyList">
<list>
<value>http://purl.dataone.org/ontologies/observation/d1-ECSO.owl</value>
<value>http://purl.dataone.org/ontologies/provenance/ProvONE/v1/owl/provone.owl</value>
<value>http://purl.obolibrary.org/obo/envo.owl</value>
<value>http://ecoinformatics.org/oboe/oboe.1.2/oboe-owl.owl</value>
<value>http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl</value>
<value>http://ecoinformatics.org/oboe/oboe.1.2/oboe-characteristics.owl</value>
<value>http://ecoinformatics.org/oboe/oboe.1.2/oboe-standards.owl</value>
<value>http://ecoinformatics.org/oboe/oboe.1.2/oboe-spatial.owl</value>
<value>http://ecoinformatics.org/oboe/oboe.1.2/oboe-temporal.owl</value>
<value>http://ecoinformatics.org/oboe/oboe.1.2/oboe-taxa.owl</value>
<value>http://ecoinformatics.org/oboe/oboe.1.2/oboe-biology.owl</value>
<value>http://ecoinformatics.org/oboe/oboe.1.2/oboe-ecology.owl</value>
<value>http://ecoinformatics.org/oboe/oboe.1.2/oboe-environment.owl</value>
<value>http://ecoinformatics.org/oboe/oboe.1.2/oboe-chemistry.owl</value>
<value>http://ecoinformatics.org/oboe/oboe.1.2/oboe-anatomy.owl</value>
<value>http://ecoinformatics.org/oboe-ext/sbclter.1.0/oboe-sbclter.owl</value>
</list>
</property>
<property name="altEntryList" ref="alt.entries" />
</bean>
<bean id="alt.entries" class="java.util.HashMap">
<constructor-arg>
<map key-type="java.lang.String" value-type="java.lang.String">
<entry key="http://purl.dataone.org/ontologies/observation/d1-ECSO.owl" value="file:src/main/resources/ontologies/ECSO.owl" />
<entry key="http://purl.dataone.org/ontologies/provenance/ProvONE/v1/owl/provone.owl" value="file:src/main/resources/ontologies/provone.owl" />
<entry key="http://purl.obolibrary.org/obo/envo.owl" value="file:src/main/resources/ontologies/envo.owl" />
<entry key="http://ecoinformatics.org/oboe/oboe.1.2/oboe-owl.owl" value="file:src/main/resources/ontologies/oboe.owl" />
<entry key="http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl" value="file:src/main/resources/ontologies/oboe-core.owl" />
<entry key="http://ecoinformatics.org/oboe/oboe.1.2/oboe-characteristics.owl" value="file:src/main/resources/ontologies/oboe-characteristics.owl" />
<entry key="http://ecoinformatics.org/oboe/oboe.1.2/oboe-standards.owl" value="file:src/main/resources/ontologies/oboe-standards.owl" />
<entry key="http://ecoinformatics.org/oboe/oboe.1.2/oboe-spatial.owl" value="file:src/main/resources/ontologies/oboe-spatial.owl" />
<entry key="http://ecoinformatics.org/oboe/oboe.1.2/oboe-temporal.owl" value="file:src/main/resources/ontologies/oboe-temporal.owl" />
<entry key="http://ecoinformatics.org/oboe/oboe.1.2/oboe-taxa.owl" value="file:src/main/resources/ontologies/oboe-taxa.owl" />
<entry key="http://ecoinformatics.org/oboe/oboe.1.2/oboe-biology.owl" value="file:src/main/resources/ontologies/oboe-biology.owl" />
<entry key="http://ecoinformatics.org/oboe/oboe.1.2/oboe-ecology.owl" value="file:src/main/resources/ontologies/oboe-ecology.owl" />
<entry key="http://ecoinformatics.org/oboe/oboe.1.2/oboe-environment.owl" value="file:src/main/resources/ontologies/oboe-environment.owl" />
<entry key="http://ecoinformatics.org/oboe/oboe.1.2/oboe-chemistry.owl" value="file:src/main/resources/ontologies/oboe-chemistry.owl" />
<entry key="http://ecoinformatics.org/oboe/oboe.1.2/oboe-anatomy.owl" value="file:src/main/resources/ontologies/oboe-anatomy.owl" />
<entry key="http://ecoinformatics.org/oboe-ext/sbclter.1.0/oboe-sbclter.owl" value="file:src/main/resources/ontologies/oboe-sbclter.owl" />
</map>
</constructor-arg>
</bean>
<bean id="eml.annotation.property.expansion" class="org.dataone.cn.indexer.annotation.SparqlField">
<constructor-arg name="name" value="annotation_property_uri" />
<constructor-arg name="query">
<value>
<![CDATA[
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT ?annotation_property_uri
WHERE {
<$CONCEPT_URI> rdfs:subPropertyOf* ?annotation_property_uri .
}
]]>
</value>
</constructor-arg>
</bean>
<bean id="eml.annotation.value.expansion" class="org.dataone.cn.indexer.annotation.SparqlField">
<constructor-arg name="name" value="annotation_value_uri" />
<constructor-arg name="query">
<value>
<![CDATA[
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT ?annotation_value_uri
WHERE {
<$CONCEPT_URI> rdfs:subClassOf* ?annotation_value_uri .
}
]]>
</value>
</constructor-arg>
</bean>
</beans>