Skip to content

Commit

Permalink
feat: use unit of measure shared aspect
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-rm-meyer-ISST committed Sep 29, 2023
1 parent 2d7b526 commit 1b48c05
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions io.catenax.item_stock/1.0.0/ItemStock.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix : <urn:samm:io.catenax.item_stock:1.0.0#>.
@prefix ext-quantity: <urn:samm:io.catenax.shared.quantity:1.0.0#>.

:ItemStock a samm:Aspect;
samm:properties (:positions :materialNumberCustomer [
Expand Down Expand Up @@ -124,6 +125,11 @@
samm:preferredName "Quantity on Allocated Stock"@en;
samm:description "This is the quantity of the material on stock. In case of stocks \"from a supplier ready to be shipped to a certain customer\", the stock may refer to an order position of a customer."@en;
samm:characteristic :QuantityCharacteristic.
:stockLocationId a samm:Property;
samm:preferredName "Location ID of Stock"@en;
samm:description "One stock has always one location. The location is identified using BPNs. The location can be identified differently depending on the partner."@en;
samm:characteristic :StockLocationIDCharacteristic;
samm:see <https://catena-x.net/fileadmin/user_upload/Standard-Bibliothek/Update_PDF_Maerz/5_BPDM/CX_-_0010_BUSINESS_PARTNER_NUMBER_PlatformCapabilityBPDM_v_1.0.1.pdf>.
:OrderIdCharacteristic a samm:Characteristic;
samm:preferredName "Order ID Characteristic"@en;
samm:description "This is a proprietary order ID, generated by either the supplier side or customer side."@en;
Expand All @@ -135,26 +141,11 @@
:QuantityCharacteristic a samm-c:Quantifiable;
samm:preferredName "Quantity Characteristic"@en;
samm:description "Describes the quantity on stock of the item defined by a quantity value and the measurement unit in which the quantity is measured."@en;
samm:dataType :Quantity.
:Quantity a samm:Entity;
samm:properties (:quantityNumber :measurementUnit);
samm:preferredName "Quantity"@en;
samm:description "Comprises the number of objects and the unit of measurement for the item."@en.
samm:dataType ext-quantity:ItemQuantityEntity.
:LocationId a samm:Entity;
samm:properties (:locationIdType :locationId);
samm:preferredName "Location ID"@en;
samm:description "A location can be described by different kinds of identifiers. Within Catena-X, a location can either be described by a BPNS or BPNA."@en.
:quantityNumber a samm:Property;
samm:preferredName "Quantity Number"@en;
samm:description "The number of objects related to the measurement unit."@en;
samm:characteristic :NumberOfObjects;
samm:exampleValue "2.5"^^xsd:double.
:measurementUnit a samm:Property;
samm:preferredName "Measurement Unit"@en;
samm:description "TODO: Unit of measurement for the quantity of objects.\nIf possible, use units from the aspect meta model unit catalog, which is based on the UNECE Recommendation No. 20 \"Codes for Units of Measure used in International Trade\". TODO"@en;
samm:characteristic samm-c:UnitReference;
samm:exampleValue "unit:litre"^^samm:curie;
samm:see <https://github.com/eclipse-esmf/esmf-semantic-aspect-meta-model/blob/main/esmf-semantic-aspect-meta-model/src/main/resources/samm/unit/2.0.0/units.ttl>.
:locationIdType a samm:Property;
samm:preferredName "Type of Location ID"@en;
samm:description "Type of the location's ID."@en;
Expand All @@ -176,16 +167,7 @@
samm:description "The actual key based on the type."@en;
samm:dataType xsd:string;
samm:see <https://catena-x.net/fileadmin/user_upload/Standard-Bibliothek/Update_PDF_Maerz/5_BPDM/CX_-_0010_BUSINESS_PARTNER_NUMBER_PlatformCapabilityBPDM_v_1.0.1.pdf>.
:stockLocationId a samm:Property;
samm:preferredName "Location ID of Stock"@en;
samm:description "One stock has always one location. The location is identified using BPNs. The location can be identified differently depending on the partner."@en;
samm:characteristic :StockLocationIDCharacteristic;
samm:see <https://catena-x.net/fileadmin/user_upload/Standard-Bibliothek/Update_PDF_Maerz/5_BPDM/CX_-_0010_BUSINESS_PARTNER_NUMBER_PlatformCapabilityBPDM_v_1.0.1.pdf>.
:StockLocationIDCharacteristic a samm:Characteristic;
samm:preferredName "Location ID Characteristic of Stock"@en;
samm:description "This is the location where the stock is located."@en;
samm:dataType :LocationId.
:NumberOfObjects a samm:Characteristic;
samm:preferredName "Number of Objects"@en;
samm:description "Quantifiable number of objects in reference to the measurement unit."@en;
samm:dataType xsd:double.

0 comments on commit 1b48c05

Please sign in to comment.