topLeft lightmiddlePinkLightrightPurpleLight

How to cite sources using Schema.org in JSON-LD

Paul Grieselhuber

Paul Grieselhuber

Apr 19, 2019

So you want to add your list of sources as citations to an article, blog post, or some other creative work? This is a short and sweet post that gives you the output format you are looking for.

This has been run through Google's Structured Data Testing Tool and successfully validates.

{
  "@context": "https://schema.org/",
  "@type": "Article",
  "name": "The article title",
  "about": "The subject of your article",
  "author": {
    "@type": "Person",
    "@id": "https://www.website.com/author/your-name",
    "name": "Your Name"
  },
  "citation": [
    {
      "@type": "CreativeWork",
      "citation": "Smith et al, \"Some cited work\" Some Journal, Jan. 2015. "
    },
    {
      "@type": "CreativeWork",
      "citation": "Hatcher et al, \"Some other cited work\" Another Journal, Mar. 2019. doi: 12.3456/abc.01.123"
    }
  ],
  "commentCount": 100,
  "copyrightHolder": {
    "@id": "https://www.website.com/#organization"
  },
  "copyrightYear": 2019,
  "datePublished": "2019-04-23 01:23:45",
  "dateModified": "2019-04-23 03:23:45",
  "description": "The subject of your article",
  "discussionUrl": "https://www.website.com/blog/your-post#comments",
  "editor": {
    "@id": "https://www.website.com/author/your-name#author"
  },
  "headline": "The article title",
  "image": "https://www.website.com/wp-content/uploads/image.jpg",
  "inLanguage": "English",
  "mainEntityOfPage": "https://www.website.com/blog/your-post",
  "publisher": {
    "@id": "https://www.website.com/#organization"
  },
  "sourceOrganization": {
    "@id": "https://www.website.com/#organization",
    "type": "Organization",
    "name": "Our Company",
    "logo": {
      "@type": "ImageObject",
      "name": "Our Logo",
      "width": "230",
      "height": "67",
      "url": "https://www.website.com/images/logo.png"
    }
  },
  "url": "https://www.website.com/blog/your-post"
}

Other fields have been added above for context, and because this stuff can be a PITA to figure out.

You'll obviously want to edit the other fields accordingly. Happy citing!

Paul Grieselhuber

Paul Grieselhuber

Founder, President

Paul has extensive background in software development and product design. Currently he runs rendr.


Comments

    Book a discovery call with our product experts.

    Our team of web and mobile application experts look forward to discussing your next project with you.

    Book a call with us 👋