{"id":272,"date":"2019-10-26T18:00:01","date_gmt":"2019-10-26T18:00:01","guid":{"rendered":"https:\/\/datablog.roman-halliday.com\/?p=272"},"modified":"2024-10-09T06:21:55","modified_gmt":"2024-10-09T06:21:55","slug":"rlike-in-hive-filtering-with-regular-expressions","status":"publish","type":"post","link":"https:\/\/datablog.roman-halliday.com\/index.php\/2019\/10\/26\/rlike-in-hive-filtering-with-regular-expressions\/","title":{"rendered":"RLIKE in hive: Filtering with regular expressions"},"content":{"rendered":"\n<p>As I previously did a blog post on&nbsp;<a href=\"https:\/\/datablog.roman-halliday.com\/index.php\/2019\/06\/22\/querying-sql-server-with-something-like-a-regular-expression\/\">Querying SQL Server with something LIKE a regular expression<\/a> (Using simple regular expressions in a LIKE statement), I thought I would use that as a segue into Apache Hive and HiveQL. Because Hive and therefore HiveQL is built using Java, it has the full power of Java regular expressions in it&#8217;s RLIKE statement. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Regular Expressions<\/h2>\n\n\n\n<p>Some people will read \u201cregular expression\u201d and react with a knowing nod (feel free to jump ahead), everyone else is about to learn something you never realised you needed to know.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What is a Regular Expression?<\/h3>\n\n\n\n<p>A regular expression is a Computer Science tool for implementing what mathematicians know as a finite state machine (sometimes called a finite state automaton), usually on text (alphanumeric characters).<\/p>\n\n\n\n<p>If you have used <code>grep<\/code> on the unix command line, you have probably seen this in action.<\/p>\n\n\n\n<p>The actual regular Expression is a string which represents a pattern for matching. There are many cases where there is a pattern which we want to test text against. A common example is to test if a date is correctly formatted how a process expects it (YYYY-MM-DD or DD\/MM\/YY etc\u2026).<\/p>\n\n\n\n<p>A more advanced case is validating an email address, very quickly you can build up rules in your head (it has to have the \u2018@\u2019, but only once, and there has to be something either side of it\u2026. and so on).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Further Reading<\/h3>\n\n\n\n<p>If regular expressions are new to you, then make some time to read (thanks to the web archive): <a href=\"https:\/\/web.archive.org\/web\/20100611221311\/http:\/\/immike.net\/blog\/2007\/04\/06\/the-absolute-bare-minimum-every-programmer-should-know-about-regular-expressions\/\">The absolute bare minimum every programmer should know about regular expressions<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Online Tools<\/h3>\n\n\n\n<p>I found this interactive site, very useful for testing regular expressions (although it goes beyond the SQL Server syntax):  <a href=\"https:\/\/regexr.com\/\">https:\/\/regexr.com\/<\/a> <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">RLIKE in Hive<\/h2>\n\n\n\n<p>Hive has both LIKE (which functions the same as in SQL Server and other environments) and RLIKE, which uses regular expressions. These are mentioned briefly in the&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/cwiki.apache.org\/confluence\/display\/Hive\/LanguageManual+UDF\" target=\"_blank\">LanguageManual UDF<\/a> documentation. <\/p>\n\n\n\n<p>The best way to understand RLIKE is to see it in action. So, I&#8217;ve created some sample data and some examples of regular expressions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Sample Data<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">DROP TABLE IF EXISTS sample_data;\n\nCREATE TABLE sample_data\n(\n    sample_column VARCHAR(100)\n)\n;\n\nINSERT\n  INTO sample_data\n      (sample_column)\nVALUES('abc'),\n      ('ABC'),\n      ('XYZ'),\n      ('123'),\n      ('000'),\n      ('789'),\n      ('1.3')\n;\n\nSELECT *\n  FROM sample_data\n;<\/pre>\n\n\n\n<table class=\"wp-block-table aligncenter is-style-stripes\"><tbody><tr><td><strong>sample_column<\/strong><\/td><\/tr><tr><td>abc<\/td><\/tr><tr><td>ABC<\/td><\/tr><tr><td>XYZ<\/td><\/tr><tr><td>123<\/td><\/tr><tr><td>000<\/td><\/tr><tr><td>789<\/td><\/tr><tr><td>1.3<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>This sample data gives us some text and numeric characters. If you look a the UDF, most functionality is around text and numbers. But special characters can also be manipulated.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Contains Numbers<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">SELECT sample_column\n  FROM sample_data\n WHERE sample_column RLIKE '[0-9]+'\n;<\/pre>\n\n\n\n<table class=\"wp-block-table aligncenter is-style-stripes\"><tbody><tr><td><strong>sample_column<\/strong><\/td><\/tr><tr><td>123<\/td><\/tr><tr><td>000<\/td><\/tr><tr><td>789<\/td><\/tr><tr><td>1.3<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>Because we are matching on if the string has one or more numeric character, we see the 1.3 value. We would also see a string which contained &#8216;abc123XYZ&#8217;.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">All (and only) Numbers<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">SELECT sample_column\n  FROM sample_data\n WHERE sample_column RLIKE '^[0-9]+$'\n;<\/pre>\n\n\n\n<table class=\"wp-block-table aligncenter is-style-stripes\"><tbody><tr><td><strong>sample_column<\/strong><\/td><\/tr><tr><td>123<\/td><\/tr><tr><td>000<\/td><\/tr><tr><td>789<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>Note that this hasn&#8217;t included the decimal point. See the example further down for use of a decimal point in a number. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Text (alpha) Only<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">SELECT sample_column\n  FROM sample_data\n WHERE sample_column RLIKE '([a-z]|[A-Z])+'\n;<\/pre>\n\n\n\n<table class=\"wp-block-table aligncenter is-style-stripes\"><tbody><tr><td><strong>sample_column<\/strong><\/td><\/tr><tr><td>abc<\/td><\/tr><tr><td>ABC<\/td><\/tr><tr><td>XYZ<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>The pattern will match one or more text characters. Noe that it will allow for other  characters to be returned as long as there is one or more text characters. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Number with Decimal Point<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">SELECT sample_column\n  FROM sample_data\n WHERE sample_column RLIKE '[0-9]+[.][0-9]+'\n;<\/pre>\n\n\n\n<p>Note that the dot is encased in square brackets, this makes it literal rather than a wildcard (default behaviour) for <em>any<\/em> character.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Useful Meta Characters<\/h2>\n\n\n\n<p>On top of using the square brackets <code>[]<\/code> to identify character sets, and regular brackets <code>()<\/code> to identify groupings, there are a few other common characters which control the behaviour.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>*<\/code> &#8211; Any number of occurrences (includes 0)<\/li><li><code>+<\/code> &#8211; One or more occurrences<\/li><li><code>?<\/code> &#8211; 0 or 1 occurrences<\/li><li><code>^<\/code> &#8211; Start of line<\/li><li><code>$<\/code> &#8211; End of line<\/li><\/ul>\n\n\n\n<p>The ^ (start of line) and $ (end of line) are very useful to match the whole value of a column, for example to avoid identifying &#8216;123B45&#8217; as a number.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I previously did a blog post on&nbsp;Querying SQL Server with something LIKE a regular expression (Using simple regular expressions in a LIKE statement), I thought I would use that as a segue into Apache Hive and HiveQL. Because Hive and therefore HiveQL is built using Java, it has the full power of Java regular&hellip;<\/p>\n<p class=\"read-more\"><a class=\"readmore-btn\" href=\"https:\/\/datablog.roman-halliday.com\/index.php\/2019\/10\/26\/rlike-in-hive-filtering-with-regular-expressions\/\">Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,27],"tags":[30,25,29],"class_list":["post-272","post","type-post","status-publish","format-standard","hentry","category-big-data","category-hive","tag-hive","tag-regex","tag-rlike"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>RLIKE in hive: Filtering with regular expressions - Rows Across The Lake<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/datablog.roman-halliday.com\/index.php\/2019\/10\/26\/rlike-in-hive-filtering-with-regular-expressions\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RLIKE in hive: Filtering with regular expressions - Rows Across The Lake\" \/>\n<meta property=\"og:description\" content=\"As I previously did a blog post on&nbsp;Querying SQL Server with something LIKE a regular expression (Using simple regular expressions in a LIKE statement), I thought I would use that as a segue into Apache Hive and HiveQL. Because Hive and therefore HiveQL is built using Java, it has the full power of Java regular&hellip;Read More Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/datablog.roman-halliday.com\/index.php\/2019\/10\/26\/rlike-in-hive-filtering-with-regular-expressions\/\" \/>\n<meta property=\"og:site_name\" content=\"Rows Across The Lake\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-26T18:00:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-09T06:21:55+00:00\" \/>\n<meta name=\"author\" content=\"david\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@d_roman_h\" \/>\n<meta name=\"twitter:site\" content=\"@d_roman_h\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"david\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2019\\\/10\\\/26\\\/rlike-in-hive-filtering-with-regular-expressions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2019\\\/10\\\/26\\\/rlike-in-hive-filtering-with-regular-expressions\\\/\"},\"author\":{\"name\":\"david\",\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/#\\\/schema\\\/person\\\/575f96d2590c3085923ff9e1b565748b\"},\"headline\":\"RLIKE in hive: Filtering with regular expressions\",\"datePublished\":\"2019-10-26T18:00:01+00:00\",\"dateModified\":\"2024-10-09T06:21:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2019\\\/10\\\/26\\\/rlike-in-hive-filtering-with-regular-expressions\\\/\"},\"wordCount\":602,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/#\\\/schema\\\/person\\\/575f96d2590c3085923ff9e1b565748b\"},\"keywords\":[\"hive\",\"regex\",\"rlike\"],\"articleSection\":[\"Big Data\",\"Hive\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2019\\\/10\\\/26\\\/rlike-in-hive-filtering-with-regular-expressions\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2019\\\/10\\\/26\\\/rlike-in-hive-filtering-with-regular-expressions\\\/\",\"url\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2019\\\/10\\\/26\\\/rlike-in-hive-filtering-with-regular-expressions\\\/\",\"name\":\"RLIKE in hive: Filtering with regular expressions - Rows Across The Lake\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/#website\"},\"datePublished\":\"2019-10-26T18:00:01+00:00\",\"dateModified\":\"2024-10-09T06:21:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2019\\\/10\\\/26\\\/rlike-in-hive-filtering-with-regular-expressions\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2019\\\/10\\\/26\\\/rlike-in-hive-filtering-with-regular-expressions\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2019\\\/10\\\/26\\\/rlike-in-hive-filtering-with-regular-expressions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RLIKE in hive: Filtering with regular expressions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/#website\",\"url\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/\",\"name\":\"Rows Across The Lake\",\"description\":\"Data &amp; Databases\",\"publisher\":{\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/#\\\/schema\\\/person\\\/575f96d2590c3085923ff9e1b565748b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/#\\\/schema\\\/person\\\/575f96d2590c3085923ff9e1b565748b\",\"name\":\"david\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acddbc676a1d5c73795edcf0627ee39e5aa947da9033b58373e03d93122cb3b7?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acddbc676a1d5c73795edcf0627ee39e5aa947da9033b58373e03d93122cb3b7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acddbc676a1d5c73795edcf0627ee39e5aa947da9033b58373e03d93122cb3b7?s=96&d=mm&r=g\",\"caption\":\"david\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acddbc676a1d5c73795edcf0627ee39e5aa947da9033b58373e03d93122cb3b7?s=96&d=mm&r=g\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RLIKE in hive: Filtering with regular expressions - Rows Across The Lake","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/datablog.roman-halliday.com\/index.php\/2019\/10\/26\/rlike-in-hive-filtering-with-regular-expressions\/","og_locale":"en_GB","og_type":"article","og_title":"RLIKE in hive: Filtering with regular expressions - Rows Across The Lake","og_description":"As I previously did a blog post on&nbsp;Querying SQL Server with something LIKE a regular expression (Using simple regular expressions in a LIKE statement), I thought I would use that as a segue into Apache Hive and HiveQL. Because Hive and therefore HiveQL is built using Java, it has the full power of Java regular&hellip;Read More Read More","og_url":"https:\/\/datablog.roman-halliday.com\/index.php\/2019\/10\/26\/rlike-in-hive-filtering-with-regular-expressions\/","og_site_name":"Rows Across The Lake","article_published_time":"2019-10-26T18:00:01+00:00","article_modified_time":"2024-10-09T06:21:55+00:00","author":"david","twitter_card":"summary_large_image","twitter_creator":"@d_roman_h","twitter_site":"@d_roman_h","twitter_misc":{"Written by":"david","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/datablog.roman-halliday.com\/index.php\/2019\/10\/26\/rlike-in-hive-filtering-with-regular-expressions\/#article","isPartOf":{"@id":"https:\/\/datablog.roman-halliday.com\/index.php\/2019\/10\/26\/rlike-in-hive-filtering-with-regular-expressions\/"},"author":{"name":"david","@id":"https:\/\/datablog.roman-halliday.com\/#\/schema\/person\/575f96d2590c3085923ff9e1b565748b"},"headline":"RLIKE in hive: Filtering with regular expressions","datePublished":"2019-10-26T18:00:01+00:00","dateModified":"2024-10-09T06:21:55+00:00","mainEntityOfPage":{"@id":"https:\/\/datablog.roman-halliday.com\/index.php\/2019\/10\/26\/rlike-in-hive-filtering-with-regular-expressions\/"},"wordCount":602,"commentCount":0,"publisher":{"@id":"https:\/\/datablog.roman-halliday.com\/#\/schema\/person\/575f96d2590c3085923ff9e1b565748b"},"keywords":["hive","regex","rlike"],"articleSection":["Big Data","Hive"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/datablog.roman-halliday.com\/index.php\/2019\/10\/26\/rlike-in-hive-filtering-with-regular-expressions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/datablog.roman-halliday.com\/index.php\/2019\/10\/26\/rlike-in-hive-filtering-with-regular-expressions\/","url":"https:\/\/datablog.roman-halliday.com\/index.php\/2019\/10\/26\/rlike-in-hive-filtering-with-regular-expressions\/","name":"RLIKE in hive: Filtering with regular expressions - Rows Across The Lake","isPartOf":{"@id":"https:\/\/datablog.roman-halliday.com\/#website"},"datePublished":"2019-10-26T18:00:01+00:00","dateModified":"2024-10-09T06:21:55+00:00","breadcrumb":{"@id":"https:\/\/datablog.roman-halliday.com\/index.php\/2019\/10\/26\/rlike-in-hive-filtering-with-regular-expressions\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/datablog.roman-halliday.com\/index.php\/2019\/10\/26\/rlike-in-hive-filtering-with-regular-expressions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/datablog.roman-halliday.com\/index.php\/2019\/10\/26\/rlike-in-hive-filtering-with-regular-expressions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/datablog.roman-halliday.com\/"},{"@type":"ListItem","position":2,"name":"RLIKE in hive: Filtering with regular expressions"}]},{"@type":"WebSite","@id":"https:\/\/datablog.roman-halliday.com\/#website","url":"https:\/\/datablog.roman-halliday.com\/","name":"Rows Across The Lake","description":"Data &amp; Databases","publisher":{"@id":"https:\/\/datablog.roman-halliday.com\/#\/schema\/person\/575f96d2590c3085923ff9e1b565748b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/datablog.roman-halliday.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/datablog.roman-halliday.com\/#\/schema\/person\/575f96d2590c3085923ff9e1b565748b","name":"david","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/acddbc676a1d5c73795edcf0627ee39e5aa947da9033b58373e03d93122cb3b7?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/acddbc676a1d5c73795edcf0627ee39e5aa947da9033b58373e03d93122cb3b7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/acddbc676a1d5c73795edcf0627ee39e5aa947da9033b58373e03d93122cb3b7?s=96&d=mm&r=g","caption":"david"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/acddbc676a1d5c73795edcf0627ee39e5aa947da9033b58373e03d93122cb3b7?s=96&d=mm&r=g"}}]}},"_links":{"self":[{"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/posts\/272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/comments?post=272"}],"version-history":[{"count":6,"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/posts\/272\/revisions"}],"predecessor-version":[{"id":638,"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/posts\/272\/revisions\/638"}],"wp:attachment":[{"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/media?parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/categories?post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/tags?post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}