W3C home > Mailing lists > Public > public-schemaorg@w3.org > March 2017

Re: Multilingual names

From: Martynas Jusevičius <martynas@graphity.org>
Date: Thu, 9 Mar 2017 17:49:59 +0100
Message-ID: <CAE35VmyAm1nx4bwXe2n6KqWWvuwSp6ScOiQWkYPJbyTsmqgaoQ@mail.gmail.com>
To: Aaron Bradley <aaranged@gmail.com>
Cc: "schema. org Mailing List" <public-schemaorg@w3.org>, Richard Wallis <richard.wallis@dataliberate.com>
(The subject admittedly could have been better: "Properties with
language tags" or smth)

On Thu, Mar 9, 2017 at 5:49 PM, Martynas Jusevičius
<martynas@graphity.org> wrote:
> Aaron, I know this. In this case I'm *not* using multiple properties.
> Just a single one with a language tag.
>
> On Thu, Mar 9, 2017 at 5:47 PM, Aaron Bradley <aaranged@gmail.com> wrote:
>> If you're using multiple values for a text property, you need an array.
>> This passes muster in the SDTT:
>>
>> <script type="application/ld+json">
>> {
>>   "@context": "http://schema.org",
>>   "@type": "Person",
>>   "name": [
>>   {
>>      "@language": "en",
>>      "@value": "Leonardo da Vinci"
>>   },
>>   {
>>     "@language": "mk",
>>     "@value": "Леонардо да Винчи"
>>     }
>>   ]
>> }
>> </script>
>>
>> On Thu, Mar 9, 2017 at 8:03 AM, Martynas Jusevičius <martynas@graphity.org>
>> wrote:
>>>
>>> I have created an issue with Google:
>>>
>>> https://productforums.google.com/forum/?utm_medium=email&utm_source=footer#!topic/webmasters/QJIyPVbE4kU;context-place=forum/webmasters
>>>
>>> As it is now, I consider the Structured Data Testing Tool unusable.
>>>
>>> On Wed, Mar 8, 2017 at 10:02 PM, Martynas Jusevičius
>>> <martynas@graphity.org> wrote:
>>> > Hey,
>>> >
>>> > how do I define names in multiple languages using schema.org JSON-LD?
>>> >
>>> > I tried this:
>>> >
>>> > "name": { "@value": "24timer", "@language": "da" }
>>> >
>>> > which is valid JSON-LD, but Google Structured Data Testing Tool does
>>> > not allow it.
>>> >
>>> >
>>> > Martynas
>>> > atomgraph.com
>>>
>>
Received on Thursday, 9 March 2017 16:50:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:12:34 UTC