CommandCode#

Fully qualified datatype name of the UML model DDI-CDI 1.0: DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::CommandCode

Definition#

Contains information on the command used for processing data. Contains a description of the command which should clarify for the user the purpose and process of the command, an in-line provision of the command itself, and a reference to an external version of the command such as a coding script.

Diagram#

Diagram

Attributes#

Attributes
Attributes#

Name

Inherited from

Description

Data Type

Multiplicity

Default value

command

- own datatype -

This is an in-line provision of the command itself. It provides the programming language used as well as the command.

Command

0..*

commandFile

- own datatype -

Identifies and provides a link to an external copy of the command, for example, a SAS Command Code script. Designates the programming language of the command file as well as the URI for the file.

CommandFile

0..*

description

- own datatype -

A description of the purpose and use of the command code provided. Supports multiple languages.

InternationalString

0..1

Usage#

Usage
Usage#

Type

Package

Classifier

Attribute

Class

Process

ConditionalControlLogic

condition

Class

Process

Step

script

Class

Representations

ClassificationIndex

codingInstruction

Class

Representations

ClassificationIndexEntry

codingInstruction

Encodings#

Syntax representations / encodings

All syntax representations except the Canonical XMI are provided as reference points for specific implementations, or for use as defaults if sufficient in the form presented.

Fragment for the data type CommandCode (entire model as XMI)

 1<packagedElement xmlns:StandardProfile="http://www.omg.org/spec/UML/20131001/StandardProfile"
 2                  xmlns:uml="http://www.omg.org/spec/UML/20131001"
 3                  xmlns:xmi="http://www.omg.org/spec/XMI/20131001"
 4                  xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode"
 5                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandCode"
 6                  xmi:type="uml:DataType">
 7   <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode-ownedComment"
 8                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandCode-ownedComment"
 9                  xmi:type="uml:Comment">
10      <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode"/>
11      <body>Definition
12============
13Contains information on the command used for processing data. Contains a description of the command which should clarify for the user the purpose and process of the command, an in-line provision of the command itself, and a reference to an external version of the command such as a coding script.</body>
14   </ownedComment>
15   <name>CommandCode</name>
16   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode-command"
17                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandCode-command"
18                    xmi:type="uml:Property">
19      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode-command-ownedComment"
20                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandCode-command-ownedComment"
21                     xmi:type="uml:Comment">
22         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode-command"/>
23         <body>This is an in-line provision of the command itself. It provides the programming language used as well as the command.</body>
24      </ownedComment>
25      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode-command-lowerValue"
26                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandCode-command-lowerValue"
27                   xmi:type="uml:LiteralInteger"/>
28      <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode-command-upperValue"
29                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandCode-command-upperValue"
30                   xmi:type="uml:LiteralUnlimitedNatural">
31         <value>*</value>
32      </upperValue>
33      <name>command</name>
34      <isOrdered>true</isOrdered>
35      <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-Command"/>
36   </ownedAttribute>
37   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode-commandFile"
38                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandCode-commandFile"
39                    xmi:type="uml:Property">
40      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode-commandFile-ownedComment"
41                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandCode-commandFile-ownedComment"
42                     xmi:type="uml:Comment">
43         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode-commandFile"/>
44         <body>Identifies and provides a link to an external copy of the command, for example, a SAS Command Code script. Designates the programming language of the command file as well as the URI for the file.</body>
45      </ownedComment>
46      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode-commandFile-lowerValue"
47                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandCode-commandFile-lowerValue"
48                   xmi:type="uml:LiteralInteger"/>
49      <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode-commandFile-upperValue"
50                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandCode-commandFile-upperValue"
51                   xmi:type="uml:LiteralUnlimitedNatural">
52         <value>*</value>
53      </upperValue>
54      <name>commandFile</name>
55      <isOrdered>true</isOrdered>
56      <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandFile"/>
57   </ownedAttribute>
58   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode-description"
59                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandCode-description"
60                    xmi:type="uml:Property">
61      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode-description-ownedComment"
62                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandCode-description-ownedComment"
63                     xmi:type="uml:Comment">
64         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode-description"/>
65         <body>A description of the purpose and use of the command code provided. Supports multiple languages.</body>
66      </ownedComment>
67      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode-description-lowerValue"
68                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandCode-description-lowerValue"
69                   xmi:type="uml:LiteralInteger"/>
70      <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandCode-description-upperValue"
71                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandCode-description-upperValue"
72                   xmi:type="uml:LiteralUnlimitedNatural">
73         <value>1</value>
74      </upperValue>
75      <name>description</name>
76      <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-InternationalString"/>
77   </ownedAttribute>
78</packagedElement>

