Catalog#

Fully qualified class name of the UML model LIB 1.0: LibraryDomainModel::Classes::Catalog

Book item catalog.

Diagram#

Diagram

Associations#

Associations
Associations#

Direction

Association

Description

Multiplicity of Catalog

Package of Other Class

Other Class

Multiplicity of other class

Aggregation Kind

Inherited from

from

Catalog catalogues Library

1..1

- own package -

Library

1..1

none

own class

from

Catalog records BookItem

1..1

- own package -

BookItem

1..*

none

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 Catalog (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-Catalog"
 5                  xmi:uuid="http://example.org/LIB/1.0/XMI/#Catalog"
 6                  xmi:type="uml:Class">
 7   <ownedComment xmi:id="LibraryDomainModel-Classes-Catalog-ownedComment"
 8                  xmi:uuid="http://example.org/LIB/1.0/XMI/#Catalog-ownedComment"
 9                  xmi:type="uml:Comment">
10      <annotatedElement xmi:idref="LibraryDomainModel-Classes-Catalog"/>
11      <body>Book item catalog.</body>
12   </ownedComment>
13   <name>Catalog</name>
14   <ownedAttribute xmi:id="LibraryDomainModel-Classes-Catalog-ownedAttribute_1"
15                    xmi:uuid="http://example.org/LIB/1.0/XMI/#Catalog-ownedAttribute_1"
16                    xmi:type="uml:Property">
17      <association xmi:idref="LibraryDomainModel-Classes-Catalog_catalogues_Library"/>
18      <type xmi:idref="LibraryDomainModel-Classes-Library"/>
19   </ownedAttribute>
20   <ownedAttribute xmi:id="LibraryDomainModel-Classes-Catalog-ownedAttribute_2"
21                    xmi:uuid="http://example.org/LIB/1.0/XMI/#Catalog-ownedAttribute_2"
22                    xmi:type="uml:Property">
23      <upperValue xmi:id="LibraryDomainModel-Classes-Catalog-ownedAttribute_2-upperValue"
24                   xmi:uuid="http://example.org/LIB/1.0/XMI/#Catalog-ownedAttribute_2-upperValue"
25                   xmi:type="uml:LiteralUnlimitedNatural">
26         <value>*</value>
27      </upperValue>
28      <association xmi:idref="LibraryDomainModel-Classes-Catalog_records_BookItem"/>
29      <type xmi:idref="LibraryDomainModel-Classes-BookItem"/>
30   </ownedAttribute>
31</packagedElement>

Fragment for the class Catalog (entire XML Schema)

 1<xs:element name="Catalog"
 2            type="CatalogXsdType"
 3            xml:id="Catalog">
 4  <!-- based on the UML class LibraryDomainModel::Classes::Catalog -->
 5  <xs:annotation>
 6    <xs:documentation>Book item catalog.</xs:documentation>
 7  </xs:annotation>
 8</xs:element>
 9<xs:complexType name="CatalogXsdType"
10                xml:id="CatalogXsdType">
11  <xs:annotation>
12    <xs:documentation>Book item catalog.</xs:documentation>
13  </xs:annotation>
14  <xs:sequence>
15    <xs:element name="Catalog_catalogues_Library"
16                minOccurs="1"
17                maxOccurs="1"
18                xml:id="Catalog_catalogues_Library">
19      <xs:annotation>
20        <xs:documentation></xs:documentation>
21      </xs:annotation>
22      <xs:complexType>
23        <xs:complexContent>
24          <xs:restriction base="AssociationReferenceXsdType">
25            <xs:sequence>
26              <xs:element name="ddiReference"
27                          type="InternationalRegistrationDataIdentifierXsdType"
28                          minOccurs="0"
29                          maxOccurs="1"
30                          xml:id="Catalog_catalogues_Library-ddiReference"/>
31              <xs:element name="validType"
32                          minOccurs="1"
33                          maxOccurs="1"
34                          xml:id="Catalog_catalogues_Library-validType">
35                <xs:simpleType>
36                  <xs:restriction base="xs:NMTOKEN">
37                    <xs:enumeration value="Library"/>
38                  </xs:restriction>
39                </xs:simpleType>
40              </xs:element>
41            </xs:sequence>
42          </xs:restriction>
43        </xs:complexContent>
44      </xs:complexType>
45    </xs:element>
46    <xs:element name="Catalog_records_BookItem"
47                minOccurs="1"
48                maxOccurs="unbounded"
49                xml:id="Catalog_records_BookItem">
50      <xs:annotation>
51        <xs:documentation></xs:documentation>
52      </xs:annotation>
53      <xs:complexType>
54        <xs:complexContent>
55          <xs:restriction base="AssociationReferenceXsdType">
56            <xs:sequence>
57              <xs:element name="ddiReference"
58                          type="InternationalRegistrationDataIdentifierXsdType"
59                          minOccurs="0"
60                          maxOccurs="1"
61                          xml:id="Catalog_records_BookItem-ddiReference"/>
62              <xs:element name="validType"
63                          minOccurs="1"
64                          maxOccurs="1"
65                          xml:id="Catalog_records_BookItem-validType">
66                <xs:simpleType>
67                  <xs:restriction base="xs:NMTOKEN">
68                    <xs:enumeration value="BookItem"/>
69                  </xs:restriction>
70                </xs:simpleType>
71              </xs:element>
72            </xs:sequence>
73          </xs:restriction>
74        </xs:complexContent>
75      </xs:complexType>
76    </xs:element>
77  </xs:sequence>
78</xs:complexType>

Fragment for the class Catalog (entire JSON Schema)

 1"cls-Catalog": {
 2  "description": "http://library/RDF/Catalog",
 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": "Catalog"
14    },
15    
16    "catalogues_Library": {
17      "description": "Catalog_catalogues_Library",
18      "$comment": "cardinality 1..1",
19       "$ref": "#/defs/target-Library"
20    },
21    "records_BookItem": {
22      "description": "Catalog_records_BookItem",
23      "$comment": "cardinality 1..-1",
24      "anyOf": [
25        {
26          "$ref": "#/defs/target-BookItem"
27        },
28        {
29          "type": "array",
30          "items": {
31            "$ref": "#/defs/target-BookItem"
32          }
33        }
34      ]
35    },
36    
37    "sameAs": {
38      "$ref": "#/defs/owl:sameAs"
39    }
40  },
41  "required": ["catalogues_Library", "records_BookItem","@type"],
42  "additionalProperties": false
43},
44"target-Catalog": {
45  "description": "all subclasses of http://library/RDF/Catalog",
46  "anyOf": [
47    { "$ref": "#/defs/cls-Catalog" },
48    { "type": "string", "format": "iri-reference" }
49  ]
50},

