Component

Machine readable metadata

Generates schema.org JSON-LD for use by search engines

This component doesn’t output anything visible. It generates “structured data” in JSON-LD format, with schema.org schemas.

Search for usage of this component on GitHub.

How it looks (preview) (preview all)

<script type="application/ld+json">
  {
  "@context": "http://schema.org",
  "@type": "Article",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://www.gov.uk/foo"
  },
  "name": "A title",
  "datePublished": null,
  "dateModified": null,
  "text": null,
  "publisher": {
    "@type": "Organization",
    "name": "GOV.UK",
    "url": "https://www.gov.uk",
    "logo": {
      "@type": "ImageObject",
      "url": "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-logo-a4dbec48c2dea64aa4fa26dbec4203fd6506d714570f207ed1c4bae7359680f4.png"
    }
  },
  "image": [
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-1x1-31bb845ef192ed4084e5f9af88bb2e790af3fc4294605212d119273d62fa4d28.png",
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-4x3-8dde9bdabeca48eabc4eab06da67860b9a33baac84ad8943c02eedd43395f5df.png",
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-16x9-f6d1b9e7a378ab17c6897294c9f13ef20dcff2434957f2abf894934231f4d839.png"
  ],
  "headLine": "A title",
  "description": null
}
</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="A title" />
<meta property="og:description" content="" />

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

How to call this component

<%= render "govuk_publishing_components/components/machine_readable_metadata", {
  content_item: {
    title: "A title",
    base_path: "/foo",
    details: {
    }
  },
  schema: "article"
} %>

Accessibility acceptance criteria

The HTML should not be visible.

Other examples

With description (preview)

<script type="application/ld+json">
  {
  "@context": "http://schema.org",
  "@type": "Article",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://www.gov.uk/foo"
  },
  "name": "A title",
  "datePublished": null,
  "dateModified": null,
  "text": "Some manually set description of the page",
  "publisher": {
    "@type": "Organization",
    "name": "GOV.UK",
    "url": "https://www.gov.uk",
    "logo": {
      "@type": "ImageObject",
      "url": "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-logo-a4dbec48c2dea64aa4fa26dbec4203fd6506d714570f207ed1c4bae7359680f4.png"
    }
  },
  "image": [
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-1x1-31bb845ef192ed4084e5f9af88bb2e790af3fc4294605212d119273d62fa4d28.png",
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-4x3-8dde9bdabeca48eabc4eab06da67860b9a33baac84ad8943c02eedd43395f5df.png",
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-16x9-f6d1b9e7a378ab17c6897294c9f13ef20dcff2434957f2abf894934231f4d839.png"
  ],
  "headLine": "A title",
  "description": "Some manually set description of the page"
}
</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="A title" />
<meta property="og:description" content="Some manually set description of the page" />

  <meta name="twitter:card" content="summary" />
<%= render "govuk_publishing_components/components/machine_readable_metadata", {
  content_item: {
    title: "A title",
    base_path: "/foo",
    details: {
    }
  },
  schema: "article",
  description: "Some manually set description of the page"
} %>

With canonical url (preview)

<script type="application/ld+json">
  {
  "@context": "http://schema.org",
  "@type": "Article",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://www.gov.uk/foreign-travel-advice/andorra/health"
  },
  "name": "A title",
  "datePublished": null,
  "dateModified": null,
  "text": null,
  "publisher": {
    "@type": "Organization",
    "name": "GOV.UK",
    "url": "https://www.gov.uk",
    "logo": {
      "@type": "ImageObject",
      "url": "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-logo-a4dbec48c2dea64aa4fa26dbec4203fd6506d714570f207ed1c4bae7359680f4.png"
    }
  },
  "image": [
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-1x1-31bb845ef192ed4084e5f9af88bb2e790af3fc4294605212d119273d62fa4d28.png",
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-4x3-8dde9bdabeca48eabc4eab06da67860b9a33baac84ad8943c02eedd43395f5df.png",
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-16x9-f6d1b9e7a378ab17c6897294c9f13ef20dcff2434957f2abf894934231f4d839.png"
  ],
  "headLine": "A title",
  "description": null
}
</script>

<link rel="canonical" href="https://www.gov.uk/foreign-travel-advice/andorra/health" />

<meta property="og:site_name" content="GOV.UK" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://www.gov.uk/foreign-travel-advice/andorra/health" />
<meta property="og:title" content="A title" />
<meta property="og:description" content="" />

  <meta name="twitter:card" content="summary" />
<%= render "govuk_publishing_components/components/machine_readable_metadata", {
  content_item: {
    title: "A title",
    base_path: "/foo",
    details: {
    }
  },
  schema: "article",
  canonical_url: "https://www.gov.uk/foreign-travel-advice/andorra/health"
} %>

With body (preview)

