Changes for page 5 Reference Metadata
Last modified by Helena on 2025/09/10 11:19
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,6 +1,4 @@ 1 -{{box title="**Contents**"}} 2 -{{toc/}} 3 -{{/box}} 1 += 5 Reference Metadata = 4 4 5 5 == 5.1 Scope of the Metadata Structure Definition (MSD) == 6 6 ... ... @@ -25,14 +25,60 @@ 25 25 26 26 The high-level view of the MSD, as well as the way the Metadataflow and Metadata Provision Agreement specify the Targets: 27 27 26 +**<str:MetadataStructure agencyID="SDMX" id="MSD" version="1.0.0-draft">** 28 28 29 -(% class="wikigeneratedid" id="HFigure3:WildcardedTargetObjectsasspecifiedinaMetadataflow" %) 30 -**Figure 3: Wildcarded Target Objects as specified in a Metadataflow** 28 +**<com:Name>MSD 3.0 sample</com:Name>** 31 31 30 +**<str:MetadataAttributeDescriptor id="MetadataAttributeDescriptor">** 32 32 33 -(% class="wikigeneratedid" id="HFigure4:SpecificTargetObjectsasspecifiedinaMetadataProvisionAgreement" %) 34 -**Figure 4: Specific Target Objects as specified in a Metadata Provision Agreement** 32 +**...** 35 35 34 +**</str: MetadataAttributeDescriptor>** 35 + 36 +**</str:MetadataStructure>** 37 + 38 +**Figure 2: The high-level view of the MSD containing one Metadata Attribute Descriptor** 39 + 40 +**<str:Metadataflow agencyID="OECD" id="GENERAL_METADATA" version="1.0.0draft">** 41 + 42 +**<com:Name xml:lang="en">Metadataflow 3.0 sample</com:Name> <str:Structure>urn:sdmx:org.sdmx.infomodel.metadatastructure.** 43 + 44 +**MetadataStructure=OECD:MSD(1.0.0-draft)</str:Structure>** 45 + 46 +**<!~-~- Attach to any Dataflows maintained by the OECD ~-~-> <str:Targets>urn:sdmx:org.sdmx.infomodel.datastructure.** 47 + 48 +**Dataflow=OECD:*(*)</str:Targets>** 49 + 50 +**</str:Metadataflow>** 51 + 52 +==== Figure 3: Wildcarded Target Objects as specified in a Metadataflow ==== 53 + 54 +**<str:MetadataProvisionAgreement agencyID="OECD" id="ABS_INDICATORS" version="1.0.0-draft">** 55 + 56 +**<com:Name xml:lang="en">Metadata Provision Agreement 3.0 sample</com:Name>** 57 + 58 +**<str:StructureUsage>urn:sdmx:org.sdmx.infomodel.metadatastructure.** 59 + 60 +**Metadataflow=OECD:GENERAL_METADATA(1.0.0-draft)</str:StructureUsage>** 61 + 62 +**<str:MetadataProvider>urn:sdmx:org.sdmx.infomodel.base.** 63 + 64 +**MetadataProvider=OECD:METADATA_PROVIDERS(1.0).ABS</str:MetadataProvider>** 65 + 66 +**<!~-~- Attach to specific Dataflows maintained by the OECD ~-~->** 67 + 68 +**<str:Target>urn:sdmx:org.sdmx.infomodel.datastructure.Dataflow= OECD:GDP(*)</str:Target>** 69 + 70 +**<str:Target>urn:sdmx:org.sdmx.infomodel.datastructure.Dataflow= OECD:EXR(*)</str:Target>** 71 + 72 +**<str:Target>urn:sdmx:org.sdmx.infomodel.datastructure.Dataflow=** 73 + 74 +**OECD:ABC(*)</str:Target>** 75 + 76 +**</str:MetadataProvisionAgreement>** 77 + 78 +==== Figure 4: Specific Target Objects as specified in a Metadata Provision Agreement ==== 79 + 36 36 Note that the SDMX-ML schemas have specific XML elements for each identifiable object type because identifying, for instance, a Maintainable Object has different properties from an Identifiable Object which must also include the agencyId, version, and id of the Maintainable Object in which it resides. 37 37 38 38 == 5.3 Metadata Structure Definition == ... ... @@ -39,22 +39,125 @@ 39 39 40 40 An example is shown below. 41 41 86 +**<str:MetadataStructure agencyID="SDMX" id="MSD" version="1.0.0-draft">** 42 42 88 +**<com:Name>MSD 3.0 sample</com:Name>** 89 + 90 +**<str:MetadataAttributeDescriptor id="MetadataAttributeDescriptor">** 91 + 92 +**<str:MetadataAttribute id="CONTACT" isPresentational="true"> <str:ConceptIdentity>urn:sdmx:org.sdmx.infomodel.conceptscheme.** 93 + 94 +**Concept=SDMX:CONCEPTS(1.0.0).CONTACT</str:ConceptIdentity>** 95 + 96 +**<str:MetadataAttribute id="CONTACT_NAME" minOccurs="1" maxOccurs="1">** 97 + 98 +**<str:ConceptIdentity>urn:sdmx:org.sdmx.infomodel.conceptscheme.** 99 + 100 +**Concept=SDMX:CONCEPTS(1.0.0).CONTACT_NAME</str:ConceptIdentity>** 101 + 102 +**<str:LocalRepresentation>** 103 + 104 +**<str:TextFormat textType="String"/>** 105 + 106 +**</str:LocalRepresentation>** 107 + 108 +**</str:MetadataAttribute>** 109 + 110 +**<str:MetadataAttribute id="ADDRESS" minOccurs="1" maxOccurs="3" isPresentational="true">** 111 + 112 +**<str:ConceptIdentity>urn:sdmx:org.sdmx.infomodel.conceptscheme.** 113 + 114 +**Concept=SDMX:CONCEPTS(1.0.0).ADDRESS</str:ConceptIdentity> <str:MetadataAttribute id="HOUSE_NUMBER" minOccurs="1" maxOccurs="1">** 115 + 116 +**<str:ConceptIdentity>urn:sdmx:org.sdmx.infomodel.conceptscheme.** 117 + 118 +**Concept=SDMX:CONCEPTS(1.0.0).HOUSE_NUMBER</str:ConceptIdentity>** 119 + 120 +**<str:LocalRepresentation>** 121 + 122 +**<str:TextFormat textType="Integer"/>** 123 + 124 +**</str:LocalRepresentation>** 125 + 126 +**</str:MetadataAttribute>** 127 + 128 +**</str:MetadataAttribute>** 129 + 130 +**</str:MetadataAttribute>** 131 + 132 +**</str:MetadataAttributeDescriptor>** 133 + 134 +**</str:MetadataStructure>** 135 + 43 43 **Figure 5: Example MSD showing specification of some Metadata Attributes **This example shows the following hierarchy of Metadata Attributes: 44 44 45 -* Contact – this is presentational; no metadata is expected to be reported at this level 46 -** Contact Name 47 -** Address – this is also presentational; up to 3 addresses are allowed 48 -*** House Number 138 +• Contact – this is presentational; no metadata is expected to be reported at this level 49 49 140 +* Contact Name 141 +* Address – this is also presentational; up to 3 addresses are allowed 142 + 143 +▪ House Number 144 + 50 50 == 5.4 Metadata Set == 51 51 52 52 An example of reporting metadata according to the MSD described above, is shown below. 53 53 149 +**<msg:MetadataSet id="ALB" metadataProviderID="OECD" version="1.0.0"> <str:MetadataProvision>urn:sdmx:org.sdmx.infomodel.registry.MetadataProvis ionAgreement=OECD:ABS_INDICATORS(1.0.0-draft)</str:MetadataProvision> <str:Target>urn:sdmx:org.sdmx.infomodel.datastructure.Dataflow=OECD:GDP(1.** 54 54 55 -(% class="wikigeneratedid" id="HFigure6:ExampleMetadataSet" %) 56 -**Figure 6: Example Metadata Set** 151 +**0.0)</str:Target>** 57 57 153 +**<md:AttributeSet>** 154 + 155 +**<md:ReportedAttribute id="CONTACT">** 156 + 157 +**<md:AttributeSet>** 158 + 159 +**<md:ReportedAttribute id="CONTACT_NAME">John Doe** 160 + 161 +**</md:ReportedAttribute>** 162 + 163 +**<md:ReportedAttribute id="ADDRESS">** 164 + 165 +**<md:AttributeSet>** 166 + 167 +**<md:ReportedAttribute id="STREET_NAME">** 168 + 169 +**<com:Text xml:lang="en">5th Avenue</com:Text>** 170 + 171 +**</md:ReportedAttribute>** 172 + 173 +**<md:ReportedAttribute id="HOUSE_NUMBER">12** 174 + 175 +**</md:ReportedAttribute>** 176 + 177 +**</md:AttributeSet>** 178 + 179 +**</md:ReportedAttribute>** 180 + 181 +**<md:ReportedAttribute id="HTML_ATTR">** 182 + 183 +**<com:StructuredText xml:lang="en">** 184 + 185 +**<div xmlns="http:~/~/www.w3.org/1999/xhtml">** 186 + 187 +**<p>Lorem Ipsum</p>** 188 + 189 +**</div>** 190 + 191 +**</com:StructuredText>** 192 + 193 +**</md:ReportedAttribute>** 194 + 195 +**</md:AttributeSet>** 196 + 197 +**</md:ReportedAttribute>** 198 + 199 +**</md:AttributeSet>** 200 + 201 +**</msg:MetadataSet>** 202 + 203 +==== Figure 6: Example Metadata Set ==== 204 + 58 58 This example shows: 59 59 60 60 1. The reference to the Metadata Provision Agreement and Metadata Target