CINXE.COM
Data formats | The Gazette
<!DOCTYPE html> <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/"> <![endif]--> <!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7" lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/"> <![endif]--> <!--[if IE 8]><html class="no-js lt-ie9 ie8" lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/"> <![endif]--> <!--[if IE 9]><html class="no-js ie9" lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/"> <![endif]--> <!--[if gt IE 8]<!--><html xmlns="http://www.w3.org/1999/xhtml" class="no-js " lang="en" xml:lang="en" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/"> <!--<![endif] --> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Data formats | The Gazette</title> <!--BIG-IP--> <meta name="viewport" content="width=980, initial-scale=1" /> <link rel="shortcut icon" href="/favicon.ico" type="/image/x-icon" /> <link rel="apple-touch-icon" href="/apple-touch-icon.png" /> <link rel="apple-touch-icon" sizes="57脳57" href="/apple-touch-icon-57x57.png" /> <link rel="apple-touch-icon" sizes="72脳72" href="/apple-touch-icon-72x72.png" /> <link rel="apple-touch-icon" sizes="76脳76" href="/apple-touch-icon-76x76.png" /> <link rel="apple-touch-icon" sizes="114脳114" href="/apple-touch-icon-114x114.png" /> <link rel="apple-touch-icon" sizes="120脳120" href="/apple-touch-icon-120x120.png" /> <link rel="apple-touch-icon" sizes="144脳144" href="/apple-touch-icon-144x144.png" /> <link rel="apple-touch-icon" sizes="152脳152" href="/apple-touch-icon-152x152.png" /> <meta name="msapplication-square70x70logo" content="/smalltile.png" /> <meta name="msapplication-square150x150logo" content="/mediumtile.png" /> <meta name="msapplication-square310x310logo" content="/largetile.png" /> <meta name="locale" property="og:locale" content="en_GB" /> <meta name="type" property="og:type" content="article" /> <meta name="site_name" property="og:site_name" content="The Gazette" /> <meta property="twitter:dnt" content="on" /> <meta property="twitter:card" content="summary" /> <meta property="twitter:image" content="https://www.thegazette.co.uk/assets/chrome/images/1200x627.jpg" /> <meta name="image" property="og:image" content="https://www.thegazette.co.uk/assets/chrome/images/1200x627.jpg" /> <meta name="image:secure_url" property="og:image:secure_url" content="https://www.thegazette.co.uk/assets/chrome/images/1200x627.jpg" /> <meta property="twitter:title" content="Data formats | The Gazette..." /> <meta name="title" property="og:title" content="Data formats | The Gazette..." /> <meta name="url" property="og:url" content="https://www.thegazette.co.uk/all-notices/content/158" /> <meta name="description" property="og:description" content="Gazette data formats..." /> <meta name="keywords" content="gazette data formats" /> <meta name="description" content="Gazette data formats" /> <link href="https://www.thegazette.co.uk/assets/chrome/all-notices.css?build=1.1076.0.1414" rel="stylesheet" type="text/css" /> <link href="https://www.thegazette.co.uk/assets/chrome/print.css?build=1.1076.0.1414" rel="stylesheet" type="text/css" media="print" /><script src="https://www.thegazette.co.uk/assets/vendor/modernizr.js" type="text/javascript"></script></head> <body data-session-timeout="1800"> <div xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" id="build-banner" hidden="" class="build-banner build-banner--origin">www.thegazette.co.uk 1.1076.0.1414</div> <div class="wrapper"> <div class="wrapperContent"> <ul xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" class="accessible-links"> <li><a href="#navigation">Skip to service navigation</a></li> <li><a href="#main_content">Skip to main content</a></li> </ul> <nav xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" role="navigation"> <div class="top-navigation-group"> <div class="main container"> <div class="nav-container navbar"> <div class="content"> <ul class="services nav"> <li> <a href="/" title="The Gazette Homepage">Home</a> </li> <li class="parent"> <a href="/place-notice?ref=topmenu">Place a Notice</a> <ul class="sub-nav"> <li> <a href="/place-notice">Guide to Placing a notice</a> </li> <li> <a href="/place-notice/pricing">Prices</a> </li> <li> <a href="/all-notices/place-a-coronavirus-notice">Place a coronavirus notice</a> </li> <li> <a href="/wills-and-probate/place-a-deceased-estates-notice">Place a deceased estates notice</a> </li> <li class="last"> <a href="/insolvency/place-an-insolvency-notice">Place an insolvency notice</a> </li> </ul> </li> <li class="parent"> <a href="/all-notices?ref=topmenu">Notices</a> <ul class="sub-nav"> <li> <a href="/all-notices">All Notices</a> </li> <li> <a href="/awards-and-accreditation">Awards and Accreditation</a> </li> <li> <a href="/insolvency">Insolvency</a> </li> <li> <a href="/wills-and-probate">Wills and Probate</a> </li> <!--<li><a href="/companies">Companies</a></li>--> <li> <a href="/browse-publications">Publications</a> </li> <li class="last"> <a href="/all-notices/resources">Resources</a> </li> </ul> </li> <li class="parent"> <a href="/companies/discover-more?ref=topmenu">Companies</a> <ul class="sub-nav"> <li> <a href="/companies">All company profiles</a> </li> <li> <a href="/companies/discover-more">Discover more</a> </li> <li> <a href="/companies/customise">Customise your profile</a> </li> <li> <a href="/dataservice">Company data</a> </li> <li> <a href="/companies/resources">Resources</a> </li> </ul> </li> <li class="parent"> <a href="/data/formats?ref=topmenu" class="active">Data and research</a> <ul class="sub-nav"> <li> <a href="/data/formats">Data formats and re-use</a> </li> <li> <a href="/dataservice">Data service</a> </li> <li> <a href="/researchservice">Research service</a> </li> <li class="last"> <a href="/validate/what-is-a-digital-signature">Data validation</a> </li> </ul> </li> <li class="parent"> <a href="/help?ref=topmenu">Help and about</a> <ul class="sub-nav"> <li> <a href="/help">Help</a> </li> <li> <a href="/about">About</a> </li> <li class="last"> <a href="/videos">Videos</a> </li> </ul> </li> <li> <a href="/shop">Shop</a> </li> </ul> <ul class="account nav"> <li><a href="/my-gazette/account?register=true" class="my-gazettes-register">Create an account</a></li> <li><a href="/sign-in" class="sign-in-modal">Sign in</a></li> </ul> </div> </div> </div> </div> </nav> <div class="header-group"> <div class="main container"> <header role="banner"> <div class="site-header"> <h1 class="accessible-text">The Gazette</h1><a href="/" title="The Gazette Home Page" class="site-logo"><img src="https://www.thegazette.co.uk/assets/chrome/images/logo.png?build=1.1076.0.1414" alt="The Gazette" /></a><p class="strapline"><a data-tooltip="middle:top" href="#published-by-authority">Published by Authority</a> | Est 1665 </p> </div> </header> </div> </div> <nav role="navigation"> <div class="service-navigation-group"> <div class="main container"> <div class="nav-container service-nav"> <ul class="nav nav-tabs" id="navigation"> <li><a href="/data/formats" class="active">Data formats</a></li> <li><a href="/data/longitudinal-datasets" class="">Longitudinal datasets</a></li> <li><a href="/data" class="">Re-using data</a></li> </ul> </div> </div> </div> </nav> <div class="main-group "> <div class="main container" id="main_content"> <div class="services-content no-search"> <div class="main-pane" role="main"> <article class="news-article" id="content-158"> <header> <div class="title"> <h1>Data formats</h1> </div> </header> <div class="content"> <p>Gazette notices can be submitted as either documents containing the full text of the notice, or as data where the only the variable elements of the notice are provided and this is then merged with a template to produce a full notice. </p> <p>During the submission of the notice, in both instances, the data elements within the notice are marked up using the RDFa syntax and enriched with information from other data sources. As the notice is published, the RDFa is extracted from the notice and stored as RDF in a triple store. This provides us with both document views of the notice, ie聽the whole textual content of the notice and data views of the notice, ie聽the entities which have been identified within the notice. </p> <p>The Gazette API allows the different representations of a notice to be retrieved via format specific URIs as described in the table below: </p> <table> <thead> <tr> <th></th> <th style="width: 20px;"></th> <th>Response type</th> <th style="width: 20px;"></th> <th>Notes</th> </tr> </thead> <tbody> <tr> <td>/notice/{notice-id}<br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> /notice/{notice-id}/data.htm </td> <td style="width: 20px;"></td> <td>(X)HTML5+RDFa</td> <td style="width: 20px;"></td> <td>Website view of the notice with all of the page chrome included.</td> </tr> <tr> <td>/notice/{notice-id}/data.xml</td> <td style="width: 20px;"></td> <td>(X)HTML5+RDFa</td> <td style="width: 20px;"></td> <td>Contains only the notice content</td> </tr> <tr> <td>/notice/{notice-id}/data.pdf</td> <td style="width: 20px;"></td> <td>PDF</td> <td style="width: 20px;"></td> <td></td> </tr> <tr> <td>/notice/{notice-id}/data.ttl</td> <td style="width: 20px;"></td> <td>TTL</td> <td style="width: 20px;"></td> <td></td> </tr> <tr> <td>/notice/{notice-id}/data.rdf</td> <td style="width: 20px;"></td> <td>RDF</td> <td style="width: 20px;"></td> <td></td> </tr> <tr> <td>/notice/{notice-id}/data.jsonld</td> <td style="width: 20px;"></td> <td>JSON LD</td> <td style="width: 20px;"></td> <td></td> </tr> <tr> <td>/notice/{notice-id}?view=linked-data</td> <td style="width: 20px;"></td> <td>HTML</td> <td style="width: 20px;"></td> <td>HTML representation of the data view of the notice</td> </tr> <tr> <td>/notice/{notice-id}/data.ttl?view=linked-data</td> <td style="width: 20px;"></td> <td>TTL</td> <td style="width: 20px;"></td> <td></td> </tr> <tr> <td>/notice/{notice-id}/data.rdf?view=linked-data</td> <td style="width: 20px;"></td> <td>RDF/XML</td> <td style="width: 20px;"></td> <td></td> </tr> <tr> <td>/notice/{notice-id}/data.rdfjson?view=linked-data</td> <td style="width: 20px;"></td> <td>RDF/JSON</td> <td style="width: 20px;"></td> <td></td> </tr> <tr> <td>/notice/{notice-id}/data.json?view=linked-data</td> <td style="width: 20px;"></td> <td>JSON LD</td> <td style="width: 20px;"></td> <td></td> </tr> <tr> <td>/notice/{notice-id}/data.xml?view=linked-data</td> <td style="width: 20px;"></td> <td>XML</td> <td style="width: 20px;"></td> <td>Linked data XML view containing the only data elements of the notice</td> </tr> </tbody> </table> <p>The Gazette API also supports content negotiation so using the document URIs in the table below and the Accept header set to the media type specified content can be retrieved in all the available formats. </p> <table> <thead> <tr> <th>Generic Document URI</th> <th style="width: 10px;"></th> <th>Accept header</th> <th></th> <th>Response type</th> <th style="width: 10px;"></th> <th>Matching representation*</th> </tr> </thead> <tbody> <tr> <td>/notice/{notice-id}</td> <td style="width: 10px;"></td> <td>application/ld+json</td> <td></td> <td>JSON LD</td> <td style="width: 10px;"></td> <td></td> </tr> <tr> <td>application/rdf+xml</td> <td style="width: 10px;"></td> <td>RDF</td> <td></td> <td></td> <td style="width: 10px;"></td> </tr> <tr> <td>text/turtle</td> <td style="width: 10px;"></td> <td>TTL</td> <td></td> <td></td> <td style="width: 10px;"></td> </tr> <tr> <td>application/xml</td> <td style="width: 10px;"></td> <td>(X)HTML5+RDFa</td> <td></td> <td>/notice/{notice-id}/data.xml</td> <td style="width: 10px;"></td> </tr> <tr> <td>text/html</td> <td style="width: 10px;"></td> <td>(X)HTML5+RDFa</td> <td></td> <td>/notice/{notice-id}<br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> /notice/{notice-id}/data.htm </td> <td style="width: 10px;"></td> </tr> <tr> <td>*/*</td> <td style="width: 10px;"></td> </tr> <tr> <td>/notice/{notice-id}?view=linked-data</td> <td style="width: 10px;"></td> <td>application/rdf+xml</td> <td style="width: 10px;"></td> <td>RDF/XML</td> <td style="width: 10px;"></td> <td></td> </tr> <tr> <td>application/rdf+json</td> <td style="width: 10px;"></td> <td>RDF/JSON</td> <td style="width: 10px;"></td> <td></td> <td style="width: 10px;"></td> </tr> <tr> <td>text/turtle</td> <td style="width: 10px;"></td> <td>TTL</td> <td style="width: 10px;"></td> <td></td> <td style="width: 10px;"></td> </tr> <tr> <td>application/json</td> <td style="width: 10px;"></td> <td>JSON</td> <td style="width: 10px;"></td> <td></td> <td style="width: 10px;"></td> </tr> <tr> <td>application/xml</td> <td style="width: 10px;"></td> <td>XML</td> <td style="width: 10px;"></td> <td></td> <td style="width: 10px;"></td> </tr> <tr> <td>text/html</td> <td style="width: 10px;"></td> <td>HTML</td> <td style="width: 10px;"></td> <td></td> <td style="width: 10px;"></td> </tr> </tbody> </table> <p>Various other key elements of content available in The Gazette platform such as search results and historic pages are also available in various representations. For more information regarding the available content, formats available and ways of accessing please refer to <a href="https://github.com/TheGazette/DevDocs/blob/master/home.md">The Gazette Developer Documentation</a> which contains far more information. </p> </div> </article> </div> <div class="related-pane"> <aside> <div class="block actions"> <header> <h3 class="title">Actions</h3> </header> <div class="content"> <ul> <li class="share"><a class="sharing-tools-title" data-tooltip="middle:bottom" href="#sharing-tool"><span>Share this article</span></a><ul id="sharing-tool" class="sharing-tools progressive help-tip"> <li><a class="btn-social btn-social-link" href="/all-notices/content/158/share/link"><span class="accessible-text">Link to this article</span></a></li> <li><a class="btn-social btn-social-facebook" target="_blank" href="http://www.facebook.com/sharer.php?u=https://www.thegazette.co.uk/all-notices/content/158" title="Share this article to Facebook (Link opens in new browser window)"><span class="accessible-text">Share this article to Facebook </span></a></li> <li><a class="btn-social btn-social-linkedin" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.thegazette.co.uk%2Fall-notices%2Fcontent%2F158&title=Data%20formats" title="Share this article to LinkedIn (Link opens in new browser window)"><span class="accessible-text">Share this article to LinkedIn? </span></a></li> <li><a class="btn-social btn-social-twitter" target="_blank" href="http://twitter.com/share?text=Data%20formats&url=https://www.thegazette.co.uk/all-notices/content/158" title="Tweet this article (Link opens in new browser window)"><span class="accessible-text">Tweet this article</span></a></li> <li class="last"><a class="btn-social btn-social-googleplus" target="_blank" href="https://plus.google.com/share?url=https://www.thegazette.co.uk/all-notices/content/158" title="Google+ this article (Link opens in new browser window)"><span class="accessible-text">Google+ this article</span></a></li> </ul> </li> </ul> </div> </div> </aside> </div> </div> </div> </div> </div> </div> <div class="footer-group"> <footer> <div class="footer-main"> <div class="main container"> <div id="footer-pane-first" class="footer-pane"> <ul class="social-icons"> <li><a class="btn-social btn-social-facebook" target="_blank" href="https://www.facebook.com/officialgazette" title="The Gazette on Facebook"><span class="accessible-text">Visit The Gazette on Facebook</span></a></li> <li><a class="btn-social btn-social-linkedin" target="_blank" href="http://www.linkedin.com/company/the-official-gazette?trk=company_logo" title="The Gazette on LinkedIn"><span class="accessible-text">Visit The Gazette on LinkedIn</span></a></li> <li><a class="btn-social btn-social-twitter" target="_blank" href="https://twitter.com/TheGazetteUK" title="The Gazette on Twitter"><span class="accessible-text">Visit The Gazette on Twitter</span></a></li> </ul><a href="http://www.tsoshop.co.uk/The-Gazette" target="_blank"><img src="https://www.thegazette.co.uk/assets/chrome/images/tso.png?build=1.1076.0.1414" alt="TSO" class="logo" /></a></div> <nav role="navigation"> <div class="nav-container footer-nav"> <h2><span class="accessible-text">The Gazette footer navigation</span></h2> <ul class="footer-lists"> <li> <h3 class="title"> <a href="/">The Gazette</a> </h3> <ul> <li> <a href="https://m.thegazette.co.uk/">View mobile site</a> </li> <li> <a href="/history">History of The Gazette</a> </li> <li> <a href="/place-notice/pricing">Price List</a> </li> <li> <a href="/cookies" id="cookies-content-link">Cookies</a> </li> <li> <a href="/terms-and-conditions">Terms and conditions</a> </li> </ul> </li> <li> <h3 class="title"> <a href="/policies">Policies</a> </h3> <ul> <li> <a href="/policies/web-links">Linking Policy</a> </li> <li> <a href="/privacy">Privacy Policy</a> </li> <li> <a href="/data">Re-using our data</a> </li> <li> <a href="/accessibility">Accessibility</a> </li> </ul> </li> <li> <h3 class="title">Get in touch</h3> <ul> <li> <a href="/help">Help</a> </li> <li> <a href="/contact-us">Contact us</a> </li> <li> <a href="/customer-charter">Customer Charter</a> </li> <li> <a href="/contact-us#foi">Freedom of Information</a> </li> </ul> </li> </ul> </div> </nav> <p class="help-tip help-tip-content published-by-authority" id="published-by-authority"> The Gazette is published by TSO (The Stationery Office) under the superintendence of His Majesty's Stationery Office (HMSO), part of <a href="http://www.nationalarchives.gov.uk/" target="_blank">The National Archives</a></p> </div> </div> <div class="footer-messages"> <div class="main container"> <div class="open-government-licence"> <h2><a href="http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3?ref=logo" target="_blank">Open Government Licence</a></h2> <p>All content is available under the <a class="external-link" href="http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3" target="_blank">Open Government Licence v3.0</a>, except where otherwise stated. However, please note that this licence does not cover the re-use of personal data. If you are interested in linking to this website please read our <a href="/policies/web-links">Linking Policy.</a></p> </div> </div> </div> </footer> </div><script> var buildVersion = "1.1076.0.1414"; var require ={ urlArgs:"build=" + buildVersion }; </script><script data-main="https://www.thegazette.co.uk/assets/init" src="https://www.thegazette.co.uk/assets/vendor/require.js/require-jquery.js?build=1.1076.0.1414"></script><script src="https://www.thegazette.co.uk/assets/scripts.js?build=1.1076.0.1414" type="text/javascript"></script><script type="text/javascript"> function addGtm() { (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-5FBKTZL'); } if (document.cookieManager){ if (document.cookieManager.isCookieUseAllowed('analytics')) { addGtm(); } // If a user provides consent then we can inject full GTM code document.addEventListener('tso.cookiesAllowed', function (e) { if (document.cookieManager.isCookieUseAllowed('analytics')) { addGtm(); } }); } </script><div id="gtm-noscript"><script type="text/javascript"> if (window.isAnalyticsCookieAllowed) { document.getElementById('gtm-noscript').remove(); } </script><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5FBKTZL&nojscript=true" height="0" width="0" style="display:none;visibility:hidden"></iframe></div><script type="text/javascript"> var _paq = window._paq = window._paq || []; /* tracker methods like 'setCustomDimension' should be called before 'trackPageView' */ _paq.push(['setDocumentTitle', document.title]); _paq.push(['setCookieDomain', '*.thegazette.co.uk']); _paq.push(['setDomains', ['*.thegazette.co.uk']]); function callAnonymousTracker() { var _paq = window._paq = window._paq || []; var doNotTrackAndDisableCookies = false; /* anonymous visitor */ var anu='https://analytics.thegazette.co.uk/anonymous/'; var primaryTracker = anu + 'matomo.php'; _paq.push(['setSiteId', '1']); _paq.push(['setTrackerUrl', primaryTracker]); _paq.push(['trackPageView']); _paq.push(['setIgnoreClasses', ['no-tracking', 'colorbox']]); _paq.push(['enableLinkTracking']); if (!document.cookieManager) { doNotTrackAndDisableCookies = true; } if (document.cookieManager) { if (!document.cookieManager.isCookieUseAllowed('analytics')) { doNotTrackAndDisableCookies = true; } } if (doNotTrackAndDisableCookies) { _paq.push(['setDoNotTrack', 1]); _paq.push(['disableCookies']); addMtm(anu, false); } } function callNonAnonymousTracker() { if (document.cookieManager){ if (document.cookieManager.isCookieUseAllowed('analytics')) { addSecondMtm(); } // If a user provides consent then we can inject full GTM code document.addEventListener('tso.cookiesAllowed', function (e) { if (document.cookieManager.isCookieUseAllowed('analytics')) { addSecondMtm(); } }); } } function addMtm(u, reInit) { var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0], ms=document.getElementById('matomoScript'); if (reInit) { if (ms) { ms.remove(); } } g.id='matomoScript'; g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); } function addSecondMtm() { var _paq = window._paq = window._paq || []; /* non-anonymous visitor */ var nanu='https://analytics.thegazette.co.uk/non_anonymous/'; var secondaryTracker = nanu + 'matomo.php'; var secondaryWebsiteId = 1; // Also send all of the tracking data to the secondary Matomo server _paq.push(['addTracker', secondaryTracker, secondaryWebsiteId]); addMtm(nanu, true); } (function() { callAnonymousTracker(); callNonAnonymousTracker(); })(); </script><noscript> <p><img src="//analytics.thegazette.co.uk/anonymous/matomo.php?idsite=1&rec=1" style="border:0;" alt="" /></p> </noscript> </body> </html>