Niedzielski added a comment. |
Per discussion, I've continued with the minimal JSON-LD approach. I've uploaded a WIP with a Q number hardcoded while we figure out the linking issue subtasked. I've staged the change. It literally injects:
<script type="application/ld+json">{"@context":"http:\/\/schema.org","name":"Show Me the Money (U.S. game show)","url":"http:\/\/readers-web-stephen.wmflabs.org\/wiki\/Show_Me_the_Money_(U.S._game_show)","sameAs":["http:\/\/readers-web-stephen.wmflabs.org\/wiki\/Q7503010"]}</script>
Or, after pretty print and unescaping:
<script type="application/ld+json"> { "@context": "http://schema.org", "name": "Show Me the Money (U.S. game show)", "url": "http://readers-web-stephen.wmflabs.org/wiki/Show_Me_the_Money_(U.S._game_show)", "sameAs": [ "http://readers-web-stephen.wmflabs.org/wiki/Q7503010" ] } </script>This is verbatim the recommendation provided. However, Google's structured data testing tool flags a missing @type field as an error. I think this should be "instance of" or "subclass of". I'll look into how to query this extra information next.
TASK DETAIL
EMAIL PREFERENCES
To: Niedzielski
Cc: gerritbot, Denny, ovasileva, Tbayer, Elitre, CKoerner_WMF, Jdlrobson, Niedzielski, phuedx, dr0ptp4kt, Imarlier, cscott, Krenair, Aklapper, Deskana, CucyNoiD, Nandana, NebulousIris, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Chicocvenancio, Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, Winter, Lewizho99, Maathavan, Wikidata-bugs, aude, Mbch331
Cc: gerritbot, Denny, ovasileva, Tbayer, Elitre, CKoerner_WMF, Jdlrobson, Niedzielski, phuedx, dr0ptp4kt, Imarlier, cscott, Krenair, Aklapper, Deskana, CucyNoiD, Nandana, NebulousIris, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Chicocvenancio, Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, Winter, Lewizho99, Maathavan, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs