SDMX Users Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: demography example demography.xml, and demography_xs.xml  (Read 8507 times)

JamesGardner

  • Newbie
  • *
  • Posts: 26
    • View Profile
demography example demography.xml, and demography_xs.xml
« on: July 09, 2011, 07:43:38 PM »

Hi!
I'm trying to parse these two files... and there are 2 observations in the demography_xs.xml file
line 45 and 46, character 25
         <Obs xsi:type="demo:LBIRTHST" OBS_STATUS="M" UNIT_MEASURE="PERS" UNIT_MULT="0"/>
         <Obs xsi:type="demo:DEATHST" OBS_STATUS="M" UNIT_MEASURE="PERS" UNIT_MULT="0"/>
that do not have OBS_VALUE fields in them... if an observation doesn't have a primary measure.. should i just ignore the observation??
Thanks
    James Gardner

Logged

JamesGardner

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: demography example demography.xml, and demography_xs.xml
« Reply #1 on: July 10, 2011, 01:26:57 AM »

also...
i have noticed in the structure package..
Dimension's Local Representation, has an EnumerationFormat for which the type is misspelt 'CodededTextFormat'
Regards
    James Gardner
Logged

JamesGardner

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: demography example demography.xml, and demography_xs.xml
« Reply #2 on: August 03, 2011, 02:21:42 AM »

This is the concept for OBS_VALUE in ecb_exr_ng_full.xml
            <structure:Concept id="OBS_VALUE" urn="urn:sdmx:org.sdmx.infomodel.conceptscheme.Concept=SDMX:CROSS_DOMAIN_CONCEPTS(1.0).OBS_VALUE">
               <common:Annotations>
                  <common:Annotation>
                     <common:AnnotationType>CONTEXT</common:AnnotationType>
                     <common:AnnotationText xml:lang="en">The "observation value" is the field which holds the data.</common:AnnotationText>
                  </common:Annotation>
               </common:Annotations>
               <common:Name>Observation value</common:Name>
               <common:Description xml:lang="en">The value of a particular variable at a particular period.</common:Description>
               <structure:CoreRepresentation>
                  <structure:TextFormat textType="String"/>
               </structure:CoreRepresentation>
            </structure:Concept>
is there any reason why this should be interpreted as a 'String'... this concept is the PrimaryMeasure for the structure.. and does not have a LocalRepresentation over-riding the TextFormat....
Regards
    James Gardner
Logged

JamesGardner

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: demography example demography.xml, and demography_xs.xml
« Reply #3 on: August 06, 2011, 05:39:43 AM »

Hi!
Another whine about demography.xml... the MSD demography.xml contains an attribute defined as this;
                  <structure:Attribute assignmentStatus="Mandatory">
                     <structure:ConceptIdentity>
                        <Ref agencyID="SDMX" maintainableParentID="CROSS_DOMAIN_CONCEPTS" maintainableParentVersion="1.0" id="DECIMALS"/>
                     </structure:ConceptIdentity>
                     <structure:LocalRepresentation>
                        <structure:Enumeration>
                           <Ref agencyID="SDMX" id="CL_DECIMALS" version="1.0"/>
                        </structure:Enumeration>
                     </structure:LocalRepresentation>
                     <structure:AttributeRelationship>
                        <structure:Dimension>
                           <Ref id="DEMO"/>
                        </structure:Dimension>
                     </structure:AttributeRelationship>
                  </structure:Attribute>
This would suggest that this attribute _MUST_ be present in the DSD.. however the DSD, demography_xs.xml does not contain a "DECIMALS" attribute at the series or observation level...
</whine>
I think i'll take this time to pray that noone declares a FREQ dimension before a time dimension(in an MSD).. because it breaks my code every time :P

Regards
   James Gardner
Logged