CommandFile#
Fully qualified datatype name of the UML model DDI-CDI 1.0: DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::CommandFile
Definition#
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, a description of the location of the file , and a URN or URL for the command file.
Diagram#
Diagram
Attributes#
Attributes
Name |
Inherited from |
Description |
Data Type |
Multiplicity |
Default value |
|---|---|---|---|---|---|
location |
- own datatype - |
A description of the location of the file. This may not be machine actionable. It supports a description expressed in multiple languages. |
0..1 |
||
uri |
- own datatype - |
The URL or URN of the command file. |
0..1 |
Usage#
Usage
Type |
Package |
Classifier |
Attribute |
|---|---|---|---|
DataType |
StructuredDataTypes |
commandFile |
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 CommandFile (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-CommandFile"
5 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandFile"
6 xmi:type="uml:DataType">
7 <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandFile-ownedComment"
8 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandFile-ownedComment"
9 xmi:type="uml:Comment">
10 <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandFile"/>
11 <body>Definition
12============
13Identifies 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, a description of the location of the file , and a URN or URL for the command file.</body>
14 </ownedComment>
15 <name>CommandFile</name>
16 <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandFile-location"
17 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandFile-location"
18 xmi:type="uml:Property">
19 <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandFile-location-ownedComment"
20 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandFile-location-ownedComment"
21 xmi:type="uml:Comment">
22 <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandFile-location"/>
23 <body>A description of the location of the file. This may not be machine actionable. It supports a description expressed in multiple languages.</body>
24 </ownedComment>
25 <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandFile-location-lowerValue"
26 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandFile-location-lowerValue"
27 xmi:type="uml:LiteralInteger"/>
28 <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandFile-location-upperValue"
29 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandFile-location-upperValue"
30 xmi:type="uml:LiteralUnlimitedNatural">
31 <value>1</value>
32 </upperValue>
33 <name>location</name>
34 <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-InternationalString"/>
35 </ownedAttribute>
36 <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandFile-uri"
37 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandFile-uri"
38 xmi:type="uml:Property">
39 <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandFile-uri-ownedComment"
40 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandFile-uri-ownedComment"
41 xmi:type="uml:Comment">
42 <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandFile-uri"/>
43 <body>The URL or URN of the command file.</body>
44 </ownedComment>
45 <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandFile-uri-lowerValue"
46 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandFile-uri-lowerValue"
47 xmi:type="uml:LiteralInteger"/>
48 <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-CommandFile-uri-upperValue"
49 xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#CommandFile-uri-upperValue"
50 xmi:type="uml:LiteralUnlimitedNatural">
51 <value>1</value>
52 </upperValue>
53 <name>uri</name>
54 <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-XMLSchemaDataTypes-XsdAnyUri"/>
55 </ownedAttribute>
56</packagedElement>
Fragment for the data type CommandFile (entire XML Schema)
1<xs:element name="CommandFile"
2 type="CommandFileXsdType"
3 xml:id="CommandFile">
4 <!-- based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::CommandFile -->
5 <xs:annotation>
6 <xs:documentation>Definition
7 ============
8 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, a description of the location of the file , and a URN or URL for the command file.</xs:documentation>
9 </xs:annotation>
10</xs:element>
11<xs:complexType name="CommandFileXsdType"
12 xml:id="CommandFileXsdType">
13 <xs:annotation>
14 <xs:documentation>Definition
15 ============
16 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, a description of the location of the file , and a URN or URL for the command file.</xs:documentation>
17 </xs:annotation>
18 <xs:sequence>
19 <xs:element name="location"
20 type="InternationalStringXsdType"
21 minOccurs="0"
22 maxOccurs="1"
23 xml:id="CommandFile-location">
24 <xs:annotation>
25 <xs:documentation>A description of the location of the file. This may not be machine actionable. It supports a description expressed in multiple languages.</xs:documentation>
26 </xs:annotation>
27 </xs:element>
28 <xs:element name="uri"
29 type="xs:anyURI"
30 minOccurs="0"
31 maxOccurs="1"
32 xml:id="CommandFile-uri">
33 <xs:annotation>
34 <xs:documentation>The URL or URN of the command file.</xs:documentation>
35 </xs:annotation>
36 </xs:element>
37 </xs:sequence>
38</xs:complexType>
Fragment for the data type CommandFile (entire JSON Schema)
1"dt-CommandFile": {
2 "description": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/CommandFile",
3 "type": ["object"],
4 "properties": {
5 "location": {
6 "$comment": "cardinality 0..1 – from cdi:CommandFile",
7 "$ref": "#/defs/dt-InternationalString"
8 },
9 "uri": {
10 "$comment": "cardinality 0..1 – from cdi:CommandFile",
11 "$ref": "#/defs/xsd:anyURI"
12 },
13 "@type": {
14 "const": "CommandFile"
15 }
16 },
17 "required": ["@type"],
18 "additionalProperties": false
19},
Fragment for the data type CommandFile (main ontology)
1# datatype CommandFile
2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::CommandFile
3cdi:CommandFile
4 a rdfs:Class, owl:Class, ucmis:StructuredDataType;
5 rdfs:label "CommandFile";
6 rdfs:comment "Definition\n============\nIdentifies 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, a description of the location of the file , and a URN or URL for the command file."@en;
7
8 owl:hasKey (cdi:CommandFile-location cdi:CommandFile-uri);
9.
10
11cdi:CommandFile-location
12 a rdf:Property, owl:ObjectProperty, ucmis:Attribute;
13 rdfs:label "location";
14 rdfs:comment "A description of the location of the file. This may not be machine actionable. It supports a description expressed in multiple languages."@en;
15 rdfs:domain cdi:CommandFile;
16 rdfs:range cdi:InternationalString;
17.
18
19cdi:CommandFile-uri
20 a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
21 rdfs:label "uri";
22 rdfs:comment "The URL or URN of the command file."@en;
23 rdfs:domain cdi:CommandFile;
24 rdfs:range xsd:anyURI;
25.
Fragment for the data type CommandFile (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 "location": {
8 "@id": "cdi:CommandFile-location",
9 "@type": "@id",
10 "@context": "InternationalString.jsonld"
11 },
12 "uri": {
13 "@id": "cdi:CommandFile-uri",
14 "@type": "xsd:anyURI"
15 },
16
17 " comment ": "tag:json-should-support-trailing-commas"
18 }
19 ],
20 "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2025-08-29 14:34:55.",
21 "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::CommandFile"
22}
Fragment for the data type CommandFile (entire SHACL - Shapes Constraint Language)
1# datatype CommandFile
2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::CommandFile
3<#CommandFile> a sh:NodeShape;
4 sh:targetClass cdi:CommandFile;
5 sh:message "See http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/CommandFile";
6 sh:closed true;
7 sh:ignoredProperties ( owl:sameAs );
8 sh:property [
9 sh:path rdf:type;
10 sh:in ( cdi:CommandFile
11 ) ;
12 ];
13 # attributes
14 sh:property <#CommandFile-location>;
15 sh:property <#CommandFile-uri>;
16
17
18
19.
20
21<#CommandFile-location> a sh:PropertyShape ;
22 sh:path cdi:CommandFile-location;
23 sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
24 cdi:InternationalString
25 cdi:BibliographicName
26 cdi:LabelForDisplay
27
28 ) ]];
29 sh:maxCount 1;
30.
31<#CommandFile-uri> a sh:PropertyShape ;
32 sh:path cdi:CommandFile-uri;
33 sh:datatype xsd:anyURI;
34 sh:maxCount 1;
35.
Fragment for the data type CommandFile (entire ShEx - Shape Expressions)
1# datatype CommandFile
2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::CommandFile
3cdi:CommandFileShape CLOSED {
4 a [cdi:CommandFile];
5 cdi:CommandFile-location @cdi:InternationalStringShape?;
6 cdi:CommandFile-uri xsd:anyURI?;
7 }