{"id":1062040,"date":"2024-12-31T15:48:09","date_gmt":"2024-12-31T07:48:09","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1062040.html"},"modified":"2024-12-31T15:48:11","modified_gmt":"2024-12-31T07:48:11","slug":"python%e5%a6%82%e4%bd%95%e7%94%bb%e4%b8%89%e4%b8%aa%e5%9c%86%e7%9b%b8%e4%ba%a4-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1062040.html","title":{"rendered":"python\u5982\u4f55\u753b\u4e09\u4e2a\u5706\u76f8\u4ea4"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/3ae535a4-8579-4a9f-be94-71351eed2a77.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u753b\u4e09\u4e2a\u5706\u76f8\u4ea4\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Matplotlib\u5e93\u6765\u7ed8\u5236\u4e09\u4e2a\u76f8\u4ea4\u7684\u5706\u3002<\/strong> \u4f7f\u7528Matplotlib\u5e93\u7684Venn\u56fe\u5de5\u5177\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u521b\u5efa\u4e09\u5706\u76f8\u4ea4\u7684\u56fe\u5f62\u3002\u5177\u4f53\u64cd\u4f5c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5Matplotlib\u548cMatplotlib_venn\u5e93<\/strong>\uff1a\u9996\u5148\u9700\u8981\u5b89\u88c5\u8fd9\u4e24\u4e2a\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install matplotlib matplotlib_venn<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5bfc\u5165\u5e93\u5e76\u7ed8\u5236Venn\u56fe<\/strong>\uff1a\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u6765\u7ed8\u5236\u4e09\u4e2a\u76f8\u4ea4\u7684\u5706\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>from matplotlib_venn import venn3<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u4e09\u4e2a\u96c6\u5408\u7684Venn\u56fe<\/strong><\/h2>\n<p>venn3(subsets=(1, 1, 1, 1, 1, 1, 1), set_labels=(&#39;A&#39;, &#39;B&#39;, &#39;C&#39;))<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p> \u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c<code>subsets<\/code>\u53c2\u6570\u662f\u4e00\u4e2a\u5305\u542b7\u4e2a\u5143\u7d20\u7684\u5143\u7ec4\uff0c\u8868\u793a\u4e09\u4e2a\u96c6\u5408\u7684\u6bcf\u4e2a\u90e8\u5206\u7684\u5927\u5c0f\u3002\u8fd9\u4e9b\u5143\u7d20\u7684\u987a\u5e8f\u662f\uff1a\u53ea\u6709A\u3001\u53ea\u6709B\u3001\u53ea\u6709C\u3001A\u548cB\u3001A\u548cC\u3001B\u548cC\u3001A\u548cB\u548cC\u3002<code>set_labels<\/code>\u53c2\u6570\u7528\u4e8e\u8bbe\u7f6e\u96c6\u5408\u7684\u6807\u7b7e\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u8be6\u7ec6\u63cf\u8ff0Venn\u56fe\u4e4b\u524d\uff0c\u6211\u4eec\u5148\u4e86\u89e3\u4e00\u4e0bVenn\u56fe\u7684\u57fa\u672c\u6982\u5ff5\u3002Venn\u56fe\u662f\u4e00\u79cd\u7528\u6765\u8868\u793a\u96c6\u5408\u4e4b\u95f4\u5173\u7cfb\u7684\u56fe\u5f62\u5de5\u5177\uff0c\u7279\u522b\u9002\u7528\u4e8e\u5c55\u793a\u4e24\u4e2a\u6216\u591a\u4e2a\u96c6\u5408\u4e4b\u95f4\u7684\u4ea4\u96c6\u3001\u5e76\u96c6\u548c\u5dee\u96c6\u3002\u5728\u6570\u5b66\u548c\u7edf\u8ba1\u5b66\u4e2d\uff0cVenn\u56fe\u88ab\u5e7f\u6cdb\u7528\u4e8e\u8868\u793a\u96c6\u5408\u8fd0\u7b97\u7684\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5\u548c\u5bfc\u5165\u5e93<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u786e\u4fdd\u5df2\u5b89\u88c5Matplotlib\u548cMatplotlib_venn\u5e93\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install matplotlib matplotlib_venn<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5bfc\u5165\u8fd9\u4e24\u4e2a\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>from matplotlib_venn import venn3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u7ed8\u5236\u57fa\u672c\u7684Venn\u56fe<\/h3>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u6765\u7ed8\u5236\u4e00\u4e2a\u7b80\u5355\u7684Venn\u56fe\uff0c\u8868\u793a\u4e09\u4e2a\u96c6\u5408\u7684\u4ea4\u96c6\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a\u5305\u542b\u4e09\u4e2a\u96c6\u5408\u7684Venn\u56fe<\/p>\n<p>venn3(subsets=(1, 1, 1, 1, 1, 1, 1), set_labels=(&#39;A&#39;, &#39;B&#39;, &#39;C&#39;))<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>venn3<\/code>\u51fd\u6570\u6765\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u4e09\u4e2a\u96c6\u5408\u7684Venn\u56fe\u3002<code>subsets<\/code>\u53c2\u6570\u662f\u4e00\u4e2a\u5305\u542b7\u4e2a\u5143\u7d20\u7684\u5143\u7ec4\uff0c\u8868\u793a\u4e09\u4e2a\u96c6\u5408\u7684\u6bcf\u4e2a\u90e8\u5206\u7684\u5927\u5c0f\u3002<code>set_labels<\/code>\u53c2\u6570\u7528\u4e8e\u8bbe\u7f6e\u96c6\u5408\u7684\u6807\u7b7e\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001Venn\u56fe\u7684\u8be6\u7ec6\u8bbe\u7f6e<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u4f7fVenn\u56fe\u66f4\u52a0\u7f8e\u89c2\u548c\u6613\u4e8e\u7406\u89e3\uff0c\u6211\u4eec\u53ef\u4ee5\u5bf9\u56fe\u5f62\u8fdb\u884c\u4e00\u4e9b\u8be6\u7ec6\u8bbe\u7f6e\u3002\u4f8b\u5982\uff0c\u8bbe\u7f6e\u6bcf\u4e2a\u90e8\u5206\u7684\u989c\u8272\u3001\u8bbe\u7f6e\u5b57\u4f53\u5927\u5c0f\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from matplotlib_venn import venn3<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u4e09\u4e2a\u96c6\u5408\u7684Venn\u56fe\uff0c\u5e76\u8bbe\u7f6e\u6bcf\u4e2a\u90e8\u5206\u7684\u5927\u5c0f<\/strong><\/h2>\n<p>venn = venn3(subsets=(3, 2, 2, 1, 1, 1, 1), set_labels=(&#39;Set A&#39;, &#39;Set B&#39;, &#39;Set C&#39;))<\/p>\n<h2><strong>\u8bbe\u7f6e\u6bcf\u4e2a\u90e8\u5206\u7684\u989c\u8272<\/strong><\/h2>\n<p>venn.get_label_by_id(&#39;100&#39;).set_text(&#39;A only&#39;)<\/p>\n<p>venn.get_label_by_id(&#39;010&#39;).set_text(&#39;B only&#39;)<\/p>\n<p>venn.get_label_by_id(&#39;001&#39;).set_text(&#39;C only&#39;)<\/p>\n<p>venn.get_label_by_id(&#39;110&#39;).set_text(&#39;A &amp; B&#39;)<\/p>\n<p>venn.get_label_by_id(&#39;101&#39;).set_text(&#39;A &amp; C&#39;)<\/p>\n<p>venn.get_label_by_id(&#39;011&#39;).set_text(&#39;B &amp; C&#39;)<\/p>\n<p>venn.get_label_by_id(&#39;111&#39;).set_text(&#39;A &amp; B &amp; C&#39;)<\/p>\n<h2><strong>\u8bbe\u7f6e\u5b57\u4f53\u5927\u5c0f<\/strong><\/h2>\n<p>for text in venn.set_labels:<\/p>\n<p>    text.set_fontsize(16)<\/p>\n<p>for text in venn.subset_labels:<\/p>\n<p>    text.set_fontsize(14)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001Venn\u56fe\u7684\u5b9e\u9645\u5e94\u7528<\/h3>\n<\/p>\n<p><p>Venn\u56fe\u5728\u6570\u636e\u5206\u6790\u4e2d\u5177\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u4f8b\u5982\uff0c\u5728\u57fa\u56e0\u7ec4\u5b66\u7814\u7a76\u4e2d\uff0cVenn\u56fe\u53ef\u4ee5\u7528\u6765\u8868\u793a\u4e0d\u540c\u57fa\u56e0\u7ec4\u4e4b\u95f4\u7684\u5171\u4eab\u57fa\u56e0\u3002\u5728\u5e02\u573a\u8425\u9500\u4e2d\uff0cVenn\u56fe\u53ef\u4ee5\u7528\u6765\u8868\u793a\u4e0d\u540c\u5ba2\u6237\u7fa4\u4f53\u4e4b\u95f4\u7684\u4ea4\u96c6\u3002<\/p>\n<\/p>\n<p><h4>1. \u57fa\u56e0\u7ec4\u5b66\u7814\u7a76\u4e2d\u7684\u5e94\u7528<\/h4>\n<\/p>\n<p><p>\u5728\u57fa\u56e0\u7ec4\u5b66\u7814\u7a76\u4e2d\uff0c\u7814\u7a76\u4eba\u5458\u7ecf\u5e38\u9700\u8981\u6bd4\u8f83\u4e0d\u540c\u57fa\u56e0\u7ec4\u4e4b\u95f4\u7684\u57fa\u56e0\u5171\u4eab\u60c5\u51b5\u3002\u901a\u8fc7\u4f7f\u7528Venn\u56fe\uff0c\u53ef\u4ee5\u76f4\u89c2\u5730\u8868\u793a\u57fa\u56e0\u7ec4\u4e4b\u95f4\u7684\u5171\u4eab\u57fa\u56e0\u6570\u91cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\uff1a\u57fa\u56e0\u7ec4\u5b66\u7814\u7a76\u4e2d\u7684Venn\u56fe<\/p>\n<p>venn3(subsets=(100, 80, 60, 40, 30, 20, 10), set_labels=(&#39;Genome A&#39;, &#39;Genome B&#39;, &#39;Genome C&#39;))<\/p>\n<p>plt.title(&quot;Shared Genes Among Genomes&quot;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5e02\u573a\u8425\u9500\u4e2d\u7684\u5e94\u7528<\/h4>\n<\/p>\n<p><p>\u5728\u5e02\u573a\u8425\u9500\u4e2d\uff0cVenn\u56fe\u53ef\u4ee5\u7528\u6765\u8868\u793a\u4e0d\u540c\u5ba2\u6237\u7fa4\u4f53\u4e4b\u95f4\u7684\u4ea4\u96c6\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u7528\u6765\u8868\u793a\u4e0d\u540c\u5e74\u9f84\u6bb5\u7684\u5ba2\u6237\u7fa4\u4f53\u4e4b\u95f4\u7684\u4ea4\u96c6\uff0c\u4ece\u800c\u5e2e\u52a9\u8425\u9500\u4eba\u5458\u5236\u5b9a\u66f4\u52a0\u7cbe\u51c6\u7684\u8425\u9500\u7b56\u7565\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\uff1a\u5e02\u573a\u8425\u9500\u4e2d\u7684Venn\u56fe<\/p>\n<p>venn3(subsets=(150, 100, 80, 60, 50, 40, 30), set_labels=(&#39;Age 18-25&#39;, &#39;Age 26-35&#39;, &#39;Age 36-45&#39;))<\/p>\n<p>plt.title(&quot;Customer Overlap Among Age Groups&quot;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u4f7f\u7528Matplotlib\u548cMatplotlib_venn\u5e93\u53ef\u4ee5\u8f7b\u677e\u5730\u7ed8\u5236\u4e09\u4e2a\u76f8\u4ea4\u7684\u5706\uff08Venn\u56fe\uff09\u3002\u901a\u8fc7\u8bbe\u7f6e\u6bcf\u4e2a\u90e8\u5206\u7684\u5927\u5c0f\u548c\u989c\u8272\uff0c\u53ef\u4ee5\u4f7f\u56fe\u5f62\u66f4\u52a0\u7f8e\u89c2\u548c\u6613\u4e8e\u7406\u89e3\u3002Venn\u56fe\u5728\u6570\u636e\u5206\u6790\u4e2d\u5177\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u76f4\u89c2\u5730\u8868\u793a\u96c6\u5408\u4e4b\u95f4\u7684\u5173\u7cfb\u3002\u65e0\u8bba\u662f\u5728\u57fa\u56e0\u7ec4\u5b66\u7814\u7a76\u4e2d\uff0c\u8fd8\u662f\u5728\u5e02\u573a\u8425\u9500\u4e2d\uff0cVenn\u56fe\u90fd\u662f\u4e00\u79cd\u975e\u5e38\u6709\u7528\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u7ed8\u5236\u76f8\u4ea4\u7684\u4e09\u4e2a\u5706\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Matplotlib\u5e93\u6765\u7ed8\u5236\u76f8\u4ea4\u7684\u4e09\u4e2a\u5706\u3002\u901a\u8fc7\u8bbe\u7f6e\u5706\u5fc3\u548c\u534a\u5f84\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u8fd9\u4e00\u6548\u679c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import matplotlib.pyplot as plt\n\n# \u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u56fe\u5f62\nfig, ax = plt.subplots()\n\n# \u7ed8\u5236\u4e09\u4e2a\u5706\ncircle1 = plt.Circle((0, 0), 1, color=&#39;r&#39;, alpha=0.5)\ncircle2 = plt.Circle((0.5, 0.5), 1, color=&#39;g&#39;, alpha=0.5)\ncircle3 = plt.Circle((-0.5, 0.5), 1, color=&#39;b&#39;, alpha=0.5)\n\n# \u6dfb\u52a0\u5706\u5230\u56fe\u5f62\u4e2d\nax.add_artist(circle1)\nax.add_artist(circle2)\nax.add_artist(circle3)\n\n# \u8bbe\u7f6e\u5750\u6807\u8f74\u8303\u56f4\nax.set_xlim(-2, 2)\nax.set_ylim(-2, 2)\n\n# \u8bbe\u7f6e\u957f\u5bbd\u6bd4\u4e3a1\nax.set_aspect(&#39;equal&#39;, &#39;box&#39;)\nplt.grid()\nplt.show()\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u7ed8\u5236\u51fa\u4e09\u4e2a\u76f8\u4ea4\u7684\u5706\uff0c\u4f7f\u7528\u4e0d\u540c\u7684\u989c\u8272\u548c\u900f\u660e\u5ea6\uff0c\u4ee5\u4fbf\u89c2\u5bdf\u76f8\u4ea4\u533a\u57df\u3002<\/p>\n<p><strong>\u7ed8\u5236\u76f8\u4ea4\u5706\u7684\u6548\u679c\u5982\u4f55\u4f18\u5316\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574\u5706\u7684\u989c\u8272\u3001\u900f\u660e\u5ea6\u4ee5\u53ca\u6dfb\u52a0\u56fe\u4f8b\u6765\u4f18\u5316\u7ed8\u56fe\u6548\u679c\u3002\u4f7f\u7528\u4e0d\u540c\u7684\u989c\u8272\u548c\u900f\u660e\u5ea6\u53ef\u4ee5\u4f7f\u76f8\u4ea4\u533a\u57df\u66f4\u52a0\u660e\u663e\uff0c\u540c\u65f6\u56fe\u4f8b\u53ef\u4ee5\u5e2e\u52a9\u89c2\u4f17\u8bc6\u522b\u6bcf\u4e2a\u5706\u7684\u542b\u4e49\u3002<\/p>\n<p><strong>\u5728\u7ed8\u5236\u5706\u65f6\u5982\u4f55\u5904\u7406\u5750\u6807\u8f74\u548c\u6bd4\u4f8b\uff1f<\/strong><br \/>\u5728\u7ed8\u5236\u5706\u65f6\uff0c\u786e\u4fdd\u5750\u6807\u8f74\u7684\u957f\u5bbd\u6bd4\u4e3a1\u662f\u5f88\u91cd\u8981\u7684\u3002\u53ef\u4ee5\u901a\u8fc7<code>ax.set_aspect(&#39;equal&#39;, &#39;box&#39;)<\/code>\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u6b64\u5916\uff0c\u9002\u5f53\u7684\u5750\u6807\u8303\u56f4\u8bbe\u7f6e\u4e5f\u6709\u52a9\u4e8e\u66f4\u597d\u5730\u5c55\u793a\u5706\u7684\u76f8\u4ea4\u60c5\u51b5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Matplotlib\u5e93\u6765\u7ed8\u5236\u4e09\u4e2a\u76f8\u4ea4\u7684\u5706\u3002 \u4f7f\u7528Matplotlib\u5e93\u7684Venn\u56fe\u5de5 [&hellip;]","protected":false},"author":3,"featured_media":1062050,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1062040"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1062040"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1062040\/revisions"}],"predecessor-version":[{"id":1062051,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1062040\/revisions\/1062051"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1062050"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1062040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1062040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1062040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}