- From: Michael Andrews <nextcontent01@gmail.com>
- Date: Tue, 18 Jun 2019 11:05:24 +0530
- To: Jarno van Driel <jarnovandriel@gmail.com>
- Cc: "schema.org Mailing List" <public-schemaorg@w3.org>
- Message-ID: <CAF9ZrJ2EcPJ-B3xdE_Nfv_9VnF2ZxHwXTKNcEe7rpfj0maZrTw@mail.gmail.com>
Very good question - how does one represent complex values for existing properties that seem to expect a single value? Another case would be for a MonetaryAmount that needs to indicate two values, for example, in Mauritania where each ouguiya constitutes five khoums (meaning "one fifth"). The Malagasy ariary, whose division units is also not based on a power of ten, in addition to various historical currencies including the British pound before decimalization. This is what I tried, without successful validation. Perhaps I am missing a trick. First, I tried an itemList for break out feet and inches: { "@context": "http://schema.org", "@type": "Person", "name": "Jarno", "height": { "@type": "ItemList", "itemListElement": [ {"@type": "QuantitativeValue", "value": "5", "unitCode": "FOT"}, {"@type": "QuantitativeValue", "value": "7", "unitCode": "INH"} ] } } Next I tried using the PropertyValue { "@context": "http://schema.org", "@type": "Person", "name": "Jarno", "height": [ {"@type": "PropertyValue", "value": "5", "unitCode": "FOT"}, {"@type": "PropertyValue", "value": "7", "unitCode": "INH"} ] } } In both cases, got a message that height didn't expect the itemList or PropertyValue. On Tue, Jun 18, 2019 at 5:10 AM Jarno van Driel <jarnovandriel@gmail.com> wrote: > As a Dutch native (metric centric) I have run into something that has me > clueless, namely how to express a Person's height using US measurement > values like: 5'7" > > Can anybody please tell me if and how I should use QuantitativeValue for > this without converting the value to, for example, centimeters or just > inches? >
Received on Tuesday, 18 June 2019 05:35:59 UTC