INSPIRE-MIF / helpdesk-validator

Community discussion forum for INSPIRE validation issues
41 stars 22 forks source link

ETF error of ge_gp:distributionInfo element #992

Closed JulianaKar closed 10 months ago

JulianaKar commented 10 months ago

Dear all, I am facing a problem transforming data according to https://inspire.ec.europa.eu/schemas/ge_gp/4.0/GeophysicsCore.xsd, feature type Campaign, attribute distributionInfo. When I fill in this attribute, the ETF validator shows the following error: The dataset has 1 file(s) with errors for this assertion. XML document 'GPH_Campain_INSPIRE2new.gml': The file has 2 schema validation error(s). XML document 'GPH_Campain_INSPIRE2new.gml': 33:61: cvc-complex-type.2.3: Element 'ge_gp:distributionInfo' cannot have character [children], because the type's content type is element-only. XML document 'GPH_Campain_INSPIRE2new.gml': 33:61: cvc-complex-type.2.4.b: The content of element 'ge_gp:distributionInfo' is not complete. One of '{"http://www.isotc211.org/2005/gmd":MD_Distributor}' is expected. I tried to fill distributionInfo attribute with plain text and also with „# + dataType MD_Distributor id“ in order to transfer the information from MD_Distributor dataType to the distributionInfo attribute of the featureType Campaign, but the result of the ETF is the same. How should I fill this attribute without error in ETF?

Best regards, Juliana

fabiovinci commented 10 months ago

Dear @JulianaKar,

if you can provide an example we can take a look and give you more detailed feedback.

In any case, considering the structure of the related data type MD_Distributor, you need to verify that you are providing at least the mandatory attributes.

As a reference, you can have a look at the whole structure reported below as an example:

