Improved profile definition to have the required information
This commit is contained in:
parent
4762b53e40
commit
b16f37b1ae
|
@ -20,7 +20,15 @@
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element type="xs:string" name="srcField" minOccurs="1" maxOccurs="1" />
|
<xs:element type="xs:string" name="srcField" minOccurs="1" maxOccurs="1" />
|
||||||
<xs:element type="SrcType" name="srcType" minOccurs="1" maxOccurs="1" />
|
<xs:element type="SrcType" name="srcType" minOccurs="1" maxOccurs="1" />
|
||||||
<xs:element type="xs:string" name="mandatory" minOccurs="1" maxOccurs="1" />
|
<xs:element name="mandatory" minOccurs="1" maxOccurs="1">
|
||||||
|
<xs:simpleType>
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:enumeration value="true"/>
|
||||||
|
<xs:enumeration value="false"/>
|
||||||
|
<xs:enumeration value="aggregated"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
</xs:element>
|
||||||
<xs:element type="xs:boolean" name="isSensitive" minOccurs="1" maxOccurs="1" />
|
<xs:element type="xs:boolean" name="isSensitive" minOccurs="1" maxOccurs="1" />
|
||||||
<xs:element name="dstTypes" minOccurs="1" maxOccurs="1">
|
<xs:element name="dstTypes" minOccurs="1" maxOccurs="1">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
|
@ -59,6 +67,7 @@
|
||||||
<xs:complexType name="SrcType">
|
<xs:complexType name="SrcType">
|
||||||
<xs:choice>
|
<xs:choice>
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
|
<xs:choice>
|
||||||
<xs:element name="simpleType" minOccurs="1" maxOccurs="1">
|
<xs:element name="simpleType" minOccurs="1" maxOccurs="1">
|
||||||
<xs:simpleType>
|
<xs:simpleType>
|
||||||
<xs:restriction base="xs:string">
|
<xs:restriction base="xs:string">
|
||||||
|
@ -67,6 +76,8 @@
|
||||||
</xs:restriction>
|
</xs:restriction>
|
||||||
</xs:simpleType>
|
</xs:simpleType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
|
<xs:element type="VocabularyType" name="vocabulary" minOccurs="1" maxOccurs="1" />
|
||||||
|
</xs:choice>
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element name="complexType" minOccurs="1" maxOccurs="1">
|
<xs:element name="complexType" minOccurs="1" maxOccurs="1">
|
||||||
|
|
|
@ -119,15 +119,7 @@
|
||||||
<xs:element type="xs:string" name="defaultValue" minOccurs="0"
|
<xs:element type="xs:string" name="defaultValue" minOccurs="0"
|
||||||
maxOccurs="1"/>
|
maxOccurs="1"/>
|
||||||
<xs:element type="xs:string" name="note" minOccurs="0" maxOccurs="1"/>
|
<xs:element type="xs:string" name="note" minOccurs="0" maxOccurs="1"/>
|
||||||
<xs:element name="vocabulary" minOccurs="0" maxOccurs="1">
|
<xs:element type="VocabularyType" name="vocabulary" minOccurs="0" maxOccurs="1" />
|
||||||
<xs:complexType>
|
|
||||||
<xs:sequence>
|
|
||||||
<xs:element type="xs:string" name="vocabularyField"
|
|
||||||
minOccurs="1" maxOccurs="unbounded"/>
|
|
||||||
</xs:sequence>
|
|
||||||
<xs:attribute type="xs:boolean" name="isMultiSelection"/>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="validator" minOccurs="0" maxOccurs="1">
|
<xs:element name="validator" minOccurs="0" maxOccurs="1">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
|
@ -170,6 +162,13 @@
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
<xs:attribute name="categoryref" use="optional" type="xs:string" />
|
<xs:attribute name="categoryref" use="optional" type="xs:string" />
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
|
<xs:complexType name="VocabularyType">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element type="xs:string" name="vocabularyField"
|
||||||
|
minOccurs="1" maxOccurs="unbounded"/>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attribute type="xs:boolean" name="isMultiSelection"/>
|
||||||
|
</xs:complexType>
|
||||||
<xs:complexType name="Extra">
|
<xs:complexType name="Extra">
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip">
|
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip">
|
||||||
|
|
|
@ -49,16 +49,18 @@
|
||||||
<dstTypes>
|
<dstTypes>
|
||||||
<dstType maxOccur="*">Field</dstType>
|
<dstType maxOccur="*">Field</dstType>
|
||||||
</dstTypes>
|
</dstTypes>
|
||||||
|
<comments>
|
||||||
|
It generates a Resource for each element of the array.
|
||||||
|
</comments>
|
||||||
</grsf>
|
</grsf>
|
||||||
</extra>
|
</extra>
|
||||||
</metadatafield>
|
</metadatafield>
|
||||||
|
|
||||||
<metadatafield>
|
<metadatafield categoryref="stock_identity">
|
||||||
<fieldName>Database Source</fieldName>
|
<fieldName>Database Source</fieldName>
|
||||||
<mandatory>false</mandatory>
|
<mandatory>false</mandatory>
|
||||||
<dataType>String</dataType>
|
<dataType>String</dataType>
|
||||||
<maxOccurs>1</maxOccurs>
|
<maxOccurs>1</maxOccurs>
|
||||||
<note>A list of elements of the type {"name": "a name", "description": "a description", "url": "http://...."}. Name and url are mandatory. For the attribute name there is a controlled vocabulary: FIRMS, RAM, FishSource. Example: "database_sources": [{"name":"FIRMS", "description": "unknown", "url":"http://....."}, ...]</note>
|
|
||||||
<extra>
|
<extra>
|
||||||
<grsf>
|
<grsf>
|
||||||
<srcField>database_sources</srcField>
|
<srcField>database_sources</srcField>
|
||||||
|
@ -82,9 +84,15 @@
|
||||||
<mandatory>aggregated</mandatory>
|
<mandatory>aggregated</mandatory>
|
||||||
<isSensitive>false</isSensitive>
|
<isSensitive>false</isSensitive>
|
||||||
<dstTypes>
|
<dstTypes>
|
||||||
|
<dstType maxOccur="*">Field</dstType>
|
||||||
<dstType maxOccur="*">Resource</dstType>
|
<dstType maxOccur="*">Resource</dstType>
|
||||||
</dstTypes>
|
</dstTypes>
|
||||||
<comments>It generates a Resource with the content of refers_to input field. No metadata field is created.</comments>
|
<comments>
|
||||||
|
A list of elements of the type {"name": "a name", "description": "a description", "url": "http://...."}.
|
||||||
|
Name and url are mandatory. For the attribute name there is a controlled vocabulary: FIRMS, RAM, FishSource.
|
||||||
|
Example: "database_sources": [{"name":"FIRMS", "description": "unknown", "url":"http://....."}, ...].
|
||||||
|
It generates a Resource for each element of the array.
|
||||||
|
</comments>
|
||||||
</grsf>
|
</grsf>
|
||||||
</extra>
|
</extra>
|
||||||
</metadatafield>
|
</metadatafield>
|
||||||
|
@ -94,7 +102,6 @@
|
||||||
<mandatory>false</mandatory>
|
<mandatory>false</mandatory>
|
||||||
<dataType>String</dataType>
|
<dataType>String</dataType>
|
||||||
<maxOccurs>1</maxOccurs>
|
<maxOccurs>1</maxOccurs>
|
||||||
<note>A list of elements of the type {"name": "a name", "description": "a description", "url": "http://...."}. Name and url are mandatory. Example: "source_of_information" : [{"name":"...", "description": "...", "url":"http://....."},...]</note>
|
|
||||||
<extra>
|
<extra>
|
||||||
<grsf>
|
<grsf>
|
||||||
<srcField>source_of_information</srcField>
|
<srcField>source_of_information</srcField>
|
||||||
|
@ -120,7 +127,12 @@
|
||||||
<dstTypes>
|
<dstTypes>
|
||||||
<dstType maxOccur="*">Resource</dstType>
|
<dstType maxOccur="*">Resource</dstType>
|
||||||
</dstTypes>
|
</dstTypes>
|
||||||
<comments>It generates a Resource with the content of refers_to input field. No metadata field is created.</comments>
|
<comments>
|
||||||
|
A list of elements of the type {"name": "a name", "description": "a description", "url": "http://...."}.
|
||||||
|
Name and url are mandatory.
|
||||||
|
Example: "source_of_information" : [{"name":"...", "description": "...", "url":"http://....."},...].
|
||||||
|
It generates a Resource with the content of refers_to input field. No metadata field is created.
|
||||||
|
</comments>
|
||||||
</grsf>
|
</grsf>
|
||||||
</extra>
|
</extra>
|
||||||
</metadatafield>
|
</metadatafield>
|
||||||
|
@ -130,7 +142,6 @@
|
||||||
<mandatory>false</mandatory>
|
<mandatory>false</mandatory>
|
||||||
<dataType>String</dataType>
|
<dataType>String</dataType>
|
||||||
<maxOccurs>1</maxOccurs>
|
<maxOccurs>1</maxOccurs>
|
||||||
<note>A list of objects of the format {"url": "http://", "id": "..."} that allows the aggregated GRSF records to point to their source records already published in the catalogue. The URL and the id are both mandatory and are the ones returned by the services when a source record is published. Example: Check the record http://data.d4science.org/ctlg/GRSF_Admin/f82393dd-d23a-3c26-98d3-ccc5f7910266 The JSON submitted by KB contains: "refers_to" : [ { "id" : "c29b2485-c33f-3c03-8790-55a1dcf045ed", "url" : "http://data.d4science.org/ctlg/GRSF_Admin/c29b2485-c33f-3c03-8790-55a1dcf045ed"}]. The reference is in the generated resource FIRMS.</note>
|
|
||||||
<extra>
|
<extra>
|
||||||
<grsf>
|
<grsf>
|
||||||
<srcField>refers_to</srcField>
|
<srcField>refers_to</srcField>
|
||||||
|
@ -152,7 +163,15 @@
|
||||||
<dstTypes>
|
<dstTypes>
|
||||||
<dstType maxOccur="*">Resource</dstType>
|
<dstType maxOccur="*">Resource</dstType>
|
||||||
</dstTypes>
|
</dstTypes>
|
||||||
<comments>It generates a Resource with the content of refers_to input field. No metadata field is created.</comments>
|
<comments>
|
||||||
|
It generates a Resource with the content of refers_to input field.
|
||||||
|
A list of objects of the format {"url": "http://", "id": "..."} that allows the aggregated GRSF records to point to their source records already published in the catalogue.
|
||||||
|
The URL and the id are both mandatory and are the ones returned by the services when a source record is published.
|
||||||
|
Example: Check the record http://data.d4science.org/ctlg/GRSF_Admin/f82393dd-d23a-3c26-98d3-ccc5f7910266.
|
||||||
|
The JSON submitted by KB contains: "refers_to" : [ { "id" : "c29b2485-c33f-3c03-8790-55a1dcf045ed", "url" : "http://data.d4science.org/ctlg/GRSF_Admin/c29b2485-c33f-3c03-8790-55a1dcf045ed"}].
|
||||||
|
The reference is in the generated resource FIRMS.
|
||||||
|
No metadata field is created.
|
||||||
|
</comments>
|
||||||
</grsf>
|
</grsf>
|
||||||
</extra>
|
</extra>
|
||||||
</metadatafield>
|
</metadatafield>
|
||||||
|
@ -162,7 +181,6 @@
|
||||||
<mandatory>false</mandatory>
|
<mandatory>false</mandatory>
|
||||||
<dataType>String</dataType>
|
<dataType>String</dataType>
|
||||||
<maxOccurs>1</maxOccurs>
|
<maxOccurs>1</maxOccurs>
|
||||||
<note>. Example: American Plaice NAFO-5YZ - https://data.d4science.org/ctlg/GRSF_Admin/f6342402-b5fb-3457-9b49-c0a018f2ce72</note>
|
|
||||||
<extra>
|
<extra>
|
||||||
<grsf>
|
<grsf>
|
||||||
<srcField>short_name</srcField>
|
<srcField>short_name</srcField>
|
||||||
|
@ -174,6 +192,10 @@
|
||||||
<dstTypes>
|
<dstTypes>
|
||||||
<dstType>Field</dstType>
|
<dstType>Field</dstType>
|
||||||
</dstTypes>
|
</dstTypes>
|
||||||
|
<comments>
|
||||||
|
Example: "American Plaice NAFO-5YZ".
|
||||||
|
Check the record https://data.d4science.org/ctlg/GRSF_Admin/f6342402-b5fb-3457-9b49-c0a018f2ce72.
|
||||||
|
</comments>
|
||||||
</grsf>
|
</grsf>
|
||||||
</extra>
|
</extra>
|
||||||
</metadatafield>
|
</metadatafield>
|
||||||
|
@ -195,7 +217,7 @@
|
||||||
<grsf>
|
<grsf>
|
||||||
<srcField>sdg_flag</srcField>
|
<srcField>sdg_flag</srcField>
|
||||||
<srcType>
|
<srcType>
|
||||||
<simpleType>String</simpleType>
|
<simpleType>Boolean</simpleType>
|
||||||
</srcType>
|
</srcType>
|
||||||
<mandatory>true</mandatory>
|
<mandatory>true</mandatory>
|
||||||
<isSensitive>false</isSensitive>
|
<isSensitive>false</isSensitive>
|
||||||
|
@ -211,7 +233,6 @@
|
||||||
<mandatory>false</mandatory>
|
<mandatory>false</mandatory>
|
||||||
<dataType>String</dataType>
|
<dataType>String</dataType>
|
||||||
<maxOccurs>1</maxOccurs>
|
<maxOccurs>1</maxOccurs>
|
||||||
<note>Controlled vocabulary: Pending, Rejected, Confirmed, Archived, Hidden, Merged (i.e. when the aggregated record comes out from more than one source record)</note>
|
|
||||||
<vocabulary isMultiSelection="false">
|
<vocabulary isMultiSelection="false">
|
||||||
<vocabularyField>Pending</vocabularyField>
|
<vocabularyField>Pending</vocabularyField>
|
||||||
<vocabularyField>Rejected</vocabularyField>
|
<vocabularyField>Rejected</vocabularyField>
|
||||||
|
@ -224,13 +245,23 @@
|
||||||
<grsf>
|
<grsf>
|
||||||
<srcField>status_grsf_record</srcField>
|
<srcField>status_grsf_record</srcField>
|
||||||
<srcType>
|
<srcType>
|
||||||
<simpleType>String</simpleType>
|
<vocabulary isMultiSelection="false">
|
||||||
|
<vocabularyField>Pending</vocabularyField>
|
||||||
|
<vocabularyField>Rejected</vocabularyField>
|
||||||
|
<vocabularyField>Confirmed</vocabularyField>
|
||||||
|
<vocabularyField>Archived</vocabularyField>
|
||||||
|
<vocabularyField>Hidden</vocabularyField>
|
||||||
|
<vocabularyField>Merged</vocabularyField>
|
||||||
|
</vocabulary>
|
||||||
</srcType>
|
</srcType>
|
||||||
<mandatory>aggregated</mandatory>
|
<mandatory>aggregated</mandatory>
|
||||||
<isSensitive>false</isSensitive>
|
<isSensitive>false</isSensitive>
|
||||||
<dstTypes>
|
<dstTypes>
|
||||||
<dstType>Field</dstType>
|
<dstType>Field</dstType>
|
||||||
</dstTypes>
|
</dstTypes>
|
||||||
|
<comments>
|
||||||
|
Controlled vocabulary: Pending, Rejected, Confirmed, Archived, Hidden, Merged (i.e. when the aggregated record comes out from more than one source record)
|
||||||
|
</comments>
|
||||||
</grsf>
|
</grsf>
|
||||||
</extra>
|
</extra>
|
||||||
</metadatafield>
|
</metadatafield>
|
||||||
|
@ -240,7 +271,6 @@
|
||||||
<mandatory>false</mandatory>
|
<mandatory>false</mandatory>
|
||||||
<dataType>String</dataType>
|
<dataType>String</dataType>
|
||||||
<maxOccurs>*</maxOccurs>
|
<maxOccurs>*</maxOccurs>
|
||||||
<note>A time series of value, unit and date. Example: "catches": [{"unit" : "...", "value": "...", "year": "..."}, ...]</note>
|
|
||||||
<groups>
|
<groups>
|
||||||
<group create="true" propagateUp="false">
|
<group create="true" propagateUp="false">
|
||||||
<fixedValue>catch-group</fixedValue>
|
<fixedValue>catch-group</fixedValue>
|
||||||
|
@ -257,6 +287,11 @@
|
||||||
<dstTypes>
|
<dstTypes>
|
||||||
<dstType>TimeSeries</dstType>
|
<dstType>TimeSeries</dstType>
|
||||||
</dstTypes>
|
</dstTypes>
|
||||||
|
<comments>
|
||||||
|
A time series of value, unit and date. Example: "catches": [{"unit" : "...", "value": "...", "year": "..."}, ...]
|
||||||
|
It generate a Resource containing all the content of the input field (i.e. a TimeSeries)
|
||||||
|
and as many Field as the number of element in the JsonArray.
|
||||||
|
</comments>
|
||||||
</grsf>
|
</grsf>
|
||||||
</extra>
|
</extra>
|
||||||
</metadatafield>
|
</metadatafield>
|
||||||
|
@ -266,7 +301,6 @@
|
||||||
<mandatory>false</mandatory>
|
<mandatory>false</mandatory>
|
||||||
<dataType>String</dataType>
|
<dataType>String</dataType>
|
||||||
<maxOccurs>*</maxOccurs>
|
<maxOccurs>*</maxOccurs>
|
||||||
<note>A time series of value, unit and date. Example: "landings": [{"unit" : "...", "value": "...", "year": "..."}, ...]</note>
|
|
||||||
<groups>
|
<groups>
|
||||||
<group create="true" propagateUp="false">
|
<group create="true" propagateUp="false">
|
||||||
<fixedValue>landing-group</fixedValue>
|
<fixedValue>landing-group</fixedValue>
|
||||||
|
@ -283,39 +317,71 @@
|
||||||
<dstTypes>
|
<dstTypes>
|
||||||
<dstType>TimeSeries</dstType>
|
<dstType>TimeSeries</dstType>
|
||||||
</dstTypes>
|
</dstTypes>
|
||||||
|
<comments>
|
||||||
|
A time series of value, unit and date. Example: "landings": [{"unit" : "...", "value": "...", "year": "..."}, ...]
|
||||||
|
It generate a Resource containing all the content of the input field (i.e. a TimeSeries)
|
||||||
|
and as many Field as the number of element in the JsonArray.
|
||||||
|
</comments>
|
||||||
</grsf>
|
</grsf>
|
||||||
</extra>
|
</extra>
|
||||||
</metadatafield>
|
</metadatafield>
|
||||||
|
|
||||||
<!--
|
<metadatafield categoryref="stock_identity">
|
||||||
<metadatafield>
|
<fieldName>Species</fieldName>
|
||||||
<fieldName></fieldName>
|
|
||||||
<mandatory>false</mandatory>
|
<mandatory>false</mandatory>
|
||||||
<dataType>String</dataType>
|
<dataType>String</dataType>
|
||||||
<maxOccurs>1</maxOccurs>
|
<maxOccurs>*</maxOccurs>
|
||||||
<note></note>
|
<tags>
|
||||||
|
<tag create="true">
|
||||||
|
<how>onValue</how>
|
||||||
|
</tag>
|
||||||
|
</tags>
|
||||||
<extra>
|
<extra>
|
||||||
<grsf>
|
<grsf>
|
||||||
<srcField></srcField>
|
<srcField>species</srcField>
|
||||||
<srcType>
|
<srcType>
|
||||||
<complexType>JsonArray</complexType>
|
<complexType>JsonArray</complexType>
|
||||||
</srcType>
|
</srcType>
|
||||||
<mandatory>aggregated</mandatory>
|
<mandatory>aggregated</mandatory>
|
||||||
<isSensitive>false</isSensitive>
|
<isSensitive>false</isSensitive>
|
||||||
<dstTypes>
|
<dstTypes>
|
||||||
<dstType>Field</dstType>
|
<dstType maxOccur="*">Field</dstType>
|
||||||
</dstTypes>
|
</dstTypes>
|
||||||
</grsf>
|
</grsf>
|
||||||
</extra>
|
</extra>
|
||||||
</metadatafield>
|
</metadatafield>
|
||||||
|
|
||||||
|
<metadatafield categoryref="stock_identity">
|
||||||
|
<fieldName>Similar GRSF Record</fieldName>
|
||||||
|
<mandatory>false</mandatory>
|
||||||
|
<dataType>String</dataType>
|
||||||
|
<maxOccurs>*</maxOccurs>
|
||||||
|
<extra>
|
||||||
|
<grsf>
|
||||||
|
<srcField>similar_grsf_records</srcField>
|
||||||
|
<srcType>
|
||||||
|
<complexType>JsonArray</complexType>
|
||||||
|
</srcType>
|
||||||
|
<mandatory>aggregated</mandatory>
|
||||||
|
<isSensitive>false</isSensitive>
|
||||||
|
<dstTypes>
|
||||||
|
<dstType maxOccur="*">Field</dstType>
|
||||||
|
</dstTypes>
|
||||||
|
</grsf>
|
||||||
|
</extra>
|
||||||
|
</metadatafield>
|
||||||
|
|
||||||
<metadatafield>
|
<!--
|
||||||
|
<metadatafield categoryref="">
|
||||||
<fieldName></fieldName>
|
<fieldName></fieldName>
|
||||||
<mandatory>false</mandatory>
|
<mandatory>false</mandatory>
|
||||||
<dataType>String</dataType>
|
<dataType>String</dataType>
|
||||||
<maxOccurs>1</maxOccurs>
|
<maxOccurs>*</maxOccurs>
|
||||||
<note></note>
|
<tags>
|
||||||
|
<tag create="true">
|
||||||
|
<how>onValue</how>
|
||||||
|
</tag>
|
||||||
|
</tags>
|
||||||
<extra>
|
<extra>
|
||||||
<grsf>
|
<grsf>
|
||||||
<srcField></srcField>
|
<srcField></srcField>
|
||||||
|
@ -325,7 +391,7 @@
|
||||||
<mandatory>aggregated</mandatory>
|
<mandatory>aggregated</mandatory>
|
||||||
<isSensitive>false</isSensitive>
|
<isSensitive>false</isSensitive>
|
||||||
<dstTypes>
|
<dstTypes>
|
||||||
<dstType>Field</dstType>
|
<dstType maxOccur="*">Field</dstType>
|
||||||
</dstTypes>
|
</dstTypes>
|
||||||
</grsf>
|
</grsf>
|
||||||
</extra>
|
</extra>
|
||||||
|
|
Loading…
Reference in New Issue