3,543
edits
(Added some quantity observations.) |
(Generic formula added) |
||
Line 32: | Line 32: | ||
Some remarks: | Some remarks: | ||
* product central - any quantity that is indicated is about the product and not the packaging; | * product central - any quantity that is indicated is about the product and not the packaging; | ||
* equivalents - one or more equivalents might be available, i.e. in grams or liters, 24 cookies / 6 cookies in 4 packages; | * equivalents - one or more equivalents might be available, i.e. in grams, oz or liters, 24 cookies / 6 cookies in 4 packages; | ||
* containers - the generic toplevel package is a container; | * containers - the generic toplevel package is a container; | ||
* subcontainers - a container might comprise multiple subcontainers (or even subsubcontainers) [hierarchy?] | * subcontainers - a container might comprise multiple subcontainers (or even subsubcontainers) [hierarchy?/taxonomy?] | ||
* (sub-)container synonyms - a user might container other words to describe a container, such as bottle, can, bag, etc. | * (sub-)container synonyms - a user might container other words to describe a container, such as bottle, can, bag, etc. [hierarchy?/taxonomy?] | ||
* defaults - in indicating the quantity some parts are assumed to be understood. If it states 33cl it is assumed to be about the container (the bottle) and the product (beer); | * defaults - in indicating the quantity some parts are assumed to be understood. If it states 33cl it is assumed to be about the container (the bottle) and the product (beer); | ||
* | * components - a product might consist of multiple components, which must be combined to get the product. Cf Creme brulee = vanilla cream + caramel flakes (to be heated). | ||
* subproduct - sometimes a subproduct quantity is indicated (net/brut, egoutté/drained); | |||
* verbosity - the language used in specifying quantity must be translated to a parsable format; | |||
=== Generic formula === | |||
Any generic quantity formula should reference the product(-name), the container and a volume or weight measure. The productname and container should (?) reference the corresponding fields. | |||
The top level quantity formula, i.e. the package a customer buys is: | |||
<big>container_unit x package_name x product_name x quantity_value x quantity_unit</big> | |||
For example: | |||
* 1 bottle of red wine comprising 70 cl (on the bottle indicated as "70 cl") | |||
=== Practical usage === | |||
* to indicate times, either a "*" or a "x" can be used; | * to indicate times, either a "*" or a "x" can be used; |
edits