70 lines
2.7 KiB
XML
70 lines
2.7 KiB
XML
<Resource version="0.4.x">
|
|
<ID>12345</ID>
|
|
<Type>GenericResource</Type>
|
|
<Scopes></Scopes>
|
|
<Profile>
|
|
<SecondaryType>Ckan-Zenodo-Mappings</SecondaryType>
|
|
<Name>Deliverable</Name>
|
|
<Description>Simple mappings tests</Description>
|
|
<Body>
|
|
|
|
|
|
<mappings>
|
|
<resourceFilters>
|
|
<filter>
|
|
<condition>$.resources[?(@.format)]</condition>
|
|
</filter>
|
|
</resourceFilters>
|
|
|
|
<mapping>
|
|
<source>
|
|
<value type="constant">other</value>
|
|
</source>
|
|
<targetPath>$.metadata</targetPath>
|
|
<targetElement>upload_type</targetElement>
|
|
</mapping>
|
|
|
|
<!-- <mapping> -->
|
|
<!-- <source> -->
|
|
<!-- <value type="jsonPath">$.extras[?(@.key=='Deliverable Author')].value</value> -->
|
|
<!-- </source> -->
|
|
<!-- <targetPath append="false" type="array">$.metadata.creators</targetPath> -->
|
|
<!-- <targetElement>name</targetElement> -->
|
|
<!-- </mapping> -->
|
|
|
|
|
|
|
|
<!-- Contributor -> {name : ... , type : 'other'} -->
|
|
<!-- <mapping> -->
|
|
<!-- <source> -->
|
|
<!-- <value type="jsonPath">$.extras[?(@.key=='Deliverable Contributor')].value</value> -->
|
|
<!-- </source> -->
|
|
<!-- <targetPath append="false" type="array">$.metadata.contributors</targetPath> -->
|
|
<!-- <targetElement>name</targetElement> -->
|
|
<!-- <targetElement constant="Other">type</targetElement> -->
|
|
<!-- </mapping> -->
|
|
|
|
|
|
|
|
<!-- <mapping> -->
|
|
<!-- <source> -->
|
|
<!-- <value type="constant">862409</value> -->
|
|
<!-- </source> -->
|
|
<!-- <targetPath type="array">$.metadata.grants</targetPath> -->
|
|
<!-- <targetElement>id</targetElement> -->
|
|
<!-- </mapping> -->
|
|
|
|
<!-- <mapping> -->
|
|
<!-- <source> -->
|
|
<!-- <value type="constant">blue-cloud</value> -->
|
|
<!-- </source> -->
|
|
<!-- <targetPath type="array">$.metadata.communities</targetPath> -->
|
|
<!-- <targetElement>identifier</targetElement> -->
|
|
<!-- </mapping> -->
|
|
</mappings>
|
|
|
|
|
|
|
|
</Body>
|
|
</Profile>
|
|
</Resource> |