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

Proposal to add support for structured sizes and measurements #2811

Closed
alex-jansen opened this issue Jan 18, 2021 · 9 comments
Closed

Proposal to add support for structured sizes and measurements #2811

alex-jansen opened this issue Jan 18, 2021 · 9 comments
Assignees
Labels
Fixed Awaiting Release Fixed in main branch / posted to webschemas.org site / proposed for inclusion in next release

Comments

@alex-jansen
Copy link
Contributor

In Release 9.0 a new /size property was published (see issue #2587) to model product sizes as free-form text.

As a follow-up to address the still open items from issue #2587 and in collaboration with @danbri and @mfhepp we are now proposing to also allow a more structured way of specifying product sizes.

For example, apparel sizes are often expressed as a combination of one or more of the following attributes:

  • a size system, typically a country, region, or standard identifier (e.g., "eu", "iso 8559").
  • a size group (e.g., "big and tall", "petite"), typically used together with age group and gender information to identify a fashion department.
  • A size code (per the size system and size group), for example "3XL" or "32Wx34L".
  • one or more manufacturer-defined measurements of the product (e.g. for pants: "waist" with a measurement of 32 inches and "inseam" with a measurement of 34 inches).
  • one or more (ranges of) measurement(s) for the intended consumer (e.g. "waist" between 30 and 32 inches and "inseam" between 33 and 35 inches).

We propose to add a few new types and properties to model these size-related attributes, building on prior art such as the GS1 Web Vocabulary (SizeDetails) and the CPI Ontology (example, reference).

We also propose to generalize the concept of a "measurement" since it applies to many types of products (i.e., not just wearables). For example a bicycle has wheel and frame measurements, and a screw has gauge and thread-distance measurements.

Given the size of the proposal, an external Google Docs document is created for review and inline comments.

Adding @mgh128 and @jvandriel based on the discussion in #2587.

@danbri danbri self-assigned this Jan 19, 2021
@danbri
Copy link
Contributor

danbri commented Jan 19, 2021

/cc @philarcher

To be explicit, this is a direction that Google both supports for the general ecosystem, and expects (if adopted) to actively implement.

@philarcher
Copy link

Thanks @danbri & @alex-jansen. I'll take a look and ask @mgh128 for support in that.

@mgh128
Copy link

mgh128 commented Jan 19, 2021

Thanks - I read through the Google Doc yesterday evening and the approach seems logical and reusable for various types of products. We (GS1) are happy to help support this. In the near term, feel free to extract any of our code lists etc. from https://www.gs1.org/voc or the Turtle / JSON-LD versions linked from https://www.gs1.org/standards/gs1-smartsearch/1-6
We'll also keep this approach in mind as we expand the GS1 Web vocabulary to support further categories of products.

@alex-jansen
Copy link
Contributor Author

Thanks @mgh128 and @philarcher. I create a first draft (including a full example) of the proposed schemas and submitted a pull request for review by @danbri and @mfhepp, please take a look.

I did not directly import the code lists from GS1 (so I could follow the enumeration naming conventions in core Schema.Org) but I took care to include the GS1 enumeration values for wearable size types, groups, and systems with two exceptions: I did not add ONE_DIMENSION for gs1:SizeTypeCode (I am not sure about its role?) and also WOMENS_TALL and MENS_TALL for gs1:SizeGroupCode (since these can be constructed by providing multiple values, e.g., WOMENS and TALL). Also note that I followed EN-13402 to enumerate body measurement dimensions. This does not include for example measurement for shoes and others which we might to add add.

Comments welcome!

@danbri
Copy link
Contributor

danbri commented Jan 26, 2021

Thanks, @mgh128 @philarcher. Let's get this merged into Pending, so that the design can be explored using the normal Schema.org site navigation / linking etc machinery.

@RichardWallis RichardWallis added the Fixed Awaiting Release Fixed in main branch / posted to webschemas.org site / proposed for inclusion in next release label Feb 3, 2021
@RichardWallis
Copy link
Contributor

Implemented in V12.0

@dr-shorthair
Copy link

We also propose to generalize the concept of a "measurement" since it applies to many types of products (i.e., not just wearables). For example a bicycle has wheel and frame measurements, and a screw has gauge and thread-distance measurements.

Also science ... There are usually at least three items of information involved:

  1. The property being measured (waist, wheel diameter, density, concentration ...)
  2. a number or category
  3. a scale (unit of measurement) or reference-system

@iiic
Copy link

iiic commented Jun 25, 2021

Hi all

I found i contradiction in this scheme's example… there is QuantitativeValue with reference https://schema.org/WearableMeasurementChest but that url doesn't exists it leads to 404.

It's because WearableMeasurementChest is missing in WearableMeasurementTypeEnumeration ( https://schema.org/WearableMeasurementTypeEnumeration ) or bad value in this example ?

alex-jansen added a commit that referenced this issue Jul 1, 2021
@alex-jansen
Copy link
Contributor Author

Good catch @iiic, this should have been https://schema.org/WearableMeasurementChestOrBust.

Fixed and created a merge request.

danbri pushed a commit that referenced this issue Jul 2, 2021
danbri pushed a commit that referenced this issue Jul 5, 2021
* fix example for #2811

* Add #2842 for 13 release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed Awaiting Release Fixed in main branch / posted to webschemas.org site / proposed for inclusion in next release
Projects
None yet
Development

No branches or pull requests

7 participants