Fragment for the data type CommandCode (entire XML Schema)

 1<xs:element name="CommandCode"
 2            type="CommandCodeXsdType"
 3            xml:id="CommandCode">
 4  <!-- based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::CommandCode -->
 5  <xs:annotation>
 6    <xs:documentation>Definition
 7          ============
 8          Contains information on the command used for processing data. Contains a description of the command which should clarify for the user the purpose and process of the command, an in-line provision of the command itself, and a reference to an external version of the command such as a coding script.</xs:documentation>
 9  </xs:annotation>
10</xs:element>
11<xs:complexType name="CommandCodeXsdType"
12                xml:id="CommandCodeXsdType">
13  <xs:annotation>
14    <xs:documentation>Definition
15          ============
16          Contains information on the command used for processing data. Contains a description of the command which should clarify for the user the purpose and process of the command, an in-line provision of the command itself, and a reference to an external version of the command such as a coding script.</xs:documentation>
17  </xs:annotation>
18  <xs:sequence>
19    <xs:element name="command"
20                type="CommandXsdType"
21                minOccurs="0"
22                maxOccurs="unbounded"
23                xml:id="CommandCode-command">
24      <xs:annotation>
25        <xs:documentation>This is an in-line provision of the command itself. It provides the programming language used as well as the command.</xs:documentation>
26      </xs:annotation>
27    </xs:element>
28    <xs:element name="commandFile"
29                type="CommandFileXsdType"
30                minOccurs="0"
31                maxOccurs="unbounded"
32                xml:id="CommandCode-commandFile">
33      <xs:annotation>
34        <xs:documentation>Identifies and provides a link to an external copy of the command, for example, a SAS Command Code script. Designates the programming language of the command file as well as the URI for the file.</xs:documentation>
35      </xs:annotation>
36    </xs:element>
37    <xs:element name="description"
38                type="InternationalStringXsdType"
39                minOccurs="0"
40                maxOccurs="1"
41                xml:id="CommandCode-description">
42      <xs:annotation>
43        <xs:documentation>A description of the purpose and use of the command code provided. Supports multiple languages.</xs:documentation>
44      </xs:annotation>
45    </xs:element>
46  </xs:sequence>
47</xs:complexType>

Fragment for the data type CommandCode (entire JSON Schema)

 1"dt-CommandCode": {
 2  "description": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/CommandCode",
 3  "type": ["object"],
 4  "properties": {
 5    "command": {
 6      "$comment": "cardinality 0..-1 – from cdi:CommandCode",
 7      "if": { "type": "array" },
 8      "then": { "items": { "$ref": "#/defs/dt-Command" } },
 9      "else": { "$ref": "#/defs/dt-Command" }
10    },
11    "commandFile": {
12      "$comment": "cardinality 0..-1 – from cdi:CommandCode",
13      "if": { "type": "array" },
14      "then": { "items": { "$ref": "#/defs/dt-CommandFile" } },
15      "else": { "$ref": "#/defs/dt-CommandFile" }
16    },
17    "description": {
18      "$comment": "cardinality 0..1 – from cdi:CommandCode",
19      "$ref": "#/defs/dt-InternationalString"
20    },
21    "@type": {
22      "const": "CommandCode"
23    }
24  },
25  "required": ["@type"],
26  "additionalProperties": false
27},

