Project

General

Profile

« Previous | Next » 

Revision 49393

Trying with oai namespace

View differences:

modules/dnet-parthenos/trunk/src/main/resources/eu/dnetlib/bootstrap/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/dariah-GR_317_mapping.xml
80 80
        <namespace prefix="cld" uri="http://purl.org/cld/terms/"/>
81 81
        <namespace prefix="parthenos" uri="http://parthenos.d4science.org/handle/DariahGR/Dyas/"/>
82 82
        <namespace prefix="reg" uri="http://parthenos.d4science.org/handle/Parthenos/REG/"/>
83
        <namespace prefix="oai" uri="http://www.openarchives.org/OAI/2.0/"/>
83 84
    </namespaces>
84 85
    <mappings>
85 86
        <mapping>
86 87
            <domain>
87
                <source_node>//record</source_node>
88
                <source_node>//oai:record</source_node>
88 89
                <target_node>
89 90
                    <entity>
90 91
                        <type>crmpe:PE22_Persistent_Dataset</type>
91 92
                        <instance_generator name="DatasetURI">
92
                            <arg name="term" type="xpath">header/identifier/text()</arg>
93
                            <arg name="term" type="xpath">oai:header/oai:identifier/text()</arg>
93 94
                        </instance_generator>
94 95
                        <label_generator name="CompositeLabel">
95 96
                            <arg name="label" type="constant">Metadata Record for </arg>
96
                            <arg name="text" type="xpath">metadata/collection/dc:title/text()</arg>
97
                            <arg name="text" type="xpath">oai:metadata/collection/dc:title/text()</arg>
97 98
                        </label_generator>
98 99
                        <additional>
99 100
                            <relationship>crm:P2_has_type</relationship>
......
145 146
            <link>
146 147
                <path>
147 148
                    <source_relation>
148
                        <relation>header/identifier</relation>
149
                        <relation>oai:header/oai:identifier</relation>
149 150
                    </source_relation>
150 151
                    <target_relation>
151 152
                        <relationship>crm:P1_is_identified_by</relationship>
152 153
                    </target_relation>
153 154
                </path>
154 155
                <range>
155
                    <source_node>header/identifier</source_node>
156
                    <source_node>oai:header/oai:identifier</source_node>
156 157
                    <target_node>
157 158
                        <entity>
158 159
                            <type>crm:E42_Identifier</type>
......
169 170
            <link>
170 171
                <path>
171 172
                    <source_relation>
172
                        <relation>metadata/collection</relation>
173
                        <relation>oai:metadata/collection</relation>
173 174
                    </source_relation>
174 175
                    <target_relation>
175 176
                        <relationship>crm:P129_is_about</relationship>
176 177
                    </target_relation>
177 178
                </path>
178 179
                <range>
179
                    <source_node>metadata/collection</source_node>
180
                    <source_node>oai:metadata/collection</source_node>
180 181
                    <target_node>
181 182
                        <entity>
182 183
                            <type>crm:E78_Collection</type>
......
193 194
            <link>
194 195
                <path>
195 196
                    <source_relation>
196
                        <relation>header/datestamp</relation>
197
                        <relation>oai:header/oai:datestamp</relation>
197 198
                    </source_relation>
198 199
                    <target_relation>
199 200
                        <relationship>crmdig:L11i_was_output_of</relationship>
......
219 220
                    </target_relation>
220 221
                </path>
221 222
                <range>
222
                    <source_node>header/datestamp</source_node>
223
                    <source_node>oai:header/oai:datestamp</source_node>
223 224
                    <target_node>
224 225
                        <entity>
225 226
                            <type>:http://www.w3.org/2000/01/rdf-schema#Literal</type>
......
233 234
        </mapping>
234 235
        <mapping>
235 236
            <domain>
236
                <source_node>//record/metadata/collection</source_node>
237
                <source_node>//oai:record/oai:metadata/collection</source_node>
237 238
                <target_node>
238 239
                    <entity>
239 240
                        <type>crm:E78_Collection</type>

Also available in: Unified diff