<script type="application/ld+json">
  {
  "@context": "http://schema.org",
  "@type": "Article",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://www.gov.uk/foo"
  },
  "name": "A title",
  "datePublished": null,
  "dateModified": null,
  "text": null,
  "publisher": {
    "@type": "Organization",
    "name": "GOV.UK",
    "url": "https://www.gov.uk",
    "logo": {
      "@type": "ImageObject",
      "url": "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-logo-a4dbec48c2dea64aa4fa26dbec4203fd6506d714570f207ed1c4bae7359680f4.png"
    }
  },
  "image": [
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-1x1-31bb845ef192ed4084e5f9af88bb2e790af3fc4294605212d119273d62fa4d28.png",
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-4x3-8dde9bdabeca48eabc4eab06da67860b9a33baac84ad8943c02eedd43395f5df.png",
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-16x9-f6d1b9e7a378ab17c6897294c9f13ef20dcff2434957f2abf894934231f4d839.png"
  ],
  "headLine": "A title",
  "description": null,
  "articleBody": "Some other body"
}
</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="A title" />
<meta property="og:description" content="" />

  <meta name="twitter:card" content="summary" />
<%= render "govuk_publishing_components/components/machine_readable_metadata", {
  content_item: {
    title: "A title",
    base_path: "/foo",
    details: {
    }
  },
  schema: "article",
  body: "Some other body"
} %>

A guide (preview)

<script type="application/ld+json">
  {
  "@context": "http://schema.org",
  "@type": "FAQPage",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://www.gov.uk/how-to-train-your-dragon"
  },
  "name": "How to train your dragon",
  "datePublished": null,
  "dateModified": null,
  "text": null,
  "publisher": {
    "@type": "Organization",
    "name": "GOV.UK",
    "url": "https://www.gov.uk",
    "logo": {
      "@type": "ImageObject",
      "url": "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-logo-a4dbec48c2dea64aa4fa26dbec4203fd6506d714570f207ed1c4bae7359680f4.png"
    }
  },
  "image": [
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-1x1-31bb845ef192ed4084e5f9af88bb2e790af3fc4294605212d119273d62fa4d28.png",
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-4x3-8dde9bdabeca48eabc4eab06da67860b9a33baac84ad8943c02eedd43395f5df.png",
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-16x9-f6d1b9e7a378ab17c6897294c9f13ef20dcff2434957f2abf894934231f4d839.png"
  ],
  "mainEntity": [
    {
      "@type": "Question",
      "name": "How to train your dragon",
      "url": "https://www.gov.uk/how-to-train-your-dragon",
      "acceptedAnswer": {
        "@type": "Answer",
        "url": "https://www.gov.uk/how-to-train-your-dragon",
        "text": "\u003cp\u003eTraining scaly beasts can be tricky\u003c/p\u003e "
      }
    },
    {
      "@type": "Question",
      "name": "Preparation",
      "url": "https://www.gov.uk/how-to-train-your-dragon#preparation",
      "acceptedAnswer": {
        "@type": "Answer",
        "url": "https://www.gov.uk/how-to-train-your-dragon#preparation",
        "text": " \u003cp\u003ePrepare by meditating and writing a will\u003c/p\u003e "
      }
    },
    {
      "@type": "Question",
      "name": "Afterwards ",
      "url": "https://www.gov.uk/how-to-train-your-dragon#afterwards",
      "acceptedAnswer": {
        "@type": "Answer",
        "url": "https://www.gov.uk/how-to-train-your-dragon#afterwards",
        "text": "\u003cp\u003eYour next of kin may need a strong stomach\u003c/p\u003e\n"
      }
    }
  ]
}
</script>

<link rel="canonical" href="https://www.gov.uk/how-to-train-your-dragon" />

<meta property="og:site_name" content="GOV.UK" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://www.gov.uk/how-to-train-your-dragon" />
<meta property="og:title" content="How to train your dragon" />
<meta property="og:description" content="" />

  <meta name="twitter:card" content="summary" />
