Library#
Fully qualified class name of the UML model LIB 1.0: LibraryDomainModel::Classes::Library
Book library.
Diagram#
Diagram
Attributes#
Associations#
Associations
Direction |
Association |
Description |
Multiplicity of Library |
Package of Other Class |
Other Class |
Multiplicity of other class |
Aggregation Kind |
Inherited from |
|---|---|---|---|---|---|---|---|---|
to |
Account accounts Library |
1..1 |
- own package - |
1..* |
shared |
own class |
||
to |
Catalog catalogues Library |
1..1 |
- own package - |
1..1 |
shared |
own class |
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 class Library (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-Classes-Library"
5 xmi:uuid="http://example.org/LIB/1.0/XMI/#Library"
6 xmi:type="uml:Class">
7 <ownedComment xmi:id="LibraryDomainModel-Classes-Library-ownedComment"
8 xmi:uuid="http://example.org/LIB/1.0/XMI/#Library-ownedComment"
9 xmi:type="uml:Comment">
10 <annotatedElement xmi:idref="LibraryDomainModel-Classes-Library"/>
11 <body>Book library.</body>
12 </ownedComment>
13 <name>Library</name>
14 <ownedAttribute xmi:id="LibraryDomainModel-Classes-Library-address"
15 xmi:uuid="http://example.org/LIB/1.0/XMI/#Library-address"
16 xmi:type="uml:Property">
17 <lowerValue xmi:id="LibraryDomainModel-Classes-Library-address-lowerValue"
18 xmi:uuid="http://example.org/LIB/1.0/XMI/#Library-address-lowerValue"
19 xmi:type="uml:LiteralInteger">
20 <value>1</value>
21 </lowerValue>
22 <upperValue xmi:id="LibraryDomainModel-Classes-Library-address-upperValue"
23 xmi:uuid="http://example.org/LIB/1.0/XMI/#Library-address-upperValue"
24 xmi:type="uml:LiteralUnlimitedNatural">
25 <value>1</value>
26 </upperValue>
27 <name>address</name>
28 <type xmi:idref="LibraryDomainModel-DataTypes-StructuredDataTypes-Address"/>
29 </ownedAttribute>
30 <ownedAttribute xmi:id="LibraryDomainModel-Classes-Library-name"
31 xmi:uuid="http://example.org/LIB/1.0/XMI/#Library-name"
32 xmi:type="uml:Property">
33 <lowerValue xmi:id="LibraryDomainModel-Classes-Library-name-lowerValue"
34 xmi:uuid="http://example.org/LIB/1.0/XMI/#Library-name-lowerValue"
35 xmi:type="uml:LiteralInteger">
36 <value>1</value>
37 </lowerValue>
38 <upperValue xmi:id="LibraryDomainModel-Classes-Library-name-upperValue"
39 xmi:uuid="http://example.org/LIB/1.0/XMI/#Library-name-upperValue"
40 xmi:type="uml:LiteralUnlimitedNatural">
41 <value>1</value>
42 </upperValue>
43 <name>name</name>
44 <type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"
45 xmi:type="uml:PrimitiveType"/>
46 </ownedAttribute>
47</packagedElement>
Fragment for the class Library (entire XML Schema)
1<xs:element name="Library"
2 type="LibraryXsdType"
3 xml:id="Library">
4 <!-- based on the UML class LibraryDomainModel::Classes::Library -->
5 <xs:annotation>
6 <xs:documentation>Book library.</xs:documentation>
7 </xs:annotation>
8</xs:element>
9<xs:complexType name="LibraryXsdType"
10 xml:id="LibraryXsdType">
11 <xs:annotation>
12 <xs:documentation>Book library.</xs:documentation>
13 </xs:annotation>
14 <xs:sequence>
15 <xs:element name="address"
16 type="AddressXsdType"
17 minOccurs="1"
18 maxOccurs="1"
19 xml:id="Library-address">
20 <xs:annotation>
21 <xs:documentation></xs:documentation>
22 </xs:annotation>
23 </xs:element>
24 <xs:element name="name"
25 type="xs:string"
26 minOccurs="1"
27 maxOccurs="1"
28 xml:id="Library-name">
29 <xs:annotation>
30 <xs:documentation></xs:documentation>
31 </xs:annotation>
32 </xs:element>
33 </xs:sequence>
34</xs:complexType>
Fragment for the class Library (entire JSON Schema)
1"cls-Library": {
2 "description": "http://library/RDF/Library",
3 "type": "object",
4 "properties": {
5 "@context": {
6 "$ref": "#/defs/at-context"
7 },
8 "@id": {
9 "type": "string",
10 "format": "iri-reference"
11 },
12 "@type": {
13 "const": "Library"
14 },
15 "address": {
16 "$comment": "cardinality 1..1 – from lib:Library",
17 "$ref": "#/defs/dt-Address"
18 },
19 "name": {
20 "$comment": "cardinality 1..1 – from lib:Library",
21 "$ref": "#/defs/xsd:string"
22 },
23
24 "accounts_Library_OF_Account": {
25 "description": "Account_accounts_Library",
26 "$comment": "cardinality 1..-1",
27 "anyOf": [
28 {
29 "$ref": "#/defs/target-Account"
30 },
31 {
32 "type": "array",
33 "items": {
34 "$ref": "#/defs/target-Account"
35 }
36 }
37 ]
38 },
39 "catalogues_Library_OF_Catalog": {
40 "description": "Catalog_catalogues_Library",
41 "$comment": "cardinality 1..1",
42 "$ref": "#/defs/target-Catalog"
43 },
44 "sameAs": {
45 "$ref": "#/defs/owl:sameAs"
46 }
47 },
48 "required": ["address","name","@type"],
49 "additionalProperties": false
50},
51"target-Library": {
52 "description": "all subclasses of http://library/RDF/Library",
53 "anyOf": [
54 { "$ref": "#/defs/cls-Library" },
55 { "type": "string", "format": "iri-reference" }
56 ]
57},
Fragment for the class Library (main ontology)
1# class Library
2# based on the UML class LibraryDomainModel::Classes::Library
3lib:Library
4 a rdfs:Class, owl:Class, ucmis:Class;
5 rdfs:label "Library";
6 rdfs:comment "Book library."@en;
7
8.
9
10lib:Library-address
11 a rdf:Property, owl:ObjectProperty, ucmis:Attribute;
12 rdfs:label "address";
13
14 rdfs:domain lib:Library;
15 rdfs:range lib:Address;
16.
17
18lib:Library-name
19 a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
20 rdfs:label "name";
21
22 rdfs:domain lib:Library;
23 rdfs:range xsd:string;
24.
Fragment for the class Library (entire JSON-LD)
1{
2 "@context": [
3 {
4 "lib": "http://library/RDF/",
5 "xsd": "http://www.w3.org/2001/XMLSchema#",
6
7 "address": {
8 "@id": "lib:Library-address",
9 "@type": "@id",
10 "@context": "Address.jsonld"
11 },
12 "name": {
13 "@id": "lib:Library-name",
14 "@type": "xsd:string"
15 },
16
17 "accounts_Library_OF_Account": {
18 "@reverse": "lib:Account_accounts_Library",
19 "@type": "@id",
20 "@context": "Account.jsonld"
21 },
22 "catalogues_Library_OF_Catalog": {
23 "@reverse": "lib:Catalog_catalogues_Library",
24 "@type": "@id",
25 "@context": "Catalog.jsonld"
26 },
27 " comment ": "tag:json-should-support-trailing-commas"
28 }
29 ],
30 "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2025-08-29 14:33:36.",
31 "basedOn": "based on the UML data type LibraryDomainModel::Classes::Library"
32}
Fragment for the class Library (entire SHACL - Shapes Constraint Language)
1# class Library
2# based on the UML class LibraryDomainModel::Classes::Library
3<#Library> a sh:NodeShape;
4 sh:targetClass lib:Library;
5 sh:message "See http://library/RDF/Library";
6 sh:closed true;
7 sh:ignoredProperties ( owl:sameAs );
8 sh:property [
9 sh:path rdf:type;
10 sh:in ( lib:Library
11 ) ;
12 ];
13 # attributes
14 sh:property <#Library-address>;
15 sh:property <#Library-name>;
16 # associations from Library
17 # associations to Library
18 sh:property <#rev_Account_accounts_Library>;
19 sh:property <#rev_Catalog_catalogues_Library>;
20
21
22
23.
24
25<#Library-address> a sh:PropertyShape ;
26 sh:path lib:Library-address;
27 sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
28 lib:Address
29
30 ) ]];
31 sh:minCount 1;
32 sh:maxCount 1;
33.
34<#Library-name> a sh:PropertyShape ;
35 sh:path lib:Library-name;
36 sh:datatype xsd:string;
37 sh:minCount 1;
38 sh:maxCount 1;
39.
Fragment for the class Library (entire ShEx - Shape Expressions)
1# class Library
2# based on the UML class LibraryDomainModel::Classes::Library
3lib:LibraryShape CLOSED {
4 a [lib:Library];
5 lib:Library-address @lib:AddressShape;
6 lib:Library-name xsd:string;
7 ^lib:Account_accounts_Library @lib:AccountShape +;
8 ^lib:Catalog_catalogues_Library @lib:CatalogShape ;
9 }