W3C home > Mailing lists > Public > public-bioschemas@w3.org > September 2017

Re: Multiple types

From: Alejandra Gonzalez-Beltran <alejandra.gonzalezbeltran@oerc.ox.ac.uk>
Date: Thu, 14 Sep 2017 12:40:49 +0100
To: public-bioschemas@w3.org
Message-ID: <05b060a1-e432-09b2-9986-5968b44ba0fe@oerc.ox.ac.uk>
Hi Leyla,

The multiple types issues is not about the vocabulary, but of the 
languages you will be using to represent the metadata.

Where you asking if the Google Structured Data tool supports the 
multiple types?

It seems that http://schema.org/additionalType is a property that allows 
you to specify another type for an entity, as per the examples in that 
page (see microdata, JSON-LD), but as I understand it, it is only to be 
used for adding types from a different vocabulary in microdata (and 
probably this generated the need of this property?).

Note that JSON-LD supports multiple types (see seccion 5.4 in the spec 
https://www.w3.org/TR/json-ld/)

Microdata also supports multiple types as long as they are from the same 
vocabulary: 
https://www.w3.org/TR/2013/NOTE-microdata-20131029/#attr-itemtype And in 
RDFa you can use 'typeof' for multiple types.

Hope this helps,

Alejandra


On 14/09/2017 12:23, ljgarcia wrote:
> Hello,
>
> Does anyone know whether schema.org. supports multiple types? From 
> http://schema.org/additionalType I seems like it does.
>
> I want to know if I can have an element with types StructuredValue and 
> MedicalCondition at the same time... so I can use properties from both 
> of them.
>
> Regards,
>
Received on Thursday, 14 September 2017 11:41:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:07:59 UTC