Command#

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

Definition#

Provides the following information on the command: The content of the command and the programming language used.

Diagram#

Diagram

Attributes#

Attributes
Attributes#

Name

Inherited from

Description

Data Type

Multiplicity

Default value

commandContent

- own datatype -

Content of the command itself expressed in the language designated in programming language.

TypedString

0..1

programLanguage

- own datatype -

Designates the programming language used for the command. Supports the use of a controlled vocabulary.

ControlledVocabularyEntry

0..1

Usage#

Usage
Usage#

Type

Package

Classifier

Attribute

DataType

StructuredDataTypes

CommandCode

command

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 Command (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-Command"
 5                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Command"
 6                  xmi:type="uml:DataType">
 7   <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-Command-ownedComment"
 8                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Command-ownedComment"
 9                  xmi:type="uml:Comment">
10      <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-Command"/>
11      <body>Definition
12============
13Provides the following information on the command: The content of the command and the programming language used.</body>
14   </ownedComment>
15   <name>Command</name>
16   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-Command-commandContent"
17                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Command-commandContent"
18                    xmi:type="uml:Property">
19      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-Command-commandContent-ownedComment"
20                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Command-commandContent-ownedComment"
21                     xmi:type="uml:Comment">
22         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-Command-commandContent"/>
23         <body>Content of the command itself expressed in the language designated in programming language.</body>
24      </ownedComment>
25      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-Command-commandContent-lowerValue"
26                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Command-commandContent-lowerValue"
27                   xmi:type="uml:LiteralInteger"/>
28      <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-Command-commandContent-upperValue"
29                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Command-commandContent-upperValue"
30                   xmi:type="uml:LiteralUnlimitedNatural">
31         <value>1</value>
32      </upperValue>
33      <name>commandContent</name>
34      <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-TypedString"/>
35   </ownedAttribute>
36   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-Command-programLanguage"
37                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Command-programLanguage"
38                    xmi:type="uml:Property">
39      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-Command-programLanguage-ownedComment"
40                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Command-programLanguage-ownedComment"
41                     xmi:type="uml:Comment">
42         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-Command-programLanguage"/>
43         <body>Designates the programming language used for the command. Supports the use of a controlled vocabulary.</body>
44      </ownedComment>
45      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-Command-programLanguage-lowerValue"
46                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Command-programLanguage-lowerValue"
47                   xmi:type="uml:LiteralInteger"/>
48      <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-Command-programLanguage-upperValue"
49                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#Command-programLanguage-upperValue"
50                   xmi:type="uml:LiteralUnlimitedNatural">
51         <value>1</value>
52      </upperValue>
53      <name>programLanguage</name>
54      <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-ControlledVocabularyEntry"/>
55   </ownedAttribute>
56</packagedElement>

Fragment for the data type Command (entire XML Schema)

 1<xs:element name="Command"
 2            type="CommandXsdType"
 3            xml:id="Command">
 4  <!-- based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::Command -->
 5  <xs:annotation>
 6    <xs:documentation>Definition
 7          ============
 8          Provides the following information on the command: The content of the command and the programming language used.</xs:documentation>
 9  </xs:annotation>
10</xs:element>
11<xs:complexType name="CommandXsdType"
12                xml:id="CommandXsdType">
13  <xs:annotation>
14    <xs:documentation>Definition
15          ============
16          Provides the following information on the command: The content of the command and the programming language used.</xs:documentation>
17  </xs:annotation>
18  <xs:sequence>
19    <xs:element name="commandContent"
20                type="TypedStringXsdType"
21                minOccurs="0"
22                maxOccurs="1"
23                xml:id="Command-commandContent">
24      <xs:annotation>
25        <xs:documentation>Content of the command itself expressed in the language designated in programming language.</xs:documentation>
26      </xs:annotation>
27    </xs:element>
28    <xs:element name="programLanguage"
29                type="ControlledVocabularyEntryXsdType"
30                minOccurs="0"
31                maxOccurs="1"
32                xml:id="Command-programLanguage">
33      <xs:annotation>
34        <xs:documentation>Designates the programming language used for the command. Supports the use of a controlled vocabulary.</xs:documentation>
35      </xs:annotation>
36    </xs:element>
37  </xs:sequence>
38</xs:complexType>

Fragment for the data type Command (entire JSON Schema)

 1"dt-Command": {
 2  "description": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/Command",
 3  "type": ["object"],
 4  "properties": {
 5    "commandContent": {
 6      "$comment": "cardinality 0..1 – from cdi:Command",
 7      "$ref": "#/defs/dt-TypedString"
 8    },
 9    "programLanguage": {
10      "$comment": "cardinality 0..1 – from cdi:Command",
11      "$ref": "#/defs/dt-ControlledVocabularyEntry"
12    },
13    "@type": {
14      "const": "Command"
15    }
16  },
17  "required": ["@type"],
18  "additionalProperties": false
19},

Fragment for the data type Command (main ontology)

 1# datatype Command
 2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::Command
 3cdi:Command
 4  a rdfs:Class, owl:Class, ucmis:StructuredDataType;
 5  rdfs:label "Command";
 6  rdfs:comment "Definition\n============\nProvides the following information on the command: The content of the command and the programming language used."@en;
 7  
 8  owl:hasKey (cdi:Command-commandContent cdi:Command-programLanguage);
 9.
10
11cdi:Command-commandContent
12  a rdf:Property, owl:ObjectProperty, ucmis:Attribute;
13  rdfs:label "commandContent";
14  rdfs:comment "Content of the command itself expressed in the language designated in programming language."@en;
15  rdfs:domain cdi:Command;
16  rdfs:range cdi:TypedString;
17.
18
19cdi:Command-programLanguage
20  a rdf:Property, owl:ObjectProperty, ucmis:Attribute;
21  rdfs:label "programLanguage";
22  rdfs:comment "Designates the programming language used for the command. Supports the use of a controlled vocabulary."@en;
23  rdfs:domain cdi:Command;
24  rdfs:range cdi:ControlledVocabularyEntry;
25.

Fragment for the data type Command (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      "commandContent": {
 8        "@id": "cdi:Command-commandContent",
 9        "@type": "@id",
10        "@context": "TypedString.jsonld"
11      },
12      "programLanguage": {
13        "@id": "cdi:Command-programLanguage",
14        "@type": "@id",
15        "@context": "ControlledVocabularyEntry.jsonld"
16      },
17      
18      " comment ": "tag:json-should-support-trailing-commas" 
19    }
20  ],
21  "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2025-08-29 14:34:55.",
22  "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::Command"
23}

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

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

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

1# datatype Command
2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::Command
3cdi:CommandShape CLOSED {
4	a [cdi:Command];
5	cdi:Command-commandContent	@cdi:TypedStringShape?;
6	cdi:Command-programLanguage	@cdi:ControlledVocabularyEntryShape?;
7	}