Address#

Fully qualified datatype name of the UML model LIB 1.0: LibraryDomainModel::DataTypes::StructuredDataTypes::Address

Generic address.

Diagram#

Diagram

Attributes#

Attributes
Attributes#

Name

Inherited from

Description

Data Type

Multiplicity

Default value

City

- own datatype -

String

1..1

Country

- own datatype -

String

1..1

Street

- own datatype -

String

1..1

StreetNumber

- own datatype -

Integer

1..1

ZIPCode

- own datatype -

String

1..1

Usage#

Usage
Usage#

Type

Package

Classifier

Attribute

Class

Classes

Library

address

Class

Classes

Patron

address

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 Address (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="LibraryDomainModel-DataTypes-StructuredDataTypes-Address"
 5                  xmi:uuid="http://example.org/LIB/1.0/XMI/#Address"
 6                  xmi:type="uml:DataType">
 7   <ownedComment xmi:id="LibraryDomainModel-DataTypes-StructuredDataTypes-Address-ownedComment"
 8                  xmi:uuid="http://example.org/LIB/1.0/XMI/#Address-ownedComment"
 9                  xmi:type="uml:Comment">
10      <annotatedElement xmi:idref="LibraryDomainModel-DataTypes-StructuredDataTypes-Address"/>
11      <body>Generic address.</body>
12   </ownedComment>
13   <name>Address</name>
14   <ownedAttribute xmi:id="LibraryDomainModel-DataTypes-StructuredDataTypes-Address-City"
15                    xmi:uuid="http://example.org/LIB/1.0/XMI/#City"
16                    xmi:type="uml:Property">
17      <lowerValue xmi:id="LibraryDomainModel-DataTypes-StructuredDataTypes-Address-City-lowerValue"
18                   xmi:uuid="http://example.org/LIB/1.0/XMI/#City-lowerValue"
19                   xmi:type="uml:LiteralInteger">
20         <value>1</value>
21      </lowerValue>
22      <upperValue xmi:id="LibraryDomainModel-DataTypes-StructuredDataTypes-Address-City-upperValue"
23                   xmi:uuid="http://example.org/LIB/1.0/XMI/#City-upperValue"
24                   xmi:type="uml:LiteralUnlimitedNatural">
25         <value>1</value>
26      </upperValue>
27      <name>City</name>
28      <type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"
29             xmi:type="uml:PrimitiveType"/>
30   </ownedAttribute>
31   <ownedAttribute xmi:id="LibraryDomainModel-DataTypes-StructuredDataTypes-Address-Country"
32                    xmi:uuid="http://example.org/LIB/1.0/XMI/#Country"
33                    xmi:type="uml:Property">
34      <lowerValue xmi:id="LibraryDomainModel-DataTypes-StructuredDataTypes-Address-Country-lowerValue"
35                   xmi:uuid="http://example.org/LIB/1.0/XMI/#Country-lowerValue"
36                   xmi:type="uml:LiteralInteger">
37         <value>1</value>
38      </lowerValue>
39      <upperValue xmi:id="LibraryDomainModel-DataTypes-StructuredDataTypes-Address-Country-upperValue"
40                   xmi:uuid="http://example.org/LIB/1.0/XMI/#Country-upperValue"
41                   xmi:type="uml:LiteralUnlimitedNatural">
42         <value>1</value>
43      </upperValue>
44      <name>Country</name>
45      <type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"
46             xmi:type="uml:PrimitiveType"/>
47   </ownedAttribute>
48   <ownedAttribute xmi:id="LibraryDomainModel-DataTypes-StructuredDataTypes-Address-Street"
49                    xmi:uuid="http://example.org/LIB/1.0/XMI/#Street"
50                    xmi:type="uml:Property">
51      <lowerValue xmi:id="LibraryDomainModel-DataTypes-StructuredDataTypes-Address-Street-lowerValue"
52                   xmi:uuid="http://example.org/LIB/1.0/XMI/#Street-lowerValue"
53                   xmi:type="uml:LiteralInteger">
54         <value>1</value>
55      </lowerValue>
56      <upperValue xmi:id="LibraryDomainModel-DataTypes-StructuredDataTypes-Address-Street-upperValue"
57                   xmi:uuid="http://example.org/LIB/1.0/XMI/#Street-upperValue"
58                   xmi:type="uml:LiteralUnlimitedNatural">
59         <value>1</value>
60      </upperValue>
61      <name>Street</name>
62      <type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"
63             xmi:type="uml:PrimitiveType"/>
64   </ownedAttribute>
65   <ownedAttribute xmi:id="LibraryDomainModel-DataTypes-StructuredDataTypes-Address-StreetNumber"
66                    xmi:uuid="http://example.org/LIB/1.0/XMI/#StreetNumber"
67                    xmi:type="uml:Property">
68      <lowerValue xmi:id="LibraryDomainModel-DataTypes-StructuredDataTypes-Address-StreetNumber-lowerValue"
69                   xmi:uuid="http://example.org/LIB/1.0/XMI/#StreetNumber-lowerValue"
70                   xmi:type="uml:LiteralInteger">
71         <value>1</value>
72      </lowerValue>
73      <upperValue xmi:id="LibraryDomainModel-DataTypes-StructuredDataTypes-Address-StreetNumber-upperValue"
74                   xmi:uuid="http://example.org/LIB/1.0/XMI/#StreetNumber-upperValue"
75                   xmi:type="uml:LiteralUnlimitedNatural">
76         <value>1</value>
77      </upperValue>
78      <name>StreetNumber</name>
79      <type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Integer"
80             xmi:type="uml:PrimitiveType"/>
81   </ownedAttribute>
82   <ownedAttribute xmi:id="LibraryDomainModel-DataTypes-StructuredDataTypes-Address-ZIPCode"
83                    xmi:uuid="http://example.org/LIB/1.0/XMI/#ZIPCode"
84                    xmi:type="uml:Property">
85      <lowerValue xmi:id="LibraryDomainModel-DataTypes-StructuredDataTypes-Address-ZIPCode-lowerValue"
86                   xmi:uuid="http://example.org/LIB/1.0/XMI/#ZIPCode-lowerValue"
87                   xmi:type="uml:LiteralInteger">
88         <value>1</value>
89      </lowerValue>
90      <upperValue xmi:id="LibraryDomainModel-DataTypes-StructuredDataTypes-Address-ZIPCode-upperValue"
91                   xmi:uuid="http://example.org/LIB/1.0/XMI/#ZIPCode-upperValue"
92                   xmi:type="uml:LiteralUnlimitedNatural">
93         <value>1</value>
94      </upperValue>
95      <name>ZIPCode</name>
96      <type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"
97             xmi:type="uml:PrimitiveType"/>
98   </ownedAttribute>
99</packagedElement>

Fragment for the data type Address (entire XML Schema)

 1<xs:element name="Address"
 2            type="AddressXsdType"
 3            xml:id="Address">
 4  <!-- based on the UML data type LibraryDomainModel::DataTypes::StructuredDataTypes::Address -->
 5  <xs:annotation>
 6    <xs:documentation>Generic address.</xs:documentation>
 7  </xs:annotation>
 8</xs:element>
 9<xs:complexType name="AddressXsdType"
10                xml:id="AddressXsdType">
11  <xs:annotation>
12    <xs:documentation>Generic address.</xs:documentation>
13  </xs:annotation>
14  <xs:sequence>
15    <xs:element name="City"
16                type="xs:string"
17                minOccurs="1"
18                maxOccurs="1"
19                xml:id="Address-City">
20      <xs:annotation>
21        <xs:documentation></xs:documentation>
22      </xs:annotation>
23    </xs:element>
24    <xs:element name="Country"
25                type="xs:string"
26                minOccurs="1"
27                maxOccurs="1"
28                xml:id="Address-Country">
29      <xs:annotation>
30        <xs:documentation></xs:documentation>
31      </xs:annotation>
32    </xs:element>
33    <xs:element name="Street"
34                type="xs:string"
35                minOccurs="1"
36                maxOccurs="1"
37                xml:id="Address-Street">
38      <xs:annotation>
39        <xs:documentation></xs:documentation>
40      </xs:annotation>
41    </xs:element>
42    <xs:element name="StreetNumber"
43                type="xs:integer"
44                minOccurs="1"
45                maxOccurs="1"
46                xml:id="Address-StreetNumber">
47      <xs:annotation>
48        <xs:documentation></xs:documentation>
49      </xs:annotation>
50    </xs:element>
51    <xs:element name="ZIPCode"
52                type="xs:string"
53                minOccurs="1"
54                maxOccurs="1"
55                xml:id="Address-ZIPCode">
56      <xs:annotation>
57        <xs:documentation></xs:documentation>
58      </xs:annotation>
59    </xs:element>
60  </xs:sequence>
61</xs:complexType>

Fragment for the data type Address (entire JSON Schema)

 1"dt-Address": {
 2  "description": "http://library/RDF/Address",
 3  "type": ["object"],
 4  "properties": {
 5    "City": {
 6      "$comment": "cardinality 1..1 – from lib:Address",
 7      "$ref": "#/defs/xsd:string"
 8    },
 9    "Country": {
10      "$comment": "cardinality 1..1 – from lib:Address",
11      "$ref": "#/defs/xsd:string"
12    },
13    "Street": {
14      "$comment": "cardinality 1..1 – from lib:Address",
15      "$ref": "#/defs/xsd:string"
16    },
17    "StreetNumber": {
18      "$comment": "cardinality 1..1 – from lib:Address",
19      "$ref": "#/defs/xsd:integer"
20    },
21    "ZIPCode": {
22      "$comment": "cardinality 1..1 – from lib:Address",
23      "$ref": "#/defs/xsd:string"
24    },
25    "@type": {
26      "const": "Address"
27    }
28  },
29  "required": ["City","Country","Street","StreetNumber","ZIPCode","@type"],
30  "additionalProperties": false
31},

Fragment for the data type Address (main ontology)

 1# datatype Address
 2# based on the UML data type LibraryDomainModel::DataTypes::StructuredDataTypes::Address
 3lib:Address
 4  a rdfs:Class, owl:Class, ucmis:StructuredDataType;
 5  rdfs:label "Address";
 6  rdfs:comment "Generic address."@en;
 7  
 8  owl:hasKey (lib:Address-City lib:Address-Country lib:Address-Street lib:Address-StreetNumber lib:Address-ZIPCode);
 9.
10
11lib:Address-City
12  a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
13  rdfs:label "City";
14  
15  rdfs:domain lib:Address;
16  rdfs:range xsd:string;
17.
18
19lib:Address-Country
20  a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
21  rdfs:label "Country";
22  
23  rdfs:domain lib:Address;
24  rdfs:range xsd:string;
25.
26
27lib:Address-Street
28  a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
29  rdfs:label "Street";
30  
31  rdfs:domain lib:Address;
32  rdfs:range xsd:string;
33.
34
35lib:Address-StreetNumber
36  a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
37  rdfs:label "StreetNumber";
38  
39  rdfs:domain lib:Address;
40  rdfs:range xsd:integer;
41.
42
43lib:Address-ZIPCode
44  a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
45  rdfs:label "ZIPCode";
46  
47  rdfs:domain lib:Address;
48  rdfs:range xsd:string;
49.

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

 1{
 2  "@context": [
 3    {
 4      "lib": "http://library/RDF/",
 5      "xsd": "http://www.w3.org/2001/XMLSchema#",
 6
 7      "City": {
 8        "@id": "lib:Address-City",
 9        "@type": "xsd:string"
10      },
11      "Country": {
12        "@id": "lib:Address-Country",
13        "@type": "xsd:string"
14      },
15      "Street": {
16        "@id": "lib:Address-Street",
17        "@type": "xsd:string"
18      },
19      "StreetNumber": {
20        "@id": "lib:Address-StreetNumber",
21        "@type": "xsd:integer"
22      },
23      "ZIPCode": {
24        "@id": "lib:Address-ZIPCode",
25        "@type": "xsd:string"
26      },
27      
28      " comment ": "tag:json-should-support-trailing-commas" 
29    }
30  ],
31  "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2025-08-29 14:33:37.",
32  "basedOn": "based on the UML data type LibraryDomainModel::DataTypes::StructuredDataTypes::Address"
33}

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

 1# datatype Address
 2# based on the UML data type LibraryDomainModel::DataTypes::StructuredDataTypes::Address
 3<#Address> a sh:NodeShape;
 4    sh:targetClass lib:Address;
 5	sh:message "See http://library/RDF/Address";
 6	sh:closed true;
 7	sh:ignoredProperties ( owl:sameAs );
 8    sh:property [
 9			sh:path rdf:type;
10			sh:in (   lib:Address
11			 ) ;
12    ];
13    # attributes
14    sh:property <#Address-City>;
15    sh:property <#Address-Country>;
16    sh:property <#Address-Street>;
17    sh:property <#Address-StreetNumber>;
18    sh:property <#Address-ZIPCode>;
19
20
21
22.
23
24<#Address-City> a sh:PropertyShape ;
25    sh:path lib:Address-City;
26    sh:datatype xsd:string;
27    sh:minCount 1;
28    sh:maxCount 1;
29.
30<#Address-Country> a sh:PropertyShape ;
31    sh:path lib:Address-Country;
32    sh:datatype xsd:string;
33    sh:minCount 1;
34    sh:maxCount 1;
35.
36<#Address-Street> a sh:PropertyShape ;
37    sh:path lib:Address-Street;
38    sh:datatype xsd:string;
39    sh:minCount 1;
40    sh:maxCount 1;
41.
42<#Address-StreetNumber> a sh:PropertyShape ;
43    sh:path lib:Address-StreetNumber;
44    sh:datatype xsd:integer;
45    sh:minCount 1;
46    sh:maxCount 1;
47.
48<#Address-ZIPCode> a sh:PropertyShape ;
49    sh:path lib:Address-ZIPCode;
50    sh:datatype xsd:string;
51    sh:minCount 1;
52    sh:maxCount 1;
53.

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

 1# datatype Address
 2# based on the UML data type LibraryDomainModel::DataTypes::StructuredDataTypes::Address
 3lib:AddressShape CLOSED {
 4	a [lib:Address];
 5	lib:Address-City	xsd:string;
 6	lib:Address-Country	xsd:string;
 7	lib:Address-Street	xsd:string;
 8	lib:Address-StreetNumber	xsd:integer;
 9	lib:Address-ZIPCode	xsd:string;
10	}