受欢迎的博客标签

seo:Structured Data JSON-LD

Published

Google On Which Structured Data it Prefers: JSON-LD or Microdata?

Linked Data empowers people that publish and use information on the Web. It is a way to create a network of standards-based, machine-readable data across Web sites. It allows an application to start at one piece of Linked Data, and follow embedded links to other pieces of Linked Data that are hosted on different sites across the Web.

JSON-LD is a lightweight Linked Data format. It is easy for humans to read and write. It is based on the already successful JSON format and provides a way to help JSON data interoperate at Web-scale. JSON-LD is an ideal data format for programming environments, REST Web services, and unstructured databases such as Apache CouchDB and MongoDB.

JSON-LD website:https://json-ld.org/

A Simple Example for JSON-LD 

{
  "@context": "https://json-ld.org/contexts/person.jsonld",
  "@id": "http://dbpedia.org/resource/John_Lennon",
  "name": "John Lennon",
  "born": "1940-10-09",
  "spouse": "http://dbpedia.org/resource/Cynthia_Lennon"
}

 

 

example website

https://kleypot.com/tag/home-automation/

 <script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@type": "Series",
    "publisher": {
        "@type": "Organization",
        "name": "kleypot",
        "url": "https://kleypot.com/",
        "logo": {
            "@type": "ImageObject",
            "url": "https://kleypot.com/content/images/2019/07/logo.png",
            "width": 118,
            "height": 33
        }
    },
    "url": "https://kleypot.com/tag/home-automation/",
    "name": "home-automation",
    "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://kleypot.com/"
    }
}
    </script>