<%= render "govuk_publishing_components/components/machine_readable_metadata", {
  content_item: {
    title: "How to train your dragon",
    base_path: "/how-to-train-your-dragon",
    details: {
      parts: [
        {
          slug: "overview",
          body: "A thing on how to train scaly beasts",
          title: "Overview"
        },
        {
          slug: "treating-injuries",
          body: "Get to know a good blacksmith",
          title: "Treating injuries"
        }
      ]
    }
  },
  body: sanitize("<p>Training scaly beasts can be tricky</p> <h2 id='preparation'>Preparation</h2> <p>Prepare by meditating and writing a will</p> <h2 id='afterwards'>Afterwards<h2> <p>Your next of kin may need a strong stomach</p>
    "),
  schema: "faq",
  canonical_url: "https://www.gov.uk/how-to-train-your-dragon"
} %>

Government service schema (preview)

<script type="application/ld+json">
  {
  "@context": "http://schema.org",
  "@type": "GovernmentService",
  "name": "Apply for your first dragon",
  "description": "Apply for your first dragon from the Ministry of Dragons online",
  "url": "https://www.gov.uk/apply-for-your-first-dragon"
}
</script>

<link rel="canonical" href="https://www.gov.uk/apply-for-your-first-dragon" />

<meta property="og:site_name" content="GOV.UK" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://www.gov.uk/apply-for-your-first-dragon" />
<meta property="og:title" content="Apply for your first dragon" />
<meta property="og:description" content="Apply for your first dragon from the Ministry of Dragons online" />

  <meta name="twitter:card" content="summary" />
<%= render "govuk_publishing_components/components/machine_readable_metadata", {
  content_item: {
    title: "Apply for your first dragon",
    base_path: "/apply-for-your-first-dragon",
    description: "Apply for your first dragon from the Ministry of Dragons online",
    details: {
    }
  },
  schema: "government_service"
} %>

Person schema (preview)

<script type="application/ld+json">
  {
  "@context": "http://schema.org",
  "@type": "Person",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://www.gov.uk/foo"
  },
  "name": "A. Person",
  "description": null
}
</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="A. Person" />
<meta property="og:description" content="" />

  <meta name="twitter:card" content="summary" />
<%= render "govuk_publishing_components/components/machine_readable_metadata", {
  content_item: {
    title: "A. Person",
    base_path: "/foo",
    details: {
    }
  },
  schema: "person"
} %>

Organisation schema (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" />
<%= render "govuk_publishing_components/components/machine_readable_metadata", {
  content_item: {
    title: "Ministry of Organisation",
    base_path: "/foo",
    details: {
    }
  },
  schema: "organisation"
} %>

Organisation schema with people (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",
  "member": [
    {
      "@type": "Person",
      "honorificPrefix": "Minister",
      "image": "https://images.gov.uk/rufus.jpg",
      "name": "Rufus Scrimgeour MP",
      "url": "https://www.gov.uk/rufus-scrimgeour",
      "hasOccupation": [
        {
          "@type": "Role",
          "name": "Minister for Magic",
          "url": "https://www.gov.uk/minister-for-magic"
        },
        {
          "@type": "Role",
          "name": "Head of Auror Office",
          "url": "https://www.gov.uk/head-of-auror-office"
        }
      ]
    }
  ],
  "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" />
<%= render "govuk_publishing_components/components/machine_readable_metadata", {
  content_item: {
    title: "Ministry of Organisation",
    base_path: "/foo",
    details: {
      ordered_ministers: [
        {
          name_prefix: "Minister",
          name: "Rufus Scrimgeour MP",
          role: "Minister for Magic",
          href: "/rufus-scrimgeour",
          role_href: "/minister-for-magic",
          image: {
            url: "https://images.gov.uk/rufus.jpg"
          }
        },
        {
          name_prefix: "Minister",
          name: "Rufus Scrimgeour MP",
          role: "Head of Auror Office",
          href: "/rufus-scrimgeour",
          role_href: "/head-of-auror-office",
          image: {
            url: "https://images.gov.uk/rufus.jpg"
          }
        }
      ]
    }
  },
  schema: "organisation"
} %>

Search results page schema (preview)

<script type="application/ld+json">
  {
  "@context": "http://schema.org",
  "@type": "SearchResultsPage",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://www.gov.uk/finder/all"
  },
  "name": "The finding of all things",
  "datePublished": null,
  "dateModified": null,
  "text": null,
  "publisher": {
    "@type": "Organization",
    "name": "GOV.UK",
    "url": "https://www.gov.uk",
    "logo": {
      "@type": "ImageObject",
      "url": "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-logo-a4dbec48c2dea64aa4fa26dbec4203fd6506d714570f207ed1c4bae7359680f4.png"
    }
  },
  "image": [
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-1x1-31bb845ef192ed4084e5f9af88bb2e790af3fc4294605212d119273d62fa4d28.png",
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-4x3-8dde9bdabeca48eabc4eab06da67860b9a33baac84ad8943c02eedd43395f5df.png",
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-16x9-f6d1b9e7a378ab17c6897294c9f13ef20dcff2434957f2abf894934231f4d839.png"
  ]
}
</script>

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

<meta property="og:site_name" content="GOV.UK" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://www.gov.uk/finder/all" />
<meta property="og:title" content="The finding of all things" />
<meta property="og:description" content="" />

  <meta name="twitter:card" content="summary" />
<%= render "govuk_publishing_components/components/machine_readable_metadata", {
  content_item: {
    title: "The finding of all things",
    base_path: "/finder/all",
    details: {
    }
  },
  schema: "search_results_page"
} %>

Dataset schema (preview)

<script type="application/ld+json">
  {
  "@context": "http://schema.org",
  "@type": "Dataset",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://www.gov.ukgovernment/statistical-data-sets/hogwarts-data"
  },
  "name": "All the data about Hogwarts",
  "datePublished": null,
  "dateModified": null,
  "text": null,
  "publisher": {
    "@type": "Organization",
    "name": "GOV.UK",
    "url": "https://www.gov.uk",
    "logo": {
      "@type": "ImageObject",
      "url": "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-logo-a4dbec48c2dea64aa4fa26dbec4203fd6506d714570f207ed1c4bae7359680f4.png"
    }
  },
  "image": [
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-1x1-31bb845ef192ed4084e5f9af88bb2e790af3fc4294605212d119273d62fa4d28.png",
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-4x3-8dde9bdabeca48eabc4eab06da67860b9a33baac84ad8943c02eedd43395f5df.png",
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-16x9-f6d1b9e7a378ab17c6897294c9f13ef20dcff2434957f2abf894934231f4d839.png"
  ]
}
</script>