Fragment for the data type CommandCode (main ontology)

 1# datatype CommandCode
 2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::CommandCode
 3cdi:CommandCode
 4  a rdfs:Class, owl:Class, ucmis:StructuredDataType;
 5  rdfs:label "CommandCode";
 6  rdfs:comment "Definition\n============\nContains information on the command used for processing data. Contains a description of the command which should clarify for the user the purpose and process of the command, an in-line provision of the command itself, and a reference to an external version of the command such as a coding script."@en;
 7  
 8  owl:hasKey (cdi:CommandCode-command cdi:CommandCode-commandFile cdi:CommandCode-description);
 9.
10
11cdi:CommandCode-command
12  a rdf:Property, owl:ObjectProperty, ucmis:Attribute;
13  rdfs:label "command";
14  rdfs:comment "This is an in-line provision of the command itself. It provides the programming language used as well as the command."@en;
15  rdfs:domain cdi:CommandCode;
16  rdfs:range cdi:Command;
17.
18
19cdi:CommandCode-commandFile
20  a rdf:Property, owl:ObjectProperty, ucmis:Attribute;
21  rdfs:label "commandFile";
22  rdfs:comment "Identifies and provides a link to an external copy of the command, for example, a SAS Command Code script. Designates the programming language of the command file as well as the URI for the file."@en;
23  rdfs:domain cdi:CommandCode;
24  rdfs:range cdi:CommandFile;
25.
26
27cdi:CommandCode-description
28  a rdf:Property, owl:ObjectProperty, ucmis:Attribute;
29  rdfs:label "description";
30  rdfs:comment "A description of the purpose and use of the command code provided. Supports multiple languages."@en;
31  rdfs:domain cdi:CommandCode;
32  rdfs:range cdi:InternationalString;
33.

Fragment for the data type CommandCode (entire JSON-LD)

 1{
 2  "@context": [
 3    {
 4      "cdi": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/",
 5      "xsd": "http://www.w3.org/2001/XMLSchema#",
 6
 7      "command": {
 8        "@id": "cdi:CommandCode-command",
 9        "@type": "@id",
10        "@context": "Command.jsonld"
11      },
12      "commandFile": {
13        "@id": "cdi:CommandCode-commandFile",
14        "@type": "@id",
15        "@context": "CommandFile.jsonld"
16      },
17      "description": {
18        "@id": "cdi:CommandCode-description",
19        "@type": "@id",
20        "@context": "InternationalString.jsonld"
21      },
22      
23      " comment ": "tag:json-should-support-trailing-commas" 
24    }
25  ],
26  "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2025-08-29 14:34:55.",
27  "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::CommandCode"
28}

Fragment for the data type CommandCode (entire SHACL - Shapes Constraint Language)

 1# datatype CommandCode
 2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::CommandCode
 3<#CommandCode> a sh:NodeShape;
 4    sh:targetClass cdi:CommandCode;
 5	sh:message "See http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/CommandCode";
 6	sh:closed true;
 7	sh:ignoredProperties ( owl:sameAs );
 8    sh:property [
 9			sh:path rdf:type;
10			sh:in (   cdi:CommandCode
11			 ) ;
12    ];
13    # attributes
14    sh:property <#CommandCode-command>;
15    sh:property <#CommandCode-commandFile>;
16    sh:property <#CommandCode-description>;
17
18
19
20.
21
22<#CommandCode-command> a sh:PropertyShape ;
23    sh:path cdi:CommandCode-command;
24    sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
25        cdi:Command
26      
27    ) ]];
28.
29<#CommandCode-commandFile> a sh:PropertyShape ;
30    sh:path cdi:CommandCode-commandFile;
31    sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
32        cdi:CommandFile
33      
34    ) ]];
35.
36<#CommandCode-description> a sh:PropertyShape ;
37    sh:path cdi:CommandCode-description;
38    sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
39        cdi:InternationalString
40        cdi:BibliographicName
41        cdi:LabelForDisplay
42      
43    ) ]];
44    sh:maxCount 1;
45.

Fragment for the data type CommandCode (entire ShEx - Shape Expressions)

1# datatype CommandCode
2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::CommandCode
3cdi:CommandCodeShape CLOSED {
4	a [cdi:CommandCode];
5	cdi:CommandCode-command	@cdi:CommandShape*;
6	cdi:CommandCode-commandFile	@cdi:CommandFileShape*;
7	cdi:CommandCode-description	@cdi:InternationalStringShape?;
8	}