CompType

Last modified by Artur K. on 2026/06/05 16:18

  

https://purl.semanticip.org/linked-data/sdmx/ML/dsd/CompType page_white_text TTL
owl:Class
Comp Type
http://www.sdmx.org/resources/sdmxml/schemas/v3_1/data/structurespecific
dsd
complexType

CompType is the abstract base for any component value (e.g. a data or metadata attribute, or a measure) that cannot be represented as an XML attribute. For example, a repeated value, a text value in multiple languages, or a value with structured text (XHTML) cannot be expressed as an XML attribute. This type is meant to be restricted based on the component to restrict the cardinality and type of its Value element to conform to the component definition. The type of the value element should be restricted to common:SimpleValueType, common:TextValueType, or common:StructuredValueType. In addition, the id attribute should be restricted to be a fixed value with the component identifier. This restricted type based on the component can then be used on Comp elements by using the xsi:type to state the component being expressed and refine the contents of the element to the values allowed by the component.

SDMXDataStructureSpecific.xsd

<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="CompType" abstract="true">
  <xs:annotation>
   <xs:documentation>CompType is the abstract base for any component value (e.g. a data or metadata attribute, or a measure) that cannot be represented as an XML attribute. For example, a repeated value, a text value in multiple languages, or a value with structured text (XHTML) cannot be expressed as an XML attribute. This type is meant to be restricted based on the component to restrict the cardinality and type of its Value element to conform to the component definition. The type of the value element should be restricted to common:SimpleValueType, common:TextValueType, or common:StructuredValueType. In addition, the id attribute should be restricted to be a fixed value with the component identifier. This restricted type based on the component can then be used on Comp elements by using the xsi:type to state the component being expressed and refine the contents of the element to the values allowed by the component.</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
   <xs:extension base="common:AnnotableType">
    <xs:sequence>
     <xs:element name="Value" type="common:ValueType" minOccurs="0" maxOccurs="unbounded" form="unqualified">
      <xs:annotation>
       <xs:documentation />
      </xs:annotation>
     </xs:element>
    </xs:sequence>
    <xs:attribute name="id" type="common:NCNameIDType" use="required" />
   </xs:extension>
  </xs:complexContent>
 </xs:complexType>

 

rdfs:subClassOf sip-sdmx-ML-common:AnnotableType ;
rdfs:subClassOf [
    a owl:Restriction ;
    owl:onProperty sip-sdmx-ML:Value ;
    owl:allValuesFrom sip-sdmx-ML-common:ValueType
] ;
rdfs:subClassOf [
    a owl:Restriction ;
    owl:onProperty sip-sdmx-ML:id ;
    owl:allValuesFrom sip-sdmx-ML-common:NCNameIDType
] ;
rdfs:subClassOf [
    a owl:Restriction ;
    owl:onProperty sip-sdmx-ML:id ;
    owl:qualifiedCardinality 1 ;
    owl:onDataRange sip-sdmx-ML-common:NCNameIDType
] ;

© Semantic R&D Group, 2026