Skip to content

Commit

Permalink
Add real + constructed specimens for khaeru/sdmx#218
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Jan 9, 2025
1 parent b5c1667 commit 4881e40
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
33 changes: 33 additions & 0 deletions IMF/PCPS.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<mes:StructureSpecificTimeSeriesData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:str="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/structure"
xmlns:mes="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message"
xmlns:com="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common"
xmlns:datastruct="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/data/structurespecific" xsi:schemaLocation="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message https://registry.sdmx.org/schemas/v2_1/SDMXMessage.xsd">
<mes:Header xsi:type="mes:StructureSpecificTimeSeriesDataHeaderType">
<mes:ID>2666c277-7563-46a4-9e13-722676e254d5</mes:ID>
<mes:Test>false</mes:Test>
<mes:Prepared>2025-01-09T12:59:18</mes:Prepared>
<mes:Sender id="1C0">
<com:Name xml:lang="en">IMF</com:Name>
<mes:Contact>
<mes:URI>http://www.imf.org</mes:URI>
<mes:Telephone>+ 1 (202) 623-6220</mes:Telephone>
</mes:Contact>
</mes:Sender>
<mes:Receiver id="ZZZ"/>
<mes:Structure structureID="DS-PCPS" schemaURL="http://dataservices.imf.org/compact/PCPS.xsd" namespace="http://dataservices.imf.org/compact/PCPS" dimensionAtObservation="TIME_PERIOD" xsi:type="com:StructureSpecificDataTimeSeriesStructureType">
<com:Structure xsi:type="com:DataStructureReferenceType">
<Ref xsi:type="com:DataStructureRefType" agencyID="IMF" id="PCPS"/>
</com:Structure>
</mes:Structure>
<mes:DataSetID>PCPS</mes:DataSetID>
</mes:Header>
<mes:DataSet xmlns:d2p1="http://www.w3.org/2001/XMLSchema-instance"
xmlns:prs_PCPS="http://dataservices.imf.org/compact/PCPS" d2p1:type="prs_PCPS:DataSetType" datastruct:structureRef="DS-PCPS" datastruct:dataScope="DataStructure" d2p1:schemaLocation="http://dataservices.imf.org/compact/PCPS http://dataservices.imf.org/compact/PCPS.xsd">
<Series FREQ="M" REF_AREA="W00" COMMODITY="PZINC" UNIT_MEASURE="USD" UNIT_MULT="0" TIME_FORMAT="P1M">
<Obs TIME_PERIOD="2021-01" OBS_VALUE="2705.345"/>
</Series>
</mes:DataSet>
</mes:StructureSpecificTimeSeriesData>
41 changes: 41 additions & 0 deletions constructed/gh-218.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Constructed message that includes all fields in <m:Contact>. -->
<m:GenericData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:c="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common"
xmlns:g="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/data/generic"
xmlns:m="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message">
<m:Header>
<m:ID>2666c277-7563-46a4-9e13-722676e254d5</m:ID>
<m:Test>false</m:Test>
<m:Prepared>2025-01-09T12:59:18</m:Prepared>
<m:Sender id="ID">
<c:Name xml:lang="en">NAME</c:Name>
<m:Contact>
<c:Name xml:lang="en">Name</c:Name>
<m:Department xml:lang="en">Department</m:Department>
<m:Role xml:lang="en">Role</m:Role>
<m:Email>name@example.com</m:Email>
<m:Fax>+1 234 567 8901</m:Fax>
<m:URI>https://example.com</m:URI>
<m:Telephone>+1 234 567 8901</m:Telephone>
<m:X400>+1 234 567 8901</m:X400>
</m:Contact>
</m:Sender>
<m:Receiver id="ZZZ"/>
<m:Structure dimensionAtObservation="TIME_PERIOD" structureID="STR1">
<c:StructureUsage>
<Ref id="ISOC_CI_ID_H" agencyID="ESTAT" version="1.0"/>
</c:StructureUsage>
</m:Structure>
<m:DataSetID>X</m:DataSetID>
</m:Header>
<m:DataSet structureRef="STR1">
<g:Obs>
<g:ObsKey>
<g:Value id="TIME_PERIOD" value="2002"/>
</g:ObsKey>
<g:ObsValue value="17.47"/>
</g:Obs>
</m:DataSet>
</m:GenericData>

0 comments on commit 4881e40

Please sign in to comment.