{"id":411,"date":"2022-09-18T18:13:02","date_gmt":"2023-12-02T00:58:26","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/python%e3%81%aeordereddict\/"},"modified":"2025-07-31T23:23:03","modified_gmt":"2025-07-31T14:23:03","slug":"python%e3%81%aeordereddict","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%aeordereddict\/","title":{"rendered":"Python\u306eOrderedDict"},"content":{"rendered":"<p>Python\u306eOrderedDict\u306f\u3001\u30a2\u30a4\u30c6\u30e0\u306e\u633f\u5165\u9806\u5e8f\u3092\u7dad\u6301\u3059\u308b\u8f9e\u66f8\u306e\u30b5\u30d6\u30af\u30e9\u30b9\u3067\u3059\u3002OrderedDict\u3092\u30a4\u30c6\u30ec\u30fc\u30c8\u3059\u308b\u3068\u3001\u30a2\u30a4\u30c6\u30e0\u306f\u633f\u5165\u3055\u308c\u305f\u9806\u5e8f\u3067\u8fd4\u3055\u308c\u307e\u3059\u3002\u901a\u5e38\u306e\u8f9e\u66f8\u306f\u633f\u5165\u9806\u5e8f\u3092\u8ffd\u8de1\u3057\u307e\u305b\u3093\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30a4\u30c6\u30ec\u30fc\u30c8\u3059\u308b\u3068\u30a2\u30a4\u30c6\u30e0\u306f\u4efb\u610f\u306e\u9806\u5e8f\u3067\u8fd4\u3055\u308c\u307e\u3059\u3002\u30a2\u30a4\u30c6\u30e0\u304c\u633f\u5165\u3055\u308c\u305f\u9806\u5e8f\u3067\u8fd4\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u5b9f\u306b\u3059\u308b\u305f\u3081\u306b\u3001OrderedDict\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>Python\u306eOrderedDict<\/h2>\n<ul class=\"post-ul\">\n<li>OrderedDict is part of python collections module.<\/li>\n<li>We can create an empty OrderedDict and add items to it. If we create an OrderedDict by passing a dict argument, then the ordering may be lost because dict doesn\u2019t maintain the insertion order.<\/li>\n<li>If an item is overwritten in the OrderedDict, it\u2019s position is maintained.<\/li>\n<li>If an item is deleted and added again, then it moves to the last.<\/li>\n<li>OrderedDict popitem removes the items in FIFO order. It accepts a boolean argument last, if it\u2019s set to True then items are returned in LIFO order.<\/li>\n<li>We can move an item to the beginning or end of the OrderedDict using move_to_end function. It accepts a boolean argument last, if it\u2019s set to False then item is moved to the start of the ordered dict.<\/li>\n<li>From python 3.6 onwards, order is retained for keyword arguments passed to the OrderedDict constructor, refer PEP-468.<\/li>\n<li>We can use reversed() function with OrderedDict to iterate elements in the reverse order.<\/li>\n<li>Equality tests between OrderedDict objects are order-sensitive and are implemented as list(od1.items())==list(od2.items()).<\/li>\n<li>Equality tests between OrderedDict and other Mapping objects are order-insensitive like regular dictionaries. This allows OrderedDict objects to be substituted anywhere a regular dictionary is used.<\/li>\n<\/ul>\n<h2>Python\u306eOrderedDict\u306e\u4f7f\u7528\u4f8b<\/h2>\n<p>Python\u306eOrderedDict\u306e\u30b3\u30fc\u30c9\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>OrderedDict \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/h3>\n<pre class=\"post-pre\"><code>from collections import OrderedDict\r\n\r\n# creating a simple dict\r\nmy_dict = {'kiwi': 4, 'apple': 5, 'cat': 3}\r\n\r\n# creating empty ordered dict\r\nordered_dict = OrderedDict()\r\nprint(ordered_dict)\r\n\r\n# creating ordered dict from dict\r\nordered_dict = OrderedDict(my_dict)\r\nprint(ordered_dict)\r\n<\/code><\/pre>\n<p>\u51fa\u529b\uff1a<\/p>\n<pre class=\"post-pre\"><code>OrderedDict()\r\nOrderedDict([('kiwi', 4), ('apple', 5), ('cat', 3)])\r\n<\/code><\/pre>\n<h3>OrderedDict\u304b\u3089\u30a2\u30a4\u30c6\u30e0\u3092\u8ffd\u52a0\u3001\u7f6e\u63db\u3001\u524a\u9664\u3059\u308b\u3002<\/h3>\n<pre class=\"post-pre\"><code># adding elements to dict\r\nordered_dict['dog'] = 3\r\n\r\n# replacing a dict key value\r\nordered_dict['kiwi'] = 10\r\nprint(ordered_dict)\r\n\r\n# removing and adding a value\r\nordered_dict.pop('kiwi')\r\nprint(ordered_dict)\r\nordered_dict['kiwi'] = 4\r\nprint(ordered_dict)\r\n<\/code><\/pre>\n<p>\u51fa\u529b\uff1a<\/p>\n<pre class=\"post-pre\"><code>OrderedDict([('kiwi', 10), ('apple', 5), ('cat', 3), ('dog', 3)])\r\nOrderedDict([('apple', 5), ('cat', 3), ('dog', 3)])\r\nOrderedDict([('apple', 5), ('cat', 3), ('dog', 3), ('kiwi', 4)])\r\n<\/code><\/pre>\n<h3>\u4e0b\u8a18\u306e\u4f8b\u306f\u3001OrderedDict\u306emove_to_end\u30e1\u30bd\u30c3\u30c9\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/h3>\n<pre class=\"post-pre\"><code># moving apple to end and dog to start\r\nordered_dict.move_to_end('apple')\r\nordered_dict.move_to_end('dog', False)\r\nprint(ordered_dict)\r\n<\/code><\/pre>\n<p>\u51fa\u529b:<\/p>\n<pre class=\"post-pre\"><code>OrderedDict([('dog', 3), ('cat', 3), ('kiwi', 4), ('apple', 5)])\r\n<\/code><\/pre>\n<h3>OrderedDict\u306epopitem\u30e1\u30bd\u30c3\u30c9\u306e\u4f8b<\/h3>\n<pre class=\"post-pre\"><code># pop last item\r\nitem = ordered_dict.popitem(True)\r\nprint(item)\r\nprint(ordered_dict)\r\n<\/code><\/pre>\n<p>\u7d50\u679c\uff1a<\/p>\n<pre class=\"post-pre\"><code>('apple', 5)\r\nOrderedDict([('dog', 3), ('cat', 3), ('kiwi', 4)])\r\n<\/code><\/pre>\n<h3>\u9806\u5e8f\u4ed8\u3051\u3089\u308c\u305f\u8f9e\u66f8\u306e\u9006\u9806\u306e\u7e70\u308a\u8fd4\u3057<\/h3>\n<pre class=\"post-pre\"><code># reversed iteration\r\nfor item in reversed(ordered_dict):\r\n    print(item)\r\n<\/code><\/pre>\n<p>\u51fa\u529b:<\/p>\n<pre class=\"post-pre\"><code>kiwi\r\ncat\r\ndog\r\n<\/code><\/pre>\n<h3>\u9806\u5e8f\u4ed8\u3051\u3055\u308c\u305f\u8f9e\u66f8\u306e\u7b49\u4fa1\u30c6\u30b9\u30c8\u306e\u4f8b<\/h3>\n<pre class=\"post-pre\"><code># equality tests\r\nd1 = {'a': 'A', 'b': 'B'}\r\nd2 = {'b': 'B', 'a': 'A'}\r\n\r\nod1 = OrderedDict({'a': 'A', 'b': 'B'})\r\nod2 = OrderedDict({'b': 'B', 'a': 'A'})\r\n\r\nprint(d1 == d2)\r\nprint(od1 == od2)\r\nprint(d1 == od1)\r\n<\/code><\/pre>\n<p>\u51fa\u529b:<\/p>\n<pre class=\"post-pre\"><code>True\r\nFalse\r\nTrue\r\n<\/code><\/pre>\n<p>\u79c1\u305f\u3061\u306eGitHub\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u3001\u5b8c\u5168\u306a\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u53c2\u7167\uff1aPython\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u306eOrderedDict\u306f\u3001\u30a2\u30a4\u30c6\u30e0\u306e\u633f\u5165\u9806\u5e8f\u3092\u7dad\u6301\u3059\u308b\u8f9e\u66f8\u306e\u30b5\u30d6\u30af\u30e9\u30b9\u3067\u3059\u3002OrderedDict\u3092\u30a4\u30c6\u30ec\u30fc\u30c8\u3059\u308b\u3068\u3001\u30a2\u30a4\u30c6\u30e0\u306f\u633f\u5165\u3055\u308c\u305f\u9806\u5e8f\u3067\u8fd4\u3055\u308c\u307e\u3059\u3002\u901a\u5e38\u306e\u8f9e\u66f8\u306f\u633f\u5165\u9806\u5e8f\u3092\u8ffd\u8de1\u3057\u307e\u305b\u3093\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30a4 [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[31,26],"class_list":["post-411","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-python","tag-26"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python\u306eOrderedDict - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Python\u306eOrderedDict\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/python\u306eordereddict\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python\u306eOrderedDict\" \/>\n<meta property=\"og:description\" content=\"Python\u306eOrderedDict\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/python\u306eordereddict\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-02T00:58:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T14:23:03+00:00\" \/>\n<meta name=\"author\" content=\"\u512a\u6597, \u671d\u967d\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u512a\u6597, \u671d\u967d\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"7\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%aeordereddict\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%aeordereddict\/\",\"name\":\"Python\u306eOrderedDict - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-12-02T00:58:26+00:00\",\"dateModified\":\"2025-07-31T14:23:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28\"},\"description\":\"Python\u306eOrderedDict\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%aeordereddict\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%aeordereddict\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%aeordereddict\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\u306eOrderedDict\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28\",\"name\":\"\u512a\u6597, \u671d\u967d\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g\",\"caption\":\"\u512a\u6597, \u671d\u967d\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/yutoasahi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%aeordereddict\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python\u306eOrderedDict - Blog - Silicon Cloud","description":"Python\u306eOrderedDict\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","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:\/\/www.silicloud.com\/ja\/blog\/python\u306eordereddict\/","og_locale":"ja_JP","og_type":"article","og_title":"Python\u306eOrderedDict","og_description":"Python\u306eOrderedDict\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/python\u306eordereddict\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-12-02T00:58:26+00:00","article_modified_time":"2025-07-31T14:23:03+00:00","author":"\u512a\u6597, \u671d\u967d","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u512a\u6597, \u671d\u967d","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"7\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%aeordereddict\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%aeordereddict\/","name":"Python\u306eOrderedDict - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-12-02T00:58:26+00:00","dateModified":"2025-07-31T14:23:03+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28"},"description":"Python\u306eOrderedDict\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%aeordereddict\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%aeordereddict\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%aeordereddict\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Python\u306eOrderedDict"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28","name":"\u512a\u6597, \u671d\u967d","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g","caption":"\u512a\u6597, \u671d\u967d"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/yutoasahi\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%aeordereddict\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=411"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/411\/revisions"}],"predecessor-version":[{"id":40256,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/411\/revisions\/40256"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}