<link rel="canonical" href="https://www.gov.ukgovernment/statistical-data-sets/hogwarts-data" />

<meta property="og:site_name" content="GOV.UK" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://www.gov.ukgovernment/statistical-data-sets/hogwarts-data" />
<meta property="og:title" content="All the data about Hogwarts" />
<meta property="og:description" content="" />

  <meta name="twitter:card" content="summary" />
<%= render "govuk_publishing_components/components/machine_readable_metadata", {
  content_item: {
    title: "All the data about Hogwarts",
    base_path: "government/statistical-data-sets/hogwarts-data",
    details: {
    }
  },
  schema: "dataset"
} %>

Dataset schema with attachments (preview)

<script type="application/ld+json">
  {
  "@context": "http://schema.org",
  "@type": "Dataset",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://www.gov.ukgovernment/statistical-data-sets/hogwarts-data"
  },
  "name": "All the data about Hogwarts",
  "datePublished": null,
  "dateModified": null,
  "text": null,
  "publisher": {
    "@type": "Organization",
    "name": "GOV.UK",
    "url": "https://www.gov.uk",
    "logo": {
      "@type": "ImageObject",
      "url": "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-logo-a4dbec48c2dea64aa4fa26dbec4203fd6506d714570f207ed1c4bae7359680f4.png"
    }
  },
  "image": [
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-1x1-31bb845ef192ed4084e5f9af88bb2e790af3fc4294605212d119273d62fa4d28.png",
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-4x3-8dde9bdabeca48eabc4eab06da67860b9a33baac84ad8943c02eedd43395f5df.png",
    "http://components.publishing.service.gov.uk/assets/govuk_publishing_components/govuk-schema-placeholder-16x9-f6d1b9e7a378ab17c6897294c9f13ef20dcff2434957f2abf894934231f4d839.png"
  ],
  "distribution": [
    {
      "name": "List of headmasters",
      "contentUrl": "https://assets.publishing.service.gov.uk/hogwarts-data/headmasters.csv",
      "encodingFormat": "text/csv"
    },
    {
      "name": "Houses of Hogwarts",
      "url": "https://www.gov.uk/government/statistical-data-sets/hogwarts-data/houses"
    },
    {
      "name": "Dungeon cleaning shedule",
      "url": "https://hogwarts.gov.uk/datasets/dungeon-cleaning-schedule"
    }
  ]
}
</script>

<link rel="canonical" href="https://www.gov.ukgovernment/statistical-data-sets/hogwarts-data" />

<meta property="og:site_name" content="GOV.UK" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://www.gov.ukgovernment/statistical-data-sets/hogwarts-data" />
<meta property="og:title" content="All the data about Hogwarts" />
<meta property="og:description" content="" />

  <meta name="twitter:card" content="summary" />
<%= render "govuk_publishing_components/components/machine_readable_metadata", {
  content_item: {
    title: "All the data about Hogwarts",
    base_path: "government/statistical-data-sets/hogwarts-data",
    details: {
      attachments: [
        {
          attachment_type: "file",
          url: "https://assets.publishing.service.gov.uk/hogwarts-data/headmasters.csv",
          title: "List of headmasters",
          content_type: "text/csv",
          id: "headmasters.csv"
        },
        {
          attachment_type: "html",
          url: "https://www.gov.uk/government/statistical-data-sets/hogwarts-data/houses",
          title: "Houses of Hogwarts",
          id: "houses"
        },
        {
          attachment_type: "external",
          url: "https://hogwarts.gov.uk/datasets/dungeon-cleaning-schedule",
          title: "Dungeon cleaning shedule",
          id: "dungeon-cleaning-schedule"
        }
      ]
    }
  },
  schema: "dataset"
} %>