W3C home > Mailing lists > Public > public-bioschemas@w3.org > April 2021

Google rich-results tool fails on JSON-LD language container

From: Franck Michel <franck.michel@inria.fr>
Date: Mon, 26 Apr 2021 18:48:13 +0200
To: "public-bioschemas@w3.org" <public-bioschemas@w3.org>
Message-ID: <3c15c12e-01b5-faca-3265-e722781db325@inria.fr>
Hi all,

Google's rich-results tool fails to parse the markup recommended with a 
Taxon profile. This is about the use of a property from another 
vocabulary, dwc:vernacularName, that is declared as a container of type 
language.
Have a look here: 
https://search.google.com/test/rich-results?id=eqw_OkDVp7YXUsfLebM4Qg

Here is how it goes:
{
     "@context": [
         "https://schema.org",
         {   "dwc": "http://rs.tdwg.org/dwc/terms/",
             "dwc:vernacularName": { "@container": "@language" }
         }
     ],
     "@type" : "Taxon",
     "name": "Delphinapterus leucas (Pallas, 1776)",
     "vernacularName": [
         { "@language": "fr", "@value": "Bélouga" }
     ]
}

This is correct according to the JSON-LD playground. But Google's tool 
simply says "Incorrect value type "dwc:vernacularName" without further 
explanation.

Has anyone already faced that issue? Any ideas?

Thx,
     Franck.

-- 
Franck MICHEL, CNRS research engineer
Université Côte d’Azur, CNRS, Inria
I3S laboratory (UMR 7271)			
Received on Monday, 26 April 2021 16:53:45 UTC

This archive was generated by hypermail 2.4.0 : Monday, 26 April 2021 16:53:46 UTC