<ge_gp:distributionInfo>
                <gmd:MD_Distributor>
                    <gmd:distributorContact xlink:type="simple">
                        <gmd:CI_ResponsibleParty>
                            <gmd:individualName>
                                <gco:CharacterString></gco:CharacterString>
                            </gmd:individualName>
                            <gmd:organisationName>
                                <gco:CharacterString></gco:CharacterString>
                            </gmd:organisationName>
                            <gmd:positionName>
                                <gco:CharacterString></gco:CharacterString>
                            </gmd:positionName>
                            <gmd:contactInfo xlink:type="simple">
                                <gmd:CI_Contact>
                                    <gmd:phone xlink:type="simple">
                                        <gmd:CI_Telephone>
                                            <gmd:voice>
                                                <gco:CharacterString></gco:CharacterString>
                                            </gmd:voice>
                                            <gmd:facsimile>
                                                <gco:CharacterString></gco:CharacterString>
                                            </gmd:facsimile>
                                        </gmd:CI_Telephone>
                                    </gmd:phone>
                                    <gmd:address xlink:type="simple">
                                        <gmd:CI_Address>
                                            <gmd:deliveryPoint>
                                                <gco:CharacterString></gco:CharacterString>
                                            </gmd:deliveryPoint>
                                            <gmd:city>
                                                <gco:CharacterString></gco:CharacterString>
                                            </gmd:city>
                                            <gmd:administrativeArea>
                                                <gco:CharacterString></gco:CharacterString>
                                            </gmd:administrativeArea>
                                            <gmd:postalCode>
                                                <gco:CharacterString></gco:CharacterString>
                                            </gmd:postalCode>
                                            <gmd:country>
                                                <gco:CharacterString></gco:CharacterString>
                                            </gmd:country>
                                            <gmd:electronicMailAddress>
                                                <gco:CharacterString></gco:CharacterString>
                                            </gmd:electronicMailAddress>
                                        </gmd:CI_Address>
                                    </gmd:address>
                                    <gmd:onlineResource xlink:type="simple">
                                        <gmd:CI_OnlineResource>
                                            <gmd:linkage>
                                                <gmd:URL></gmd:URL>
                                            </gmd:linkage>
                                            <gmd:protocol>
                                                <gco:CharacterString></gco:CharacterString>
                                            </gmd:protocol>
                                            <gmd:applicationProfile>
                                                <gco:CharacterString></gco:CharacterString>
                                            </gmd:applicationProfile>
                                            <gmd:name>
                                                <gco:CharacterString></gco:CharacterString>
                                            </gmd:name>
                                            <gmd:description>
                                                <gco:CharacterString></gco:CharacterString>
                                            </gmd:description>
                                            <gmd:function>
                                                <gmd:CI_OnLineFunctionCode codeList="" codeListValue=""></gmd:CI_OnLineFunctionCode>
                                            </gmd:function>
                                        </gmd:CI_OnlineResource>
                                    </gmd:onlineResource>
                                    <gmd:hoursOfService>
                                        <gco:CharacterString></gco:CharacterString>
                                    </gmd:hoursOfService>
                                    <gmd:contactInstructions>
                                        <gco:CharacterString></gco:CharacterString>
                                    </gmd:contactInstructions>
                                </gmd:CI_Contact>
                            </gmd:contactInfo>
                            <gmd:role>
                                <gmd:CI_RoleCode codeList="" codeListValue=""></gmd:CI_RoleCode>
                            </gmd:role>
                        </gmd:CI_ResponsibleParty>
                    </gmd:distributorContact>
                    <gmd:distributionOrderProcess xlink:type="simple">
                        <gmd:MD_StandardOrderProcess>
                            <gmd:fees>
                                <gco:CharacterString></gco:CharacterString>
                            </gmd:fees>
                            <gmd:plannedAvailableDateTime>
                                <gco:DateTime></gco:DateTime>
                            </gmd:plannedAvailableDateTime>
                            <gmd:orderingInstructions>
                                <gco:CharacterString></gco:CharacterString>
                            </gmd:orderingInstructions>
                            <gmd:turnaround>
                                <gco:CharacterString></gco:CharacterString>
                            </gmd:turnaround>
                        </gmd:MD_StandardOrderProcess>
                    </gmd:distributionOrderProcess>
                    <gmd:distributorFormat xlink:type="simple">
                        <gmd:MD_Format>
                            <gmd:name>
                                <gco:CharacterString></gco:CharacterString>
                            </gmd:name>
                            <gmd:version>
                                <gco:CharacterString></gco:CharacterString>
                            </gmd:version>
                            <gmd:amendmentNumber>
                                <gco:CharacterString></gco:CharacterString>
                            </gmd:amendmentNumber>
                            <gmd:specification>
                                <gco:CharacterString></gco:CharacterString>
                            </gmd:specification>
                            <gmd:fileDecompressionTechnique>
                                <gco:CharacterString></gco:CharacterString>
                            </gmd:fileDecompressionTechnique>
                            <gmd:formatDistributor xlink:type="simple">
                                <gmd:MD_Distributor></gmd:MD_Distributor>
                            </gmd:formatDistributor>
                        </gmd:MD_Format>
                    </gmd:distributorFormat>
                    <gmd:distributorTransferOptions xlink:type="simple">
                        <gmd:MD_DigitalTransferOptions>
                            <gmd:unitsOfDistribution>
                                <gco:CharacterString></gco:CharacterString>
                            </gmd:unitsOfDistribution>
                            <gmd:transferSize>
                                <gco:Real></gco:Real>
                            </gmd:transferSize>
                            <gmd:onLine xlink:type="simple">
                                <gmd:CI_OnlineResource>
                                    <gmd:linkage>
                                        <gmd:URL></gmd:URL>
                                    </gmd:linkage>
                                    <gmd:protocol>
                                        <gco:CharacterString></gco:CharacterString>
                                    </gmd:protocol>
                                    <gmd:applicationProfile>
                                        <gco:CharacterString></gco:CharacterString>
                                    </gmd:applicationProfile>
                                    <gmd:name>
                                        <gco:CharacterString></gco:CharacterString>
                                    </gmd:name>
                                    <gmd:description>
                                        <gco:CharacterString></gco:CharacterString>
                                    </gmd:description>
                                    <gmd:function>
                                        <gmd:CI_OnLineFunctionCode codeList="" codeListValue=""></gmd:CI_OnLineFunctionCode>
                                    </gmd:function>
                                </gmd:CI_OnlineResource>
                            </gmd:onLine>
                            <gmd:offLine xlink:type="simple">
                                <gmd:MD_Medium>
                                    <gmd:name>
                                        <gmd:MD_MediumNameCode codeList="" codeListValue=""></gmd:MD_MediumNameCode>
                                    </gmd:name>
                                    <gmd:density>
                                        <gco:Real></gco:Real>
                                    </gmd:density>
                                    <gmd:densityUnits>
                                        <gco:CharacterString></gco:CharacterString>
                                    </gmd:densityUnits>
                                    <gmd:volumes>
                                        <gco:Integer></gco:Integer>
                                    </gmd:volumes>
                                    <gmd:mediumFormat>
                                        <gmd:MD_MediumFormatCode codeList="" codeListValue=""></gmd:MD_MediumFormatCode>
                                    </gmd:mediumFormat>
                                    <gmd:mediumNote>
                                        <gco:CharacterString></gco:CharacterString>
                                    </gmd:mediumNote>
                                </gmd:MD_Medium>
                            </gmd:offLine>
                        </gmd:MD_DigitalTransferOptions>
                    </gmd:distributorTransferOptions>
                </gmd:MD_Distributor>
            </ge_gp:distributionInfo>
JulianaKar commented 10 months ago

Thank you, your answer helped me to understand that I didn't take the updated transformation scheme from https://inspire.ec.europa.eu/schemas/2021.2/ge_gp/4.0. I see that in updated scheme this bug is fixed. Sorry for the disturbance.