Fragment for the class Catalog (main ontology)

 1# class Catalog
 2# based on the UML class LibraryDomainModel::Classes::Catalog
 3lib:Catalog
 4  a rdfs:Class, owl:Class, ucmis:Class;
 5  rdfs:label "Catalog";
 6  rdfs:comment "Book item catalog."@en;
 7  
 8.
 9
10
11lib:Catalog_catalogues_Library
12  a rdf:Property, owl:ObjectProperty, ucmis:Association;
13  # ASSOCIATION
14  rdfs:label "catalogues_Library";
15  skos:altLabel "Catalog_catalogues_Library";
16  
17  rdfs:domain lib:Catalog;
18  rdfs:range lib:Library;
19.
20
21lib:Catalog_records_BookItem
22  a rdf:Property, owl:ObjectProperty, ucmis:Association;
23  # ASSOCIATION
24  rdfs:label "records_BookItem";
25  skos:altLabel "Catalog_records_BookItem";
26  
27  rdfs:domain lib:Catalog;
28  rdfs:range lib:BookItem;
29.

Fragment for the class Catalog (entire JSON-LD)

 1{
 2  "@context": [
 3    {
 4      "lib": "http://library/RDF/",
 5      "xsd": "http://www.w3.org/2001/XMLSchema#",
 6
 7      
 8      "catalogues_Library": {
 9        "@id": "lib:Catalog_catalogues_Library",
10        "@type": "@id",
11        "@context": "Library.jsonld"
12      },
13      "records_BookItem": {
14        "@id": "lib:Catalog_records_BookItem",
15        "@type": "@id",
16        "@context": "BookItem.jsonld"
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:33:36.",
22  "basedOn": "based on the UML data type LibraryDomainModel::Classes::Catalog"
23}

Fragment for the class Catalog (entire SHACL - Shapes Constraint Language)

 1# class Catalog
 2# based on the UML class LibraryDomainModel::Classes::Catalog
 3<#Catalog> a sh:NodeShape;
 4    sh:targetClass lib:Catalog;
 5	sh:message "See http://library/RDF/Catalog";
 6	sh:closed true;
 7	sh:ignoredProperties ( owl:sameAs );
 8    sh:property [
 9			sh:path rdf:type;
10			sh:in (   lib:Catalog
11			 ) ;
12    ];
13    # attributes
14    # associations from Catalog
15    sh:property <#Catalog_catalogues_Library>;
16    sh:property <#Catalog_records_BookItem>;
17    # associations to Catalog
18
19
20
21.
22
23
24<#Catalog_catalogues_Library> a sh:PropertyShape ;
25    sh:path lib:Catalog_catalogues_Library;
26	sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
27        lib:Library
28      
29    ) ]];
30    sh:minCount 1;
31    sh:maxCount 1;
32.
33<#rev_Catalog_catalogues_Library> a sh:PropertyShape ;
34    sh:path [ sh:inversePath lib:Catalog_catalogues_Library ];
35    sh:minCount 1;
36    sh:maxCount 1;
37.
38<#Catalog_records_BookItem> a sh:PropertyShape ;
39    sh:path lib:Catalog_records_BookItem;
40	sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
41        lib:BookItem
42      
43    ) ]];
44    sh:minCount 1;
45.
46<#rev_Catalog_records_BookItem> a sh:PropertyShape ;
47    sh:path [ sh:inversePath lib:Catalog_records_BookItem ];
48    sh:minCount 1;
49    sh:maxCount 1;
50.

Fragment for the class Catalog (entire ShEx - Shape Expressions)

1# class Catalog
2# based on the UML class LibraryDomainModel::Classes::Catalog
3lib:CatalogShape CLOSED {
4	a [lib:Catalog];
5	lib:Catalog_catalogues_Library	@lib:LibraryShape ;
6	
7	lib:Catalog_records_BookItem	@lib:BookItemShape +;
8	
9	}