W3C home > Mailing lists > Public > public-vocabs@w3.org > March 2015

Re: why Vehicle subClassOf Product ? (also: Commercial, Economic)

From: Martin Hepp <martin.hepp@unibw.de>
Date: Thu, 26 Mar 2015 15:26:47 +0100
Cc: W3C Web Schemas Task Force <public-vocabs@w3.org>, Gregg Kellogg <gregg@greggkellogg.net>
Message-Id: <CF20FD8B-ACBF-4A57-9702-884C74A1B7F4@unibw.de>
To: ☮ elf Pavlik ☮ <perpetual-tripper@wwelves.org>
IF we can establish it as a standard that products are multi-typed entities and IF all major consumers of schema.org markup can process this, then it would indeed good to

- move all subtypes of Product up to a new branch of Thing 
- move up all properties of Product that are not tied to the Product role up to that subtype(s) of Thing (e.g weight)

The historic reason for having Car etc. below Product was that

- we could not rely on multi-typing, because in Microdata, multi-typed entities are not fully supported (we have additionalProperty and multi-types from the same vocab are in general okay, but there are unresolved problems with properties in this case)

- human users are more likely to use such types properly if they see all properties that apply, i.e. such from the nature of the product and from the product role.

GoodRelations has always relied on the multi-type approach, but in a bit more complicated manner, see

    http://wiki.goodrelations-vocabulary.org/Documentation/Extensions (a bit outdated)

But as said, I am happy to clean this up if the two preconditions above are met.


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

On 26 Mar 2015, at 14:35, ☮ elf Pavlik ☮ <perpetual-tripper@wwelves.org> wrote:

> Hello,
> As I understand Product acts as Class for adding e-commerce aspect to
> other Things. Most likely to use it with "@type": ["Book", "Product"] or
> additionalType when used in microdata.
> I don't understand why Vehicle landed as subClassOf Product? I also
> don't understand which other things may end up subclassing Product in
> the future and which will for example subclass CreativeWork or Place.
> IMO Vehicle, just as Place could directly subclass Thing. Or we could
> also add Tangible class to deal in a future with with Device etc. (e.g.
> http://schema.org/MedicalDevice)
> It reminds me about my question long time ago about POI (Point Of
> Interest). Which also doesn't make that much sense in class hierarchy
> but could similar as Product serve as a class to use in addition to
> other classes.
> I haven't worked with ruby programming language for quite some time, but
> in some ways I see similarity to Class vs. Module (besides many other
> differences from Object Oriented Programming, single parent doesn't
> apply here as well)
> This answer has relevant example which happens to use a Vehicle
> http://stackoverflow.com/questions/1282864/ruby-inheritance-vs-mixins/1282895#1282895
> In a way Product sounds to me as something more in direction of
> 'Commercial' or broader 'Economic'.
> Thoughts?
Received on Thursday, 26 March 2015 14:27:39 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 26 March 2015 14:27:39 UTC