Machine readable metadata example

Organisation schema

How it looks (preview)

<script type="application/ld+json">
  {
  "@context": "http://schema.org",
  "@type": "GovernmentOrganization",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://www.gov.uk/foo"
  },
  "name": "Ministry of Organisation",
  "description": null,
  "logo": "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-logo-a4dbec48c2dea64aa4fa26dbec4203fd6506d714570f207ed1c4bae7359680f4.png",
  "potentialAction": {
    "@type": "SearchAction",
    "description": "Find all content from Ministry of Organisation",
    "target": "https://www.gov.uk/search/all?keywords={query}\u0026order=relevance\u0026organisations%5B%5D=foo",
    "query": "required"
  }
}
</script>

<link rel="canonical" href="https://www.gov.uk/foo" />

<meta property="og:site_name" content="GOV.UK" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://www.gov.uk/foo" />
<meta property="og:title" content="Ministry of Organisation" />
<meta property="og:description" content="" />

  <meta name="twitter:card" content="summary" />

How to call this example

<%= render "govuk_publishing_components/components/machine_readable_metadata", {
  content_item: {
    title: "Ministry of Organisation",
    base_path: "/foo",
    details: {
    }
  },
  schema: "organisation"
} %>