W3C home > Mailing lists > Public > public-schemaorg@w3.org > May 2015

Re: Usage of schema:additionalProperty

From: <martin.hepp@ebusiness-unibw.org>
Date: Thu, 21 May 2015 11:08:49 +0200
Cc: public-schemaorg@w3.org
Message-Id: <BE89A2A4-552A-4250-9D73-626E2361B3E7@ebusiness-unibw.org>
To: John Walker <john.walker@semaku.com>
Hi John: The reason is that you may want to provide reference values / context also in the form of property-values and use the name of the property for indicating the type of reference (e.g. "reference temperature").

schema:valueReference just indicates that it is a value that provides context for the primary value.


Examples with valueReference:

<!-- Product: Value References -->
<div itemscope itemtype="http://schema.org/Car">
 <span itemprop="name">ACME Semantic SUV</span>
 <div itemprop="fuelConsumption" itemscope itemtype="http://schema.org/QuantitativeValue">
     <span itemprop="value">8.2</span>-
     <meta itemprop="unitCode" content="LTR">liter
     at
     <div itemprop="valueReference" itemscope itemtype="http://schema.org/PropertyValue">
        <span itemprop="value">50</span>
        <span itemprop="unitText">miles per hour</span>
     </div> 
 </div>  
</div>


Examples with additionalProperty:

<!-- Product: Value References -->
<div itemscope itemtype="http://schema.org/Car">
 <span itemprop="name">ACME Semantic SUV</span>
 <div itemprop="fuelConsumption" itemscope itemtype="http://schema.org/QuantitativeValue">
     <span itemprop="value">8.2</span>-
     <meta itemprop="unitCode" content="LTR">liter
     at
     <div itemprop="additionalProperty" itemscope itemtype="http://schema.org/PropertyValue">
        <meta itemprop="name" content="reference speed"> <!-- <================= -->
        <span itemprop="value">50</span>
        <span itemprop="unitText">miles per hour</span>
     </div> 
 </div>  
</div>



-----------------------------------
martin hepp  http://www.heppnetz.de
mhepp@computer.org          @mfhepp







> On 18 May 2015, at 22:14, John Walker <john.walker@semaku.com> wrote:
> 
> Hi,
> 
> Was just browsing around v2.0, congrats to all involved.
> 
> I have a question about schema:additionalProperty. I see the domain for this
> property includes schema:QualitativeValue and schema:QuantitativeValue, but
> couldn't figure out a 'real-life' use case for this. If I wanted to specify
> additional properties on a value, wouldn't these be some kind of conditions
> under which the value is measured/specified? In which case shouldn't I use
> schema:valueReference instead?
> 
> Concrete examples appreciated :)
> 
> John
> 
> 
> 

Best wishes / Mit freundlichen Grüßen

Martin Hepp

-------------------------------------------------------
martin hepp
e-business & web science research group
universitaet der bundeswehr muenchen

e-mail:  martin.hepp@unibw.de
phone:   +49-(0)89-6004-4217
fax:     +49-(0)89-6004-4620
www:     http://www.unibw.de/ebusiness/ (group)
         http://www.heppnetz.de/ (personal)
skype:   mfhepp 
twitter: mfhepp

Check out GoodRelations for E-Commerce on the Web of Linked Data!
=================================================================
* Project Main Page: http://purl.org/goodrelations/
Received on Thursday, 21 May 2015 09:09:22 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 21 May 2015 09:09:22 UTC