Creating profile

This commit is contained in:
Luca Frosini 2023-03-20 10:57:13 +01:00
parent 1a5d5c04c5
commit f36572cfca
1 changed files with 242 additions and 0 deletions

View File

@ -2,6 +2,8 @@
<!DOCTYPE xml>
<metadataformat type="Assessment Unit" version="5">
<!-- Starts of Common Metadata -->
<metadatafield categoryref="stock_identity">
<fieldName>GRSF Type</fieldName>
<mandatory>true</mandatory>
@ -585,7 +587,247 @@
<!-- Ends of Common Metadata -->
<metadatafield categoryref="stock_identity">
<fieldName>GRSF Stock Name</fieldName>
<mandatory>true</mandatory>
<dataType>String</dataType>
<extra>
<grsf>
<srcField>stock_name</srcField>
<srcType>
<simpleType>String</simpleType>
</srcType>
<mandatory>true</mandatory>
<isSensitive>false</isSensitive>
<dstTypes>
<dstType>Field</dstType>
</dstTypes>
<comments>
The title of the record.
Example: "Skipjack tuna - Eastern Pacific".
</comments>
</grsf>
</extra>
</metadatafield>
<metadatafield categoryref="stock_identity">
<fieldName>GRSF Semantic Identifier</fieldName>
<mandatory>true</mandatory>
<dataType>String</dataType>
<extra>
<grsf>
<srcField>grsf_semantic_identifier</srcField>
<srcType>
<simpleType>String</simpleType>
</srcType>
<mandatory>true</mandatory>
<isSensitive>false</isSensitive>
<dstTypes>
<dstType>Field</dstType>
</dstTypes>
<comments>
Example: " asfis:PLA+fao:21.5.Y;fao:21.5.Z".
</comments>
</grsf>
</extra>
</metadatafield>
<metadatafield categoryref="stock_identity">
<fieldName>Assessment Area</fieldName>
<mandatory>false</mandatory>
<dataType>String</dataType>
<maxOccurs>*</maxOccurs>
<tags>
<tag create="true">
<how>onValue</how>
</tag>
</tags>
<extra>
<grsf>
<srcField>assessment_area</srcField>
<srcType>
<complexType>JsonArray</complexType>
</srcType>
<mandatory>false</mandatory>
<isSensitive>false</isSensitive>
<dstTypes>
<dstType maxOccur="*">Field</dstType>
</dstTypes>
<comments>
The multiple fields are mapped as multiple key/value pair fields in the catalogue.
Example: assessment_area": ["East Pacific Ocean",...].
</comments>
</grsf>
</extra>
</metadatafield>
<metadatafield categoryref="stock_identity">
<fieldName>Exploiting Fishery</fieldName>
<mandatory>false</mandatory>
<dataType>String</dataType>
<maxOccurs>*</maxOccurs>
<extra>
<grsf>
<srcField>exploiting_fishery</srcField>
<srcType>
<complexType>JsonArray</complexType>
</srcType>
<mandatory>false</mandatory>
<isSensitive>false</isSensitive>
<dstTypes>
<dstType maxOccur="*">Field</dstType>
</dstTypes>
<comments>
The multiple fields are mapped as multiple key/value pair fields in the catalogue.
Example: "exploiting_fishery": ["Tunas and billfishes fishery", ....].
</comments>
</grsf>
</extra>
</metadatafield>
<metadatafield categoryref="stock_data">
<fieldName>Assessment Method</fieldName>
<mandatory>false</mandatory>
<dataType>String</dataType>
<groups>
<group create="true" propagateUp="false">
<fixedValue>assessment-method-group</fixedValue>
</group>
</groups>
<extra>
<grsf>
<srcField>assessment_methods</srcField>
<srcType>
<complexType>JsonArray</complexType>
</srcType>
<mandatory>aggregated</mandatory>
<isSensitive>false</isSensitive>
<dstTypes>
<dstType>Field</dstType>
<dstType>Resource</dstType>
</dstTypes>
<comments>
Example: "Analytical assessment"
</comments>
</grsf>
</extra>
</metadatafield>
<metadatafield categoryref="stock_data">
<fieldName>Abundance Level (FIRMS Standard)</fieldName>
<mandatory>false</mandatory>
<dataType>String</dataType>
<groups>
<group create="true" propagateUp="false">
<fixedValue>abundance-level-firms-standard-group</fixedValue>
</group>
</groups>
<extra>
<grsf>
<srcField>firms_standard_abundance_level</srcField>
<srcType>
<complexType>JsonArray</complexType>
</srcType>
<mandatory>aggregated</mandatory>
<isSensitive>false</isSensitive>
<dstTypes>
<dstType>Field</dstType>
<dstType>Resource</dstType>
</dstTypes>
<comments>
Example: "firms_standard_abundance_level" : [{"year":2014, "value":"low abundance"}, {"year":2015, "value":"intermediate abundance"}, ...]
Controlled vocabulary for "value": Not applicable, Intermediate abundance, Low abundance, Uncertain/Not assessed, Depleted
</comments>
</grsf>
</extra>
</metadatafield>
<metadatafield categoryref="stock_data">
<fieldName>Abundance Level</fieldName>
<mandatory>false</mandatory>
<dataType>String</dataType>
<groups>
<group create="true" propagateUp="false">
<fixedValue>abundance-level-group</fixedValue>
</group>
</groups>
<extra>
<grsf>
<srcField>abundance_level</srcField>
<srcType>
<complexType>JsonArray</complexType>
</srcType>
<mandatory>aggregated</mandatory>
<isSensitive>false</isSensitive>
<dstTypes>
<dstType>Field</dstType>
<dstType>Resource</dstType>
</dstTypes>
<comments>
Example: "abundance_level": [{"year":2014, "value":"low abundance", "unit": "..."}, {"year":2015, "value":"intermediate abundance", "unit": "..."}, ...]
</comments>
</grsf>
</extra>
</metadatafield>
<!--
<metadatafield categoryref="stock_data">
<fieldName></fieldName>
<mandatory>false</mandatory>
<dataType>String</dataType>
<maxOccurs>*</maxOccurs>
<tags>
<tag create="true">
<how>onValue</how>
</tag>
</tags>
<extra>
<grsf>
<srcField></srcField>
<srcType>
<complexType>JsonArray</complexType>
</srcType>
<mandatory>aggregated</mandatory>
<isSensitive>false</isSensitive>
<dstTypes>
<dstType maxOccur="*">Field</dstType>
</dstTypes>
<comments>
</comments>
</grsf>
</extra>
</metadatafield>
-->
<!--
<metadatafield categoryref="stock_data">
<fieldName></fieldName>
<mandatory>false</mandatory>
<dataType>String</dataType>
<maxOccurs>*</maxOccurs>
<tags>
<tag create="true">
<how>onValue</how>
</tag>
</tags>
<extra>
<grsf>
<srcField></srcField>
<srcType>
<complexType>JsonArray</complexType>
</srcType>
<mandatory>aggregated</mandatory>
<isSensitive>false</isSensitive>
<dstTypes>
<dstType maxOccur="*">Field</dstType>
</dstTypes>
<comments>
</comments>
</grsf>
</extra>
</metadatafield>
-->
</metadataformat>