Re: Multiple types

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-multiple-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-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:56:36 UTC