Re: Multiple types

1. Schema.org does support multiple types, in the sense that a single
entity can be considered a member of multiple (independent) classes.

Canonical example would be a book, since you can describe this as a member
of http://schema.org/Book and http://schema.org/Product

Note also that some core schema.org types also have multiple independent
supertypes, e.g. LocalBusiness (Organization + Place).

2. Microdata did not have a direct notation to support this, which is why
additionalType is provided. In JSON-LD or RDFa 1.1 you can use the native
facilities of that notation to use a general typing mechanism, and no need
for the schema.org specific additionalType property.

3. For several years, unfortunately Google's SDTT assumed that things had
exactly one type. It still tends to complain if you mention something with
0 types, but it is now ok with multiple.

Hope this helps!

On 14 September 2017 at 12:55, Alejandra Gonzalez-Beltran <
alejandra.gonzalezbeltran@oerc.ox.ac.uk> wrote:

> Hi again,
>
> BTW, given the JSON-LD and microdata examples in
> http://schema.org/additionalType, it might be that to specify multiple
> types to be interpreted by the Google Structured Data tool, you do need to
> use that property instead of a list of '@type' or 'itemtype', respectively.
>
> According to this:
>
> https://stackoverflow.com/questions/21961980/can-i-use-multi
> ple-itemtypes-in-one-itemscope-for-schema-org
>
> the tool didn't use to support the itemtype in microdata for multiple
> types.
>
> Maybe Dan can confirm if this has changed.
>
> If you are using other tools, it should work.
>
> Thanks,
>
> Alejandra
>
>
>
> On 14/09/2017 12:40, Alejandra Gonzalez-Beltran wrote:
>
>> 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-ite
>> mtype 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 14:29:28 UTC