Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to express the quantity of stock with the QuantitativeValue? #165

Open
lecoqlibre opened this issue Nov 27, 2024 · 3 comments
Open

How to express the quantity of stock with the QuantitativeValue? #165

lecoqlibre opened this issue Nov 27, 2024 · 3 comments
Labels

Comments

@lecoqlibre
Copy link
Member

In the current working branch, the quantity has been deprecated and replaced by hasQuantity.

So the Stock concept and its sub-classes (TheoreticalStock and RealStock) should now express the quantity using a QuantitativeValue.

The QuantitativeValue has these different sub-classes: Length, Price, Temperature, Volume or Weight which are a little strange to talk about stock.

The stock quantity is only a float value so can we just use the QuantitativeValue with its value property filled?

Copy link
Contributor

RaggedStaff commented Nov 27, 2024

I'm not seeing that... In measures.rdf we have QuantityUnit, which has a variety of definitions for the unit value (e.g. bunch, can, kg, litre, pound etc).

Some of those won't be appropriate for a specific Product, but that's down to the user/platform to select the correct one, isn't it ? 😕

@RaggedStaff
Copy link
Contributor

Maybe we need to add a constraint on hasQuantity to only allow use of QuantityUnit values ? WDYT @Alcoz ?

@RaggedStaff
Copy link
Contributor

We will add a new property to DefinedProduct isContainedWithin (or something better). This will specify the ContainerUnit of the Product.

Stock hasQuantity Units will align with this value. If it is not specified we will not specify a Unit for Stock Quantities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

2 participants