Closed wolkiewiczk closed 2 years ago
I consider this as bug on the data source's side. A header of a DataMessage cannot contain a StructureUsage artifact. Your intuition to replace this with structure is correct. It is a reference to the DSD structuring the dataset.
Pleas re-open this as needed.
Thank you for response. I contacted the developers of the data source and they disagreed with your point of view. They claim that the Structure tag can contain three types of tags based on reference type:
Structure
tag for DataStructureReferenceType,StructureUsage
tag for DataflowReferenceType,ProvisionAgreement
tag for ProvisionAgreementReferenceType.So i think that it is a bug on the library side as the DataflowReferenceType is not parsed correctly. I am not sure how the ProvisionAgreementReferenceType works as i did not test it.
Please re-open the issue as I cannot do it myself.
Thanks. Your perseverance is much appreciated. I will look into this asap. This needs to be fixed. My resources are very limited at the moment though.
No need to say that a PR would be welcome.
Which data source did you contact? A link would be helpful.
On 07/01/2021, Kacper Wolkiewicz notifications@github.com wrote:
Thank you for response. I contacted the developers of the data source and they disagreed with your point of view. They claim that the Structure tag can contain three types of tags based on reference type:
Structure
tag for DataStructureReferenceType,StructureUsage
tag for DataflowReferenceType,ProvisionAgreement
tag for ProvisionAgreementReferenceType.So i think that it is a bug on the library side as the DataflowReferenceType is not parsed correctly. I am not sure how the ProvisionAgreementReferenceType works as i did not test it.
-- You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub: https://github.com/dr-leo/pandaSDMX/issues/197#issuecomment-756055958
We are using Fusion Registry version 10.5.10. You can find out more about it here: https://metadatatechnology.com/software/FR10.php
To generate sdmx data file in FusionRegistry you need to click "Web service" > "Data" and the proper form with filters will show up. Unfortunately I cannot give you access to our data store now, but I hope the file that I provided will be enough. If you desperately need the access to data store, please contact me by the private message.
I would appreciate if you reopen the issue so it will not be lost in the closed ones. Github does not allow me to do it myself. Thanks for all your help and I hope the issue will be resolved soon.
Thanks. Access to further data won't be necessary. I'll see what I can do.
The file does not validate against sdmxmlmessage.xsd. The error_log shows an error in the Structure element of the header. This error does not seem to be related to the AttributeError. Still, I recommend to ensure that the header complies with the XSD.
On a separate note, it is impossible to parse a structure-specific data message without providing a CSD. If you request the data from an agency, pandasdmx attempts to download the CSD on the fly, if not provided by the user. But read_sdmx cannot do this as it does not know which agency to connect to.
That said, pandasdmx should raise a more meaningful exception in such cases. And it should properly parse a correct header, including all the structural metadata provided or referenced in the header.
Please let me know if this helps.
I am afraid that I don't understand what do you mean. What is sdmxmlmessage.xsd
? Is it an official xsd? Where I can get it from?
I also don't know what a CSD is. I would appreciate explanation.
Do I understand correctly that you suspect the data to be wrong? I am not sure how should I interpret your response.
Pls report if error persists in pandasdmx v1.8.0
Hi, I downloaded xml file with data from Fusion Registry that we use in our company for development purposes. I tried to open it with
read_sdmx
function as follows:What I've got was AttributeError, here is the traceback and some printed content:
I attach the xml file. What I discovered is that when I change a
common:StructureUsage
tag intocommon:Structure
than it works perfectly. So I am not sure if it is a problem with the file or with your library as I am not that familiar with SDMX format. Error message could be definitly more clear though.Thank you for help in advance.
fruit.zip