{"id":54011,"date":"2022-09-28T10:30:28","date_gmt":"2022-09-28T01:30:28","guid":{"rendered":"https:\/\/www.creationline.com\/?p=54011"},"modified":"2022-11-18T11:40:08","modified_gmt":"2022-11-18T02:40:08","slug":"neo4j-sandbox-recommendations-%e3%83%97%e3%83%ad%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%82%92%e4%bd%93%e9%a8%93%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f-neo4j-sandbox-gds","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/data-management\/neo4j\/54011","title":{"rendered":"Neo4j SandBox \u30ec\u30b3\u30e1\u30f3\u30c9 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f53\u9a13\u3057\u3066\u307f\u305f #Neo4j #SandBox #GDS"},"content":{"rendered":"<h2>\u6982\u8981<\/h2>\n<p>Neo4j \u3092\u4f7f\u7528\u3057\u305f\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b\u3064\u3044\u3066\u8abf\u3079\u3066\u3044\u305f\u3089\u3001 <a href=\"https:\/\/sandbox.neo4j.com\/\" target=\"_target\" rel=\"noopener\">sandbox<\/a> \u306b Recommendations \u30d7\u30ed\u30b8\u30a7\u30af\u30c8 \u304c\u3042\u3063\u305f\u306e\u3067\u3001\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u5099\u5fd8\u9332\u3068\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30b7\u30ca\u30ea\u30aa\u3092\u65e5\u672c\u8a9e\u3067\u307e\u3068\u3081\u305f\u306e\u3067\u516c\u958b\u3057\u307e\u3059\u3002<\/p>\n<div align=\"center\" style=\"margin-top: 38px;margin-bottom: 36px\">\n\n\t\t<!--HubSpot Call-to-Action Code -->\n\t\t<span class=\"hs-cta-wrapper\" id=\"hs-cta-wrapper-a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1\">\n\t\t<span class=\"hs-cta-node hs-cta-a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1\" id=\"a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1\">\n\t\t<!--[if lte IE 8]>\n\t\t<div id=\"hs-cta-ie-element\"><\/div>\n\t\t<![endif]-->\n\t\t<a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/6168413\/a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1\" >\n\t\t<img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/6168413\/a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1.png\"  alt=\"New call-to-action\"\/>\n\t\t<\/a>\n\t\t<\/span>\n\t\t<script charset=\"utf-8\" src=\"\/\/js.hubspot.com\/cta\/current.js\"><\/script>\n\t\t<script>\n\t\thbspt.cta.load(6168413, 'a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1', {});\n\t\t<\/script>\n\t\t<\/span>\n\t\t<!-- end HubSpot Call-to-Action Code -->\n\t\t\n<\/div>\n<div style=\"color: #333333;background: #EEEEEE;font-weight: bold;border: solid 3px #CCCCCC;padding: 0.5em 1em;margin: 0 0 20px\"><\/p>\n<p>\u76ee\u6b21<\/p>\n<ul>\n<li><a href=\"#001\">\u76ee\u7684<\/a><\/li>\n<li><a href=\"#002\">\u4e88\u5099\u77e5\u8b58<\/a><\/li>\n<li><a href=\"#003\">\u30b7\u30ca\u30ea\u30aa0: \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3<\/a><\/li>\n<li><a href=\"#004\">\u30b7\u30ca\u30ea\u30aa1: \u6620\u753b\u306e\u30aa\u30fc\u30d7\u30f3\u30b0\u30e9\u30d5\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb<\/a><\/li>\n<li><a href=\"#005\" id=\"001\">\u30b7\u30ca\u30ea\u30aa2: Cypher \u5165\u9580<\/a><\/li>\n<li><a href=\"#006\">\u30b7\u30ca\u30ea\u30aa3: \u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e2\u3064\u306e\u30a2\u30d7\u30ed\u30fc\u30c1<\/a><\/li>\n<li><a href=\"#007\">\u30b7\u30ca\u30ea\u30aa4: \u30b3\u30f3\u30c6\u30f3\u30c4\u30d9\u30fc\u30b9\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0<\/a><\/li>\n<li><a href=\"#008\">\u30b7\u30ca\u30ea\u30aa5: \u5354\u8abf\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0<\/a><\/li>\n<li><a href=\"#009\">\u3055\u3089\u306b\u5b66\u3093\u3067\u307f\u305f\u3044\u65b9\u3078 - \u30a8\u30af\u30b5\u30b5\u30a4\u30ba\u96c6<\/a><\/li>\n<li><a href=\"#010\" id=\"002\">\u611f\u60f3<\/a><\/li>\n<\/ul>\n<\/div>\n<h2>\u76ee\u7684<\/h2>\n<ul>\n<li>Cypher \u30af\u30a8\u30ea\u304a\u3088\u3073 GDS(Graph Data Science) \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u305f\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u6982\u8981\u8aac\u660e<\/li>\n<\/ul>\n<h2>\u4e88\u5099\u77e5\u8b58<\/h2>\n<p>Neo4j \u3068 GDS \u306e\u6982\u8981\u306f<a href=\"\/lab\/neo4j\/51154\" target=\"_target\" rel=\"noopener\">\u3053\u3061\u3089<\/a>\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/sandbox.neo4j.com\/\" target=\"_target\" rel=\"noopener\">Neo4j Sandbox<\/a>\u304b\u3089\u4e0b\u8a18\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u9078\u629e\u3057\u3066\u958b\u59cb\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/27e89708717b26b65a24f435a13464b7-1024x934.png\" alt=\"\" width=\"461\" height=\"420\" class=\"alignnone size-large wp-image-54772\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/27e89708717b26b65a24f435a13464b7-1024x934.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/27e89708717b26b65a24f435a13464b7-360x328.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/27e89708717b26b65a24f435a13464b7-768x700.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/27e89708717b26b65a24f435a13464b7-1536x1400.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/27e89708717b26b65a24f435a13464b7-2048x1867.png 2048w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/8dd4166ab2d114ed76dcb52d3bcb9b3f-1024x934.png\" alt=\"\" width=\"461\" height=\"420\" class=\"alignnone size-large wp-image-54773\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/8dd4166ab2d114ed76dcb52d3bcb9b3f-1024x934.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/8dd4166ab2d114ed76dcb52d3bcb9b3f-360x328.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/8dd4166ab2d114ed76dcb52d3bcb9b3f-768x700.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/8dd4166ab2d114ed76dcb52d3bcb9b3f-1536x1400.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/8dd4166ab2d114ed76dcb52d3bcb9b3f-2048x1867.png 2048w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/p>\n<hr id=\"003\" style=\"border-color:#FFFFFF;background-color:#FFFFFF;margin:0px 0px 130px 0px\" noshade>\n<\/hr>\n<h2>\u30b7\u30ca\u30ea\u30aa0: \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3<\/h2>\n<h3>\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3<\/h3>\n<p>\u3053\u306e\u30b7\u30ca\u30ea\u30aa\u3067\u306f\u3001\u6620\u753b\u304a\u3088\u3073\u6620\u753b\u306e\u8a55\u4fa1\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b0\u30e9\u30d5\u30d9\u30fc\u30b9\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306a\u30d1\u30fc\u30bd\u30ca\u30e9\u30a4\u30ba\u3055\u308c\u305f\u5546\u54c1\u306e\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3046\u65b9\u6cd5\u306e\u6982\u8981\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u30d1\u30fc\u30bd\u30ca\u30e9\u30a4\u30ba\u3055\u308c\u305f\u5546\u54c1\u306e\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u308a\u3001\u96c6\u5ba2\u529b\u304c\u5897\u3057\u3001\u8ca9\u58f2\u7387\u304c\u6539\u5584\u3057\u3001\u3088\u308a\u826f\u3044\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u3092\u63d0\u4f9b\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3053\u306e\u30b7\u30ca\u30ea\u30aa\u3067\u7d39\u4ecb\u3059\u308b\u65b9\u6cd5\u306f\u3001\u7570\u306a\u308b\u30bf\u30a4\u30d7\u306e\u5546\u54c1\u3084\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u5e45\u5e83\u304f\u5fdc\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30b0\u30e9\u30d5\u30d9\u30fc\u30b9\u306e\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3<\/h3>\n<p>\u30d1\u30fc\u30bd\u30ca\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u751f\u6210\u306f\u3001\u30b0\u30e9\u30d5\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6700\u3082\u4e00\u822c\u7684\u306a\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u306e1\u3064\u3067\u3059\u3002<br \/>\n\u30b0\u30e9\u30d5\u3092\u4f7f\u7528\u3057\u305f\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u4e3b\u8981\u306a\u30e1\u30ea\u30c3\u30c8\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<h4>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9<\/h4>\n<p>Neo4j\u3067\u306f\u5404\u30ce\u30fc\u30c9\u304c\u96a3\u63a5\u3059\u308b\u30ce\u30fc\u30c9\u3084\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7\u306b\u76f4\u63a5\u683c\u7d0d\u3055\u308c\u308b \"index-free adjacency\"<sup><a href=\"#note1\" title=\"\u53c2\u8003\u8cc7\u6599\">\u203b1<\/a><\/sup>\u3068\u3044\u3046\u4ed5\u7d44\u307f\u3092\u63a1\u7528\u3057\u3066\u304a\u308a\u3001\u9ad8\u901f\u306a\u691c\u7d22\u304c\u53ef\u80fd\u3067\u3042\u308b\u305f\u3081\u3001\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u8a08\u7b97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u304c\u5e38\u306b\u9069\u5207\u3067\u3001\u6700\u65b0\u306e\u60c5\u5831\u3092\u53cd\u6620\u3059\u308b\u3053\u3068\u3092\u4fdd\u8a3c\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb<\/h4>\n<p>\u30e9\u30d9\u30eb\u4ed8\u304d\u30d7\u30ed\u30d1\u30c6\u30a3\u30b0\u30e9\u30d5\u30e2\u30c7\u30eb\u306b\u3088\u3063\u3066\u3001\u8907\u6570\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u304b\u3089\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u7d50\u5408\u3059\u308b\u3053\u3068\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u4f01\u696d\u306f\u3001\u3053\u308c\u307e\u3067\u5206\u96e2\u3055\u308c\u3066\u3044\u305f\u30c7\u30fc\u30bf\u30b5\u30a4\u30ed\u304b\u3089\u4fa1\u5024\u3092\u5f15\u304d\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/title1-1024x372.png\" alt=\"\" width=\"1024\" height=\"372\" class=\"alignnone size-large wp-image-54735\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/title1-1024x372.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/title1-360x131.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/title1-768x279.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/title1.png 1520w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<hr id=\"004\" style=\"border-color:#FFFFFF;background-color:#FFFFFF;margin:0px 0px 130px 0px\" noshade>\n<\/hr>\n<h2>\u30b7\u30ca\u30ea\u30aa1: \u6620\u753b\u306e\u30aa\u30fc\u30d7\u30f3\u30b0\u30e9\u30d5\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb<\/h2>\n<h3>\u30d7\u30ed\u30d1\u30c6\u30a3\u30b0\u30e9\u30d5\u30e2\u30c7\u30eb<\/h3>\n<p>\u30b0\u30e9\u30d5\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\u306f\u3001\u30e9\u30d9\u30eb\u4ed8\u304d\u30d7\u30ed\u30d1\u30c6\u30a3\u30b0\u30e9\u30d5\u30e2\u30c7\u30eb\u3068\u547c\u3070\u308c\u307e\u3059\u3002<\/p>\n<table>\n<tr>\n<td bgcolor=\"lightblue\">\u8981\u7d20<\/td>\n<td bgcolor=\"lightblue\">\u8aac\u660e<\/td>\n<\/tr>\n<tr>\n<td>\u30ce\u30fc\u30c9<\/td>\n<td>\u30ce\u30fc\u30c9\u306f\u30c7\u30fc\u30bf\u306e\u5b9f\u4f53\u3092\u8868\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30e9\u30d9\u30eb<\/td>\n<td>\u5404\u30ce\u30fc\u30c9\u306b\u306f\u30ce\u30fc\u30c9\u306e\u30bf\u30a4\u30d7\u3092\u6307\u5b9a\u3059\u308b1\u3064\u4ee5\u4e0a\u306e\u30e9\u30d9\u30eb\u3092\u4ed8\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7<\/td>\n<td>\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7\u306f\u30ce\u30fc\u30c9\u540c\u58eb\u3092\u7d50\u5408\u3057\u307e\u3059\u3002\u5358\u4e00\u306e\u65b9\u5411\u304a\u3088\u3073\u30bf\u30a4\u30d7\u3092\u6301\u3061\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30d7\u30ed\u30d1\u30c6\u30a3<\/td>\n<td>\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u30ad\u30fc\u3068\u30d0\u30ea\u30e5\u30fc\u306e\u30da\u30a2\u3092\u306a\u3057\u3001\u5404\u30ce\u30fc\u30c9\u3068\u5404\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7\u306b\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/table>\n<h3>\u30c7\u30fc\u30bf\u30b5\u30a4\u30ed\u306b\u3088\u308b\u30c7\u30fc\u30bf\u306e\u5206\u96e2\u3092\u89e3\u9664\u3059\u308b<\/h3>\n<p>\u3053\u306e\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u3067\u306f\u3001\u30b0\u30e9\u30d5\u3092\u4f7f\u7528\u3057\u3066\u8907\u6570\u306e\u30c7\u30fc\u30bf\u30b5\u30a4\u30ed\u304b\u3089\u306e\u30c7\u30fc\u30bf\u3092\u7d50\u5408\u3057\u307e\u3059\u3002<\/p>\n<table>\n<tr>\n<td bgcolor=\"lightblue\">\u30c7\u30fc\u30bf\u7a2e\u5225<\/td>\n<td bgcolor=\"lightblue\">\u8aac\u660e<\/td>\n<\/tr>\n<tr>\n<td>\u5546\u54c1\u30ab\u30bf\u30ed\u30b0<\/td>\n<td>\u6620\u753b\u3092\u8aac\u660e\u3059\u308b\u30c7\u30fc\u30bf\u306f\u3001\u5546\u54c1\u30ab\u30bf\u30ed\u30b0\u306e\u30c7\u30fc\u30bf\u30b5\u30a4\u30ed\u304b\u3089\u53d6\u5f97\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30e6\u30fc\u30b6\u30fc\u306e\u8cfc\u8cb7\u5c65\u6b74\/\u30ec\u30d3\u30e5\u30fc<\/td>\n<td>\u30e6\u30fc\u30b6\u30fc\u306e\u8cfc\u8cb7\u5c65\u6b74\u3084\u30ec\u30d3\u30e5\u30fc\u30c7\u30fc\u30bf\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u307e\u305f\u306f\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u30c7\u30fc\u30bf\u30b5\u30a4\u30ed\u304b\u3089\u53d6\u5f97\u3002<\/td>\n<\/tr>\n<\/table>\n<p>\u30b0\u30e9\u30d5\u3092\u4f7f\u7528\u3057\u3066\u4e0a\u8a18\u306e\u30c7\u30fc\u30bf\u30b5\u30a4\u30ed\u304b\u3089\u306e\u30c7\u30fc\u30bf\u3092\u7d50\u5408\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u6a2a\u65ad\u3059\u308b\u30af\u30a8\u30ea\u3092\u8d70\u3089\u305b\u3066\u3001\u30d1\u30fc\u30bd\u30ca\u30e9\u30a4\u30ba\u3055\u308c\u305f\u5546\u54c1\u306e\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/datamodel-1024x556.png\" alt=\"\" width=\"1024\" height=\"556\" class=\"alignnone size-large wp-image-54710\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/datamodel-1024x556.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/datamodel-360x195.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/datamodel-768x417.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/datamodel-1536x833.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/datamodel.png 1692w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<hr id=\"005\" style=\"border-color:#FFFFFF;background-color:#FFFFFF;margin:0px 0px 130px 0px\" noshade>\n<\/hr>\n<h2>\u30b7\u30ca\u30ea\u30aa2: Cypher \u5165\u9580<\/h2>\n<p>\u30e9\u30d9\u30eb\u4ed8\u304d\u30d7\u30ed\u30d1\u30c6\u30a3\u30b0\u30e9\u30d5\u3067\u4f5c\u696d\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30b0\u30e9\u30d5\u3092\u6271\u3046\u30af\u30a8\u30ea\u8a00\u8a9e\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h3>\u30b0\u30e9\u30d5\u30d1\u30bf\u30fc\u30f3<\/h3>\n<p>Cypher \u306f\u30b0\u30e9\u30d5\u306e\u30af\u30a8\u30ea\u8a00\u8a9e\u3067\u3042\u308a\u3001\u30b0\u30e9\u30d5\u30d1\u30bf\u30fc\u30f3\u3092\u4e2d\u5fc3\u306b\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30b0\u30e9\u30d5\u30d1\u30bf\u30fc\u30f3\u306f Cypher \u3067\u306f\u30a2\u30b9\u30ad\u30fc\u30a2\u30fc\u30c8\u306e\u3088\u3046\u306a\u69cb\u6587\u306b\u3088\u3063\u3066\u8868\u73fe\u3055\u308c\u307e\u3059\u3002<\/p>\n<table>\n<tr>\n<td bgcolor=\"lightblue\">\u8981\u7d20<\/td>\n<td bgcolor=\"lightblue\">\u8aac\u660e<\/td>\n<td bgcolor=\"lightblue\">\u4f8b<\/td>\n<\/tr>\n<tr>\n<td>\u30ce\u30fc\u30c9<\/td>\n<td>\u30ce\u30fc\u30c9\u306f\u4e38\u30ab\u30c3\u30b3\u5185\u306b\u5b9a\u7fa9\u3055\u308c\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30ce\u30fc\u30c9\u30e9\u30d9\u30eb\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/td>\n<td>(:Movie)<\/td>\n<\/tr>\n<tr>\n<td>\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7<\/td>\n<td>\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7\u306f\u89d2\u30ab\u30c3\u30b3\u5185\u306b\u5b9a\u7fa9\u3055\u308c\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30bf\u30a4\u30d7\u3068\u65b9\u5411\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/td>\n<td>(:Movie)<b>&lt;-[:RATED]-<\/b>(:User)<\/td>\n<\/tr>\n<tr>\n<td>\u30a8\u30a4\u30ea\u30a2\u30b9<\/td>\n<td>\u30b0\u30e9\u30d5\u8981\u7d20\u306f\u30a8\u30a4\u30ea\u30a2\u30b9\u306b\u30d0\u30a4\u30f3\u30c9\u3067\u304d\u3001\u3042\u3068\u3067\u30af\u30a8\u30ea\u3067\u53c2\u7167\u3067\u304d\u307e\u3059\u3002<\/td>\n<td>(<b>m<\/b>:Movie)&lt;-[<b>r<\/b>:RATED]-(<b>u<\/b>:User)<\/td>\n<\/tr>\n<\/table>\n<p>\u4e0a\u8a18\u306e\u30b0\u30e9\u30d5\u30d1\u30bf\u30fc\u30f3\u306b\u30d5\u30a3\u30eb\u30bf\u3092\u9069\u7528\u3057\u3001\u9069\u5408\u3059\u308b\u30d1\u30b9\u3092\u7d5e\u308a\u8fbc\u307f\u307e\u3059\u3002<br \/>\n\u30d6\u30fc\u30eb\u8ad6\u7406\u6f14\u7b97\u5b50\u3001\u6b63\u898f\u8868\u73fe\u3001\u6587\u5b57\u5217\u6bd4\u8f03\u6f14\u7b97\u5b50\u304c\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<br \/>\nCOUNT\u306a\u3069\u306e\u96c6\u8a08\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306e\u305f\u3081\u306b\u3001\u6697\u9ed9\u7684\u306b\u30b0\u30eb\u30fc\u30d4\u30f3\u30b0\u304c\u884c\u308f\u308c\u307e\u3059\u3002<br \/>\nCypher \u306e\u69cb\u6587\u3092\u5b66\u3076\u305f\u3081\u306e\u53c2\u8003\u8cc7\u6599\u3068\u3057\u3066\u3001<a href=\"https:\/\/neo4j.com\/docs\/cypher-refcard\/current\/\">Cypher Refcard<\/a>\u3092\u305c\u3072\u3054\u6d3b\u7528\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>Cypher\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u5206\u6790<\/h3>\n<p>\u300c\u300eMatrix\u300f\u30b7\u30ea\u30fc\u30ba\u306e\u6620\u753b\u306b\u306f\u4f55\u4ef6\u306e\u30ec\u30d3\u30e5\u30fc\u304c\u3042\u308a\u307e\u3059\u304b\uff1f\u300d\u3068\u3044\u3046\u554f\u3044\u306b\u7b54\u3048\u308bCypher\u30af\u30a8\u30ea\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u3082\u3057\u3053\u308c\u304c\u8907\u96d1\u306b\u601d\u3048\u3066\u3082\u5fc3\u914d\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002Cypher \u306e\u7406\u89e3\u3092\u6df1\u3081\u306a\u304c\u3089\u3001\u9032\u3081\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">\nMATCH (m:Movie)&lt;-[:RATED]-(u:User)\nWHERE m.title CONTAINS &quot;Matrix&quot;\nWITH m, COUNT(*) AS reviews\nRETURN m.title AS movie, reviews\nORDER BY reviews DESC LIMIT 5;\n<\/pre>\n<\/p>\n<table>\n<tr>\n<td bgcolor=\"lightblue\">\u64cd\u4f5c<\/td>\n<td bgcolor=\"lightblue\">Cypher<\/td>\n<td bgcolor=\"lightblue\">\u8aac\u660e<\/td>\n<\/tr>\n<tr>\n<td>\u691c\u7d22<\/td>\n<td>MATCH (m:Movie)&lt;-[:RATED]-(u:user)<\/td>\n<td>\u30d1\u30bf\u30fc\u30f3\u306b\u30de\u30c3\u30c1\u3059\u308b\u30d1\u30b9\u3092\u691c\u7d22\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30d5\u30a3\u30eb\u30bf<\/td>\n<td>WHERE m.title CONTAINS &quot;Matrix&quot;<\/td>\n<td>\u691c\u7d22\u3057\u305f\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u305f\u6761\u4ef6\u306b\u30de\u30c3\u30c1\u3059\u308b\u3082\u306e\u3060\u3051\u306b\u7d5e\u308a\u8fbc\u307f\u307e\u3059\u3002<\/td>\n<tr>\n<td>\u96c6\u8a08<\/td>\n<td>WITH m, COUNT(*) AS reviews<\/td>\n<td>\u30d5\u30a3\u30eb\u30bf\u306b\u30de\u30c3\u30c1\u3057\u305f\u30d1\u30b9\u306e\u6570\u3092\u30ab\u30a6\u30f3\u30c8\u3057\u3001\u5909\u6570\u306b\u683c\u7d0d\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u5024\u3092\u8fd4\u3059<\/td>\n<td>RETURN m.title as movie, reviews<\/td>\n<td>Cypher \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c\u6700\u7d42\u7684\u306b\u8fd4\u3059\u30c7\u30fc\u30bf\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30bd\u30fc\u30c8<\/td>\n<td>ORDER BY reviews DESC<\/td>\n<td>\u30ec\u30d3\u30e5\u30fc\u6570\u306e\u964d\u9806\u306b\u30bd\u30fc\u30c8\u3059\u308b\u3053\u3068\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u5236\u9650\u5024<\/td>\n<td>LIMIT 5;<\/td>\n<td>\u6700\u521d\u306e5\u3064\u306e\u30ec\u30b3\u30fc\u30c9\u306e\u307f\u3092\u8fd4\u3059\u3053\u3068\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/table>\n<p>\u3053\u306e\u30af\u30a8\u30ea\u306e\u5b9f\u884c\u7d50\u679c\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/dd88d90c5e03a4e0e1386d3bbed3dfa6-1024x287.png\" alt=\"\" width=\"1024\" height=\"287\" class=\"alignnone size-large wp-image-54791\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/dd88d90c5e03a4e0e1386d3bbed3dfa6-1024x287.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/dd88d90c5e03a4e0e1386d3bbed3dfa6-360x101.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/dd88d90c5e03a4e0e1386d3bbed3dfa6-768x216.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/dd88d90c5e03a4e0e1386d3bbed3dfa6-1536x431.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/dd88d90c5e03a4e0e1386d3bbed3dfa6-2048x575.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<hr id=\"006\" style=\"border-color:#FFFFFF;background-color:#FFFFFF;margin:0px 0px 130px 0px\" noshade>\n<\/hr>\n<h2>\u30b7\u30ca\u30ea\u30aa3: \u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e2\u3064\u306e\u30a2\u30d7\u30ed\u30fc\u30c1<\/h2>\n<p>\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b\u306f2\u3064\u306e\u57fa\u672c\u7684\u306a\u30a2\u30d7\u30ed\u30fc\u30c1\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<table>\n<tr>\n<td style=\"text-align:center;border:none\"><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/content1-360x209.png\" alt=\"\" width=\"432\" height=\"256\" class=\"size-medium wp-image-54720\" \/><\/td>\n<td style=\"text-align:center;border:none\"><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/cf1-360x188.png\" alt=\"\" width=\"432\" height=\"256\" class=\"size-medium wp-image-54721\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;border:none\">\u30b3\u30f3\u30c6\u30f3\u30c4\u30d9\u30fc\u30b9\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u306e\u6a21\u5f0f\u56f3<\/td>\n<td style=\"text-align:center;border:none\">\u5354\u8abf\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u306e\u6a21\u5f0f\u56f3<\/td>\n<\/tr>\n<\/table>\n<h3>\u30b3\u30f3\u30c6\u30f3\u30c4\u30d9\u30fc\u30b9\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0<\/h3>\n<p>\u30e6\u30fc\u30b6\u30fc\u304c\u95b2\u89a7\u3057\u305f\u308a\u3001\u9ad8\u304f\u8a55\u4fa1\u3057\u305f\u308a\u3001\u4ee5\u524d\u306b\u8cfc\u5165\u3057\u305f\u308a\u3057\u3066\u3044\u308b\u6620\u753b\u306b\u4f3c\u3066\u3044\u308b\u6620\u753b\u3092\u30ec\u30b3\u30e1\u30f3\u30c9\u3057\u307e\u3059\u3002<br \/>\nEC\u30b5\u30a4\u30c8\u306a\u3069\u306e\u300c\u3042\u306a\u305f\u304c\u4eca\u898b\u3066\u3044\u308b\u5546\u54c1\u306b\u4f3c\u3066\u3044\u308b\u5546\u54c1\u3092\u8868\u793a\u3057\u307e\u3059\u300d\u306a\u3069\u3068\u3044\u3046\u8868\u793a\u306b\u5bfe\u5fdc\u3059\u308b\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u5354\u8abf\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0<\/h3>\n<p>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u4e2d\u306e\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u597d\u307f\u3084\u8a55\u4fa1\u3084\u884c\u52d5\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ec\u30b3\u30e1\u30f3\u30c9\u3059\u308b\u6620\u753b\u3092\u898b\u3064\u3051\u307e\u3059\u3002<br \/>\nEC\u30b5\u30a4\u30c8\u306a\u3069\u306e\u300c\u3053\u306e\u5546\u54c1\u3092\u8cb7\u3063\u305f\u30e6\u30fc\u30b6\u30fc\u306f\u3001\u3053\u3061\u3089\u306e\u5546\u54c1\u3082\u8cb7\u3063\u3066\u3044\u307e\u3059\u300d\u306a\u3069\u3068\u3044\u3046\u8868\u793a\u306b\u5bfe\u5fdc\u3059\u308b\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<hr id=\"007\" style=\"border-color:#FFFFFF;background-color:#FFFFFF;margin:0px 0px 130px 0px\" noshade>\n<\/hr>\n<h2>\u30b7\u30ca\u30ea\u30aa4: \u30b3\u30f3\u30c6\u30f3\u30c4\u30d9\u30fc\u30b9\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0<\/h2>\n<p>\u30b3\u30f3\u30c6\u30f3\u30c4\u30d9\u30fc\u30b9\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u306e\u76ee\u7684\u306f\u3001<b>\u30a2\u30a4\u30c6\u30e0\u306e\u5c5e\u6027\u3084\u7279\u5fb4\u3092\u4f7f\u7528\u3057\u3066\u3001\u985e\u4f3c\u306e\u30a2\u30a4\u30c6\u30e0\u3092\u898b\u3064\u3051\u308b<\/b>\u3053\u3068\u3067\u3059\u3002<br \/>\n\u3053\u306e\u30b7\u30ca\u30ea\u30aa\u306e\u6620\u753b\u306e\u30c7\u30fc\u30bf\u3092\u4f7f\u7528\u3059\u308b\u306a\u3089\u3001\u985e\u4f3c\u6027\u3092\u5b9a\u7fa9\u3059\u308b\u65b9\u6cd5\u306e\u4e00\u3064\u3068\u3057\u3066\u3001\u5171\u901a\u306e\u30b8\u30e3\u30f3\u30eb\u3092\u6301\u3064\u3068\u3044\u3046\u7279\u5fb4\u3092\u7528\u3044\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u5171\u901a\u306e\u30b8\u30e3\u30f3\u30eb\u306b\u57fa\u3065\u304f\u985e\u4f3c\u6027<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/genres-1024x325.png\" alt=\"\" width=\"1024\" height=\"325\" class=\"alignnone size-large wp-image-54725\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/genres-1024x325.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/genres-360x114.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/genres-768x244.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/genres-1536x488.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/genres-2048x651.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u30a4\u30e1\u30fc\u30b8\u3092\u63b4\u3080\u305f\u3081\u306b\u3001\u307e\u305a\u306f\u5358\u7d14\u306b\u30b8\u30e3\u30f3\u30eb\u306e\u5171\u901a\u6027\u304b\u3089\u300eInception\u300f\u306b\u6700\u3082\u8fd1\u3044\u6620\u753b\u3092\u63a2\u3057\u307e\u3059\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">\n\/\/ Find similar movies by common genres\nMATCH (m:Movie)-[:IN_GENRE]-&gt;(g:Genre)&lt;-[:IN_GENRE]-(rec:Movie)\nWHERE m.title = &quot;Inception&quot;\nWITH rec, COLLECT(g.name) AS genres, COUNT(*) AS commonGenreCount\nRETURN rec.title, genres, commonGenreCount\nORDER BY commonGenreCount DESC LIMIT 10;\n<\/pre>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/0ea4e667738ed2ae8361e0fac478cf9e-1024x657.png\" alt=\"\" width=\"1024\" height=\"657\" class=\"alignnone size-large wp-image-55009\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/0ea4e667738ed2ae8361e0fac478cf9e-1024x657.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/0ea4e667738ed2ae8361e0fac478cf9e-360x231.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/0ea4e667738ed2ae8361e0fac478cf9e-768x493.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/0ea4e667738ed2ae8361e0fac478cf9e-1536x985.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/0ea4e667738ed2ae8361e0fac478cf9e-2048x1314.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u30ec\u30b3\u30e1\u30f3\u30c9\u30ea\u30b9\u30c8\u304c\u4f5c\u6210\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u300eInception\u300f\u3092\u898b\u305f\u306a\u3089\u3001\u300ePatlabor: The Movie\u300f\u300eStrange Days\u300f\u300eWatchmen\u300f\u304c\u304a\u3059\u3059\u3081\u3068\u3044\u3046\u7d50\u679c\u3067\u3059\u306d\u3002<br \/>\n\u3044\u304b\u304b\u3067\u3057\u3087\u3046\u304b\uff1f \u5171\u901a\u30b8\u30e3\u30f3\u30eb\u3060\u3051\u3067\u306f\u30ec\u30b3\u30e1\u30f3\u30c9\u7d50\u679c\u306f\u5fae\u5999\u3068\u8a00\u308f\u3056\u308b\u3092\u5f97\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u308c\u3067\u306f\u30ec\u30b3\u30e1\u30f3\u30c9\u306e\u7cbe\u5ea6\u306f\u4f4e\u3044\u306e\u3067\u3001\u30e6\u30fc\u30b6\u306e\u8a55\u4fa1\u3092\u53d6\u308a\u5165\u308c\u3066\u6539\u826f\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<h3>\u30b8\u30e3\u30f3\u30eb\u306b\u57fa\u3065\u304f\u30d1\u30fc\u30bd\u30ca\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3<\/h3>\n<p>\u30e6\u30fc\u30b6\u30fc\u304c\u65e2\u306b\u8a55\u4fa1\u3057\u305f\u6620\u753b\u306e\u60c5\u5831\u3092\u4f7f\u7528\u3057\u3066\u3001\u985e\u4f3c\u306e\u6620\u753b\u3092\u30ec\u30b3\u30e1\u30f3\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u30e6\u30fc\u30b6\u30fc\u304c\u8a55\u4fa1\u3057\u305f\u6620\u753b\u3068\u5171\u901a\u306e\u30b8\u30e3\u30f3\u30eb\u3092\u6301\u3064\u6620\u753b\u306e\u60c5\u5831\u3092\u3082\u3068\u306b\u304a\u3059\u3059\u3081\u5ea6\u3092\u8a08\u7b97\u3057\u3001\u985e\u4f3c\u3059\u308b\u6620\u753b\u3092\u30ec\u30b3\u30e1\u30f3\u30c9\u3057\u307e\u3059\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">\n\/\/ Content recommendation by overlapping genres\nMATCH (u:User {name: &quot;Angelica Rodriguez&quot;})-[r:RATED]-&gt;(m:Movie),\n  (m)-[:IN_GENRE]-&gt;(g:Genre)&lt;-[:IN_GENRE]-(rec:Movie)&#010;\nWHERE NOT EXISTS( (u)-[:RATED]-&gt;(rec) )&#010;\nWITH rec, [g.name, COUNT(*)] AS scores&#010;\nRETURN rec.title AS recommendation, rec.year AS year,\nCOLLECT(scores) AS scoreComponents,\nREDUCE (s=0,x in COLLECT(scores) | s+x[1]) AS score&#010;\nORDER BY score DESC LIMIT 10\n<\/pre>\n<\/p>\n<table>\n<tr>\n<td bgcolor=\"lightblue\">Cypher<\/td>\n<td bgcolor=\"lightblue\">\u8aac\u660e<\/td>\n<\/tr>\n<tr>\n<td>MATCH (u:User {name: \"Angelica Rodriguez\"})-[r:RATED]-&gt;(m:Movie),<br \/>\n  (m)-[:IN_GENRE]-&gt;(g:Genre)&lt;-[:IN_GENRE]-(rec:Movie)<\/td>\n<td>Angelica Rodriguez\u304c\u8a55\u4fa1\u3057\u305f\u6620\u753b\u3068\u5171\u901a\u306e\u30b8\u30e3\u30f3\u30eb\u3092\u6301\u3064\u6620\u753b\u3092\u53d6\u5f97\u3057\u3066\u3001\u5bfe\u8c61\u306e\u6620\u753b\u3068\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>WHERE NOT EXISTS( (u)-[:RATED]-&gt;(rec) )<\/td>\n<td>\u305f\u3060\u3057\u3001Angelica Rodriguez\u81ea\u8eab\u304c\u8a55\u4fa1\u3057\u305f\u3082\u306e\u306f\u542b\u3081\u306a\u3044<\/td>\n<\/tr>\n<tr>\n<td>WITH rec, [g.name, COUNT(*)] AS scores<\/td>\n<td>\u5bfe\u8c61\u306e\u6620\u753b\u306e\u30b9\u30b3\u30a2\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u5ba3\u8a00\u3059\u308b<br \/>\n\u30b9\u30b3\u30a2\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u6b21\u306e2\u8981\u7d20\u304b\u3089\u306a\u308b<br \/>\n1. \u5bfe\u8c61\u306e\u6620\u753b\u306e\u5c5e\u3059\u308b\u5404\u5171\u901a\u30b8\u30e3\u30f3\u30eb\u540d<br \/>\n2. \u5404\u5171\u901a\u30b8\u30e3\u30f3\u30eb\u306b\u5c5e\u3059\u308b\u6620\u753b\u306e\u5185\u3001Angelica Rodriguez\u304c\u8a55\u4fa1\u3057\u305f\u6620\u753b\u306e\u6570\uff08\u30b8\u30e3\u30f3\u30eb\u306e\u30b9\u30b3\u30a2\uff09<\/td>\n<\/tr>\n<tr>\n<td>RETURN rec.title AS recommendation, rec.year AS year,<br \/>\nCOLLECT(scores) AS scoreComponents,<br \/>\nREDUCE (s=0,x in COLLECT(scores) | s+x[1]) AS score<\/td>\n<td>\u6b21\u306e\u8981\u7d20\u3092\u8fd4\u308a\u5024\u3068\u3059\u308b<br \/>\n1. \u5bfe\u8c61\u306e\u6620\u753b\u306e\u30bf\u30a4\u30c8\u30eb<br \/>\n2. \u5bfe\u8c61\u306e\u6620\u753b\u306e\u516c\u958b\u5e74<br \/>\n3. \u5bfe\u8c61\u306e\u6620\u753b\u306e\u30b9\u30b3\u30a2\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<br \/>\n4. \u5bfe\u8c61\u306e\u6620\u753b\u306e\u5c5e\u3059\u308b\u30b8\u30e3\u30f3\u30eb\u306e\u30b9\u30b3\u30a2\u306e\u5408\u8a08\u5024<\/td>\n<\/tr>\n<tr>\n<td>ORDER BY score DESC LIMIT 10<\/td>\n<td>\u30b8\u30e3\u30f3\u30eb\u306e\u30b9\u30b3\u30a2\u306e\u5408\u8a08\u5024\u306e\u964d\u9806\u3067\u30bd\u30fc\u30c8\u3057\u3001\u4e0a\u4f4d10\u4ef6\u3092\u8fd4\u3059<\/td>\n<\/tr>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/8420376db0ac500868d5e9af7b96c783-1024x624.png\" alt=\"\" width=\"1024\" height=\"624\" class=\"alignnone size-large wp-image-54830\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/8420376db0ac500868d5e9af7b96c783-1024x624.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/8420376db0ac500868d5e9af7b96c783-360x219.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/8420376db0ac500868d5e9af7b96c783-768x468.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/8420376db0ac500868d5e9af7b96c783-1536x936.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/8420376db0ac500868d5e9af7b96c783-2048x1248.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u3055\u304d\u307b\u3069\u306e\u30ec\u30b3\u30e1\u30f3\u30c9\u7d50\u679c\u3068\u306f\u5168\u304f\u7570\u306a\u308a\u3001\u30e6\u30fc\u30b6\u81ea\u8eab\u306e\u304a\u6c17\u306b\u5165\u308a\u30b8\u30e3\u30f3\u30eb\u304c\u591a\u3044\u6620\u753b\u3092\u304a\u3059\u3059\u3081\u3059\u308b\u30ec\u30b3\u30e1\u30f3\u30c9\u30ea\u30b9\u30c8\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u307e\u3067\u306f\u6620\u753b\u30b8\u30e3\u30f3\u30eb\u306e\u307f\u304b\u3089\u30ec\u30b3\u30e1\u30f3\u30c9\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u304c\u3001\u6b21\u306f\u30b8\u30e3\u30f3\u30eb\u4ee5\u5916\u306e\u8981\u7d20\u3082\u8003\u616e\u306b\u5165\u308c\u3066\u9ad8\u5ea6\u306a\u30ec\u30b3\u30e1\u30f3\u30c9\u3092\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h3>\u91cd\u307f\u4ed8\u3051\u3055\u308c\u305f\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0<\/h3>\n<p>\u30b8\u30e3\u30f3\u30eb\u306e\u4ed6\u306b\u3082\u985e\u4f3c\u5ea6\u3092\u8a08\u7b97\u3059\u308b\u305f\u3081\u306b\u8003\u616e\u3067\u304d\u308b\u7279\u5fb4\u306f\u591a\u304f\u3042\u308a\u307e\u3059\u3002\u4ff3\u512a\u3084\u76e3\u7763\u306a\u3069\u3067\u3059\u3002<br \/>\n\u30b8\u30e3\u30f3\u30eb\u3084\u4ff3\u512a\u3084\u76e3\u7763\u306a\u3069\u306e\u5171\u901a\u9805\u306e\u6570\u3092\u3082\u3068\u306b\u3001\u52a0\u91cd\u548c\u3067\u304a\u3059\u3059\u3081\u5ea6\u3092\u8a08\u7b97\u3057\u3001\u30ec\u30b3\u30e1\u30f3\u30c9\u306e\u7cbe\u5ea6\u3092\u4e0a\u3052\u307e\u3057\u3087\u3046\u3002<br \/>\n\u91cd\u8907\u3057\u3066\u3044\u308b\u7279\u5fb4\u306e\u6570\u3068\u7a2e\u985e\u3092\u3082\u3068\u306b\u3001\u52a0\u91cd\u548c\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">\n\/\/ Find similar movies by common genres\nMATCH (m:Movie) WHERE m.title = &quot;Wizard of Oz, The&quot;\nMATCH (m)-[:IN_GENRE]-&gt;(g:Genre)&lt;-[:IN_GENRE]-(rec:Movie)&#010;\nWITH m, rec, COUNT(&#042;) AS gs&#010;\nOPTIONAL MATCH (m)&lt;-[:ACTED_IN]-(a:Actor)-[:ACTED_IN]-&gt;(rec)\nWITH m, rec, gs, COUNT(a) AS as&#010;\nOPTIONAL MATCH (m)&lt;-[:DIRECTED]-(d:Director)-[:DIRECTED]-&gt;(rec)\nWITH m, rec, gs, as, COUNT(d) AS ds&#010;\nRETURN rec.title AS recommendation, (5&#042;gs)+(3&#042;as)+(4&#042;ds) AS score ORDER BY score DESC LIMIT 100\n<\/pre>\n<\/p>\n<table>\n<tr>\n<td bgcolor=\"lightblue\">Cypher<\/td>\n<td bgcolor=\"lightblue\">\u8aac\u660e<\/td>\n<\/tr>\n<tr>\n<td>MATCH (m:Movie) WHERE m.title = &quot;Wizard of Oz, The&quot;<br \/>\nMATCH (m)-[:IN_GENRE]-&gt;(g:Genre)&lt;-[:IN_GENRE]-(rec:Movie)<\/td>\n<td>The Wizard of Oz\u3068\u5171\u901a\u306e\u30b8\u30e3\u30f3\u30eb\u3092\u6301\u3064\u6620\u753b\u3092\u53d6\u5f97\u3057\u3001\u5bfe\u8c61\u306e\u6620\u753b\u3068\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>WITH m, rec, COUNT(&#042;) AS gs<\/td>\n<td>\u5bfe\u8c61\u306e\u6620\u753b\u304cThe Wizard of Oz\u3068\u5171\u901a\u3057\u3066\u6301\u3064\u30b8\u30e3\u30f3\u30eb\u306e\u6570gs\u3092\u6c42\u3081\u308b<\/td>\n<\/tr>\n<tr>\n<td>OPTIONAL MATCH (m)&lt;-[:ACTED_IN]-(a:Actor)-[:ACTED_IN]-&gt;(rec)<br \/>\nWITH m, rec, gs, COUNT(a) AS as<\/td>\n<td>\u5bfe\u8c61\u306e\u6620\u753b\u304cThe Wizard of Oz\u3068\u5171\u901a\u3057\u3066\u6301\u3064\u4ff3\u512a\u306e\u6570as\u3092\u6c42\u3081\u308b<\/td>\n<\/tr>\n<tr>\n<td>OPTIONAL MATCH (m)&lt;-[:DIRECTED]-(d:Director)-[:DIRECTED]-&gt;(rec)<br \/>\nWITH m, rec, gs, as, COUNT(d) AS ds<\/td>\n<td>\u5bfe\u8c61\u306e\u6620\u753b\u304cThe Wizard of Oz\u3068\u5171\u901a\u3057\u3066\u6301\u3064\u76e3\u7763\u306e\u6570ds\u3092\u6c42\u3081\u308b<\/td>\n<\/tr>\n<tr>\n<td>RETURN rec.title AS recommendation, (5&#042;gs)+(3&#042;as)+(4&#042;ds) AS score ORDER BY score DESC LIMIT 100<\/td>\n<td>\u5bfe\u8c61\u306e\u6620\u753b\u306e\u30bf\u30a4\u30c8\u30eb\u304a\u3088\u3073\u30b9\u30b3\u30a2 (5&#042;gs)+(3&#042;as)+(4&#042;ds) \u3092\u8fd4\u308a\u5024\u3068\u3059\u308b<br \/>\n\u30b9\u30b3\u30a2\u306e\u964d\u9806\u306b\u30bd\u30fc\u30c8\u3057\u4e0a\u4f4d100\u4ef6\u3092\u8fd4\u3059<\/td>\n<\/tr>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/748592bd714745ff98e9aebdaf362fd1-664x1024.png\" alt=\"\" width=\"664\" height=\"1024\" class=\"alignnone size-large wp-image-54835\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/748592bd714745ff98e9aebdaf362fd1-664x1024.png 664w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/748592bd714745ff98e9aebdaf362fd1-234x360.png 234w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/748592bd714745ff98e9aebdaf362fd1-768x1184.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/748592bd714745ff98e9aebdaf362fd1-996x1536.png 996w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/748592bd714745ff98e9aebdaf362fd1-1329x2048.png 1329w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/748592bd714745ff98e9aebdaf362fd1.png 1684w\" sizes=\"auto, (max-width: 664px) 100vw, 664px\" \/><\/p>\n<h3>\u985e\u4f3c\u6027\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u4f7f\u7528\u3059\u308b\u30e2\u30c7\u30eb<\/h3>\n<p>\u3053\u308c\u307e\u3067\u3001\u985e\u4f3c\u5ea6\u3092\u8a55\u4fa1\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u3001\u5171\u901a\u306e\u7279\u5fb4\u306e\u6570\u3092\u4f7f\u7528\u3057\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\n\u3053\u3053\u3067\u306f\u3001\u985e\u4f3c\u6027\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u4f7f\u7528\u3057\u3066\u985e\u4f3c\u5ea6\u3092\u5b9a\u91cf\u5316\u3059\u308b\u3088\u308a\u4fe1\u983c\u6027\u306e\u3042\u308b\u65b9\u6cd5\u3092\u8003\u3048\u307e\u3057\u3087\u3046\u3002<br \/>\n\u985e\u4f3c\u6027\u30e1\u30c8\u30ea\u30af\u30b9\u306f\u4e00\u822c\u7684\u306a\u30d1\u30fc\u30bd\u30ca\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u306b\u4f7f\u7528\u3055\u308c\u308b\u91cd\u8981\u306a\u69cb\u6210\u8981\u7d20\u3067\u3042\u308a\u3001\u3053\u308c\u3092\u7528\u3044\u30662\u3064\u306e\u30a2\u30a4\u30c6\u30e0\u304c\u3069\u308c\u3060\u3051\u4f3c\u3066\u3044\u308b\u304b\u3092\u5b9a\u91cf\u5316\u3067\u304d\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u306e\u3061\u307b\u3069\u898b\u308b\u3088\u3046\u306b\u30012\u4eba\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u597d\u307f\u306e\u50be\u5411\u304c\u3069\u308c\u3060\u3051\u4f3c\u3066\u3044\u308b\u304b\u3092\u5b9a\u91cf\u5316\u3059\u308b\u306e\u306b\u3082\u7528\u3044\u3089\u308c\u307e\u3059\u3002<\/p>\n<h4>Jaccard \u4fc2\u6570<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/jaccard.png\" alt=\"\" width=\"348\" height=\"138\" class=\"alignnone size-full wp-image-54730\" \/><\/p>\n<p>\u985e\u4f3c\u5ea6\u3092\u91cf\u308b\u6307\u6a19\u3068\u3057\u3066\u826f\u304f\u5229\u7528\u3055\u308c\u308b\u6307\u6a19\u306e1\u3064\u306b\u300cJaccard \u4fc2\u6570\u300d\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nJaccard \u4fc2\u6570\u306f0\u304b\u30891\u307e\u3067\u306e\u6570\u5b57\u3092\u53d6\u308a\u30012\u3064\u306e\u96c6\u5408\uff08=\u4f8b\u3048\u3070\u6620\u753b\u306e\u30b8\u30e3\u30f3\u30eb\u306e\u30ea\u30b9\u30c8\uff09\u304c\u3069\u306e\u7a0b\u5ea6\u985e\u4f3c\u3057\u3066\u3044\u308b\u304b\u3092\u793a\u3057\u307e\u3059\u3002<br \/>\n2\u3064\u306e\u96c6\u5408\u304c\u5168\u304f\u540c\u4e00\u306e\u5834\u5408 Jaccard \u4fc2\u6570\u306f1\u3067\u3059\u30022\u3064\u306e\u96c6\u5408\u304c\u5171\u901a\u306e\u8981\u7d20\u3092\u6301\u305f\u306a\u3044\u5834\u5408\u3001Jaccard \u4fc2\u6570\u306f0\u3067\u3059\u3002<br \/>\nJaccard \u4fc2\u6570\u306f2\u3064\u306e\u96c6\u5408\u306e\u7a4d\u96c6\u5408\u306e\u30b5\u30a4\u30ba\u30922\u3064\u306e\u96c6\u5408\u306e\u548c\u96c6\u5408\u306e\u30b5\u30a4\u30ba\u3067\u5272\u3063\u305f\u3082\u306e\u3067\u3059\u3002<sup><a href=\"#note2\" title=\"\u548c\u96c6\u5408\/\u7a4d\u96c6\u5408\">\u203b2<\/a><\/sup><br \/>\n\u6620\u753b\u306e\u30b8\u30e3\u30f3\u30eb\u306e\u96c6\u5408\u306e Jaccard \u4fc2\u6570\u3092\u8a08\u7b97\u3059\u308b\u3053\u3068\u3067\u30012\u3064\u306e\u6620\u753b\u304c\u3069\u306e\u7a0b\u5ea6\u985e\u4f3c\u3057\u3066\u3044\u308b\u304b\u3092\u5224\u65ad\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6620\u753b\u306e\u30b8\u30e3\u30f3\u30eb\u306e\u96c6\u5408\u306e Jaccard \u4fc2\u6570\u3092\u8a08\u7b97\u3057\u3066\u3001\u3069\u306e\u6620\u753b\u304c\u300eInception\u300f\u3068\u6700\u3082\u985e\u4f3c\u3057\u3066\u3044\u308b\u306e\u304b\u8abf\u3079\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">\nMATCH (m:Movie {title: &quot;Inception&quot;})-[:IN_GENRE]-&gt;(g:Genre)&lt;-[:IN_GENRE]-(other:Movie)&#010;\nWITH m, other, COUNT(g) AS intersection&#010;\nMATCH (m)-[:IN_GENRE]-&gt;(mg:Genre)\nWITH m, other, intersection, COLLECT(mg.name) AS s1&#010;\nMATCH (other)-[:IN_GENRE]-&gt;(og:Genre)\nWITH m, other, intersection, s1, COLLECT(og.name) AS s2&#010;\nWITH m, other, intersection, s1+[x IN s2 WHERE NOT x IN s1] AS union, s1, s2&#010;\nRETURN m.title, other.title, s1, s2, ((1.0*intersection)\/SIZE(union)) AS jaccard ORDER BY jaccard DESC LIMIT 100\n<\/pre>\n<\/p>\n<table>\n<tr>\n<td bgcolor=\"lightblue\">Cypher<\/td>\n<td bgcolor=\"lightblue\">\u8aac\u660e<\/td>\n<\/tr>\n<tr>\n<td>MATCH (m:Movie {title: &quot;Inception&quot;})-[:IN_GENRE]-&gt;(g:Genre)&lt;-[:IN_GENRE]-(other:Movie)<\/td>\n<td>Inception\u3068\u5171\u901a\u306e\u30b8\u30e3\u30f3\u30eb\u3092\u6301\u3064\u6620\u753b\u3092\u53d6\u5f97\u3057\u3001\u5bfe\u8c61\u306e\u6620\u753b\u3068\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>WITH m, other, COUNT(g) AS intersection<\/td>\n<td>\u5171\u901a\u306e\u30b8\u30e3\u30f3\u30eb\u306e\u6570intersection\u3092\u6c42\u3081\u308b<\/td>\n<\/tr>\n<tr>\n<td>MATCH (m)-[:IN_GENRE]-&gt;(mg:Genre)<br \/>\nWITH m, other, intersection, COLLECT(mg.name) AS s1<\/td>\n<td>Inception\u304c\u5c5e\u3059\u308b\u30b8\u30e3\u30f3\u30eb\u306e\u30ea\u30b9\u30c8s1\u3092\u6c42\u3081\u308b<\/td>\n<\/tr>\n<tr>\n<td>MATCH (other)-[:IN_GENRE]-&gt;(og:Genre)<br \/>\nWITH m, other, intersection, s1, COLLECT(og.name) AS s2<\/td>\n<td>\u5bfe\u8c61\u306e\u6620\u753b\u304c\u5c5e\u3059\u308b\u30b8\u30e3\u30f3\u30eb\u306e\u30ea\u30b9\u30c8s2\u3092\u6c42\u3081\u308b<\/td>\n<\/tr>\n<tr>\n<td>WITH m, other, intersection, s1+[x IN s2 WHERE NOT x IN s1] AS union, s1, s2<\/td>\n<td>s1\u306bs2\u306b\u3042\u3063\u3066s1\u306b\u306f\u306a\u3044\u8981\u7d20\u3092\u52a0\u3048\u3066\u548c\u96c6\u5408union\u3092\u4f5c\u308b<\/td>\n<\/tr>\n<tr>\n<td>RETURN m.title, other.title, s1, s2, ((1.0*intersection)\/SIZE(union)) AS jaccard ORDER BY jaccard DESC LIMIT 100<\/td>\n<td>\u6b21\u306e\u8981\u7d20\u3092\u8fd4\u308a\u5024\u3068\u3059\u308b<br \/>\n1. Inception\u306e\u30bf\u30a4\u30c8\u30eb\u3068Inception\u304c\u5c5e\u3059\u308b\u30b8\u30e3\u30f3\u30eb\u306e\u30ea\u30b9\u30c8s1<br \/>\n2. \u5bfe\u8c61\u306e\u6620\u753b\u306e\u30bf\u30a4\u30c8\u30eb\u3068\u5bfe\u8c61\u306e\u6620\u753b\u304c\u5c5e\u3059\u308b\u30b8\u30e3\u30f3\u30eb\u306e\u30ea\u30b9\u30c8s2<br \/>\n3. intersection\u3092union\u306e\u30b5\u30a4\u30ba\u3067\u5272\u308b\u3053\u3068\u306b\u3088\u308a\u5f97\u3089\u308c\u308bjaccard\u4fc2\u6570<br \/>\njaccard\u4fc2\u6570\u306e\u964d\u9806\u306b\u30bd\u30fc\u30c8\u3057\u4e0a\u4f4d100\u4ef6\u3092\u8fd4\u3059<\/td>\n<\/tr>\n<\/table>\n<div class=\"scroll_img\">\n<img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/5969bbe5327274bb14cc5db01611cb53-1024x721.png\" alt=\"\" width=\"1536\" height=\"1082\" class=\"alignnone size-large wp-image-54837\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/5969bbe5327274bb14cc5db01611cb53-1024x721.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/5969bbe5327274bb14cc5db01611cb53-360x254.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/5969bbe5327274bb14cc5db01611cb53-768x541.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/5969bbe5327274bb14cc5db01611cb53-1536x1082.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/5969bbe5327274bb14cc5db01611cb53-2048x1442.png 2048w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/>\n<\/div>\n<p>\u3053\u308c\u3068\u540c\u3058\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\uff08\u30b8\u30e3\u30f3\u30eb\u3001\u4ff3\u512a\u3001\u76e3\u7763\u306a\u3069\u306e\uff09\u5168\u3066\u306e\u6620\u753b\u306e\u7279\u5fb4\u306b\u9069\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">\nMATCH (m:Movie {title: &quot;Inception&quot;})-[:IN_GENRE|ACTED_IN|DIRECTED]-(t)&lt;-[:IN_GENRE|ACTED_IN|DIRECTED]-(other:Movie)&#010;\nWITH m, other, COUNT(t) AS intersection&#010;\nMATCH (m)-[:IN_GENRE|ACTED_IN|DIRECTED]-(mt)\nWITH m, other, intersection, COLLECT(mt.name) AS s1&#010;\nMATCH (other)-[:IN_GENRE|ACTED_IN|DIRECTED]-(ot)\nWITH m, other, intersection, s1, COLLECT(ot.name) AS s2&#010;\nWITH m, other, intersection, s1+[x IN s2 WHERE NOT x IN s1] AS union, s1, s2&#010;\nRETURN m.title, other.title, s1, s2, ((1.0*intersection)\/SIZE(union)) AS jaccard ORDER BY jaccard DESC LIMIT 100\n<\/pre>\n<\/p>\n<table>\n<tr>\n<td bgcolor=\"lightblue\">Cypher<\/td>\n<td bgcolor=\"lightblue\">\u8aac\u660e<\/td>\n<\/tr>\n<tr>\n<td>MATCH (m:Movie {title: &quot;Inception&quot;})-[:IN_GENRE|ACTED_IN|DIRECTED]-(t)&lt;-[:IN_GENRE|ACTED_IN|DIRECTED]-(other:Movie)<\/td>\n<td>Inception\u3068\u5171\u901a\u306e\u5c5e\u6027\uff08\u30b8\u30e3\u30f3\u30eb\u3001\u4ff3\u512a\u3001\u76e3\u7763\uff09\u3092\u6301\u3064\u6620\u753b\u3092\u53d6\u5f97\u3057\u3001\u5bfe\u8c61\u306e\u6620\u753b\u3068\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>WITH m, other, COUNT(t) AS intersection<\/td>\n<td>\u5171\u901a\u306e\u5c5e\u6027\u306e\u6570intersection\u3092\u6c42\u3081\u308b<\/td>\n<\/tr>\n<tr>\n<td>MATCH (m)-[:IN_GENRE|ACTED_IN|DIRECTED]-(mt)<br \/>\nWITH m, other, intersection, COLLECT(mt.name) AS s1<\/td>\n<td>Inception\u304c\u4fdd\u6301\u3059\u308b\u5c5e\u6027\u306e\u30ea\u30b9\u30c8s1\u3092\u6c42\u3081\u308b<\/td>\n<\/tr>\n<tr>\n<td>MATCH (other)-[:IN_GENRE|ACTED_IN|DIRECTED]-(ot)<br \/>\nWITH m, other, intersection, s1, COLLECT(ot.name) AS s2<\/td>\n<td>\u5bfe\u8c61\u306e\u6620\u753b\u304c\u4fdd\u6301\u3059\u308b\u5c5e\u6027\u306e\u30ea\u30b9\u30c8s2\u3092\u6c42\u3081\u308b<\/td>\n<\/tr>\n<tr>\n<td>WITH m, other, intersection, s1+[x IN s2 WHERE NOT x IN s1] AS union, s1, s2<\/td>\n<td>s1\u306bs2\u306b\u3042\u3063\u3066s1\u306b\u306f\u306a\u3044\u8981\u7d20\u3092\u52a0\u3048\u3066\u548c\u96c6\u5408union\u3092\u4f5c\u308b<\/td>\n<\/tr>\n<tr>\n<td>RETURN m.title, other.title, s1, s2, ((1.0*intersection)\/SIZE(union)) AS jaccard ORDER BY jaccard DESC LIMIT 100<\/td>\n<td>\u6b21\u306e\u8981\u7d20\u3092\u8fd4\u308a\u5024\u3068\u3059\u308b<br \/>\n1. Inception\u306e\u30bf\u30a4\u30c8\u30eb\u3068Inception\u304c\u4fdd\u6301\u3059\u308b\u5c5e\u6027\u306e\u30ea\u30b9\u30c8s1<br \/>\n2. \u5bfe\u8c61\u306e\u6620\u753b\u306e\u30bf\u30a4\u30c8\u30eb\u3068\u5bfe\u8c61\u306e\u6620\u753b\u304c\u4fdd\u6301\u3059\u308b\u5c5e\u6027\u306e\u30ea\u30b9\u30c8s2<br \/>\n3. intersection\u3092union\u306e\u30b5\u30a4\u30ba\u3067\u5272\u308b\u3053\u3068\u306b\u3088\u308a\u5f97\u3089\u308c\u308bjaccard\u4fc2\u6570<br \/>\njaccard\u4fc2\u6570\u306e\u964d\u9806\u306b\u30bd\u30fc\u30c8\u3057\u4e0a\u4f4d100\u4ef6\u3092\u8fd4\u3059<\/td>\n<\/tr>\n<\/table>\n<div class=\"scroll_img\">\n<img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/bce5d5f53eb765615cdc7320ce5a085a-1024x520.png\" alt=\"\" width=\"2048\" height=\"1040\" class=\"alignnone size-large wp-image-54843\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/bce5d5f53eb765615cdc7320ce5a085a-1024x520.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/bce5d5f53eb765615cdc7320ce5a085a-360x183.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/bce5d5f53eb765615cdc7320ce5a085a-768x390.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/bce5d5f53eb765615cdc7320ce5a085a-1536x780.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/bce5d5f53eb765615cdc7320ce5a085a-2048x1040.png 2048w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/>\n<\/div>\n<p>\u30b3\u30f3\u30c6\u30f3\u30c4\u30d9\u30fc\u30b9\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u306e\u4f8b\u793a\u306f\u4ee5\u4e0a\u3067\u3059\u3002<br \/>\n\u30b3\u30f3\u30c6\u30f3\u30c4\u30d9\u30fc\u30b9\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u306f\u3001\u30a2\u30a4\u30c6\u30e0\u306e\u5c5e\u6027\u3084\u7279\u5fb4\u3092\u4f7f\u7528\u3057\u3066\u3001\u985e\u4f3c\u306e\u30a2\u30a4\u30c6\u30e0\u3092\u898b\u3064\u3051\u308b\u30a2\u30d7\u30ed\u30fc\u30c1\u3067\u3057\u305f\u3002<\/p>\n<p>\u65e2\u306b\u8ff0\u3079\u305f\u3088\u3046\u306b\u3001\u3082\u3046\u4e00\u3064\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u3068\u3057\u3066\u5354\u8abf\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3068\u8a00\u308f\u308c\u308b\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u5354\u8abf\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u306f\u3001\u4f3c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u306f\u597d\u307f\u306e\u50be\u5411\u3082\u4f3c\u3066\u3044\u308b\u3068\u3044\u3046\u4eee\u5b9a\u306e\u3082\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u3088\u308b\u30a2\u30a4\u30c6\u30e0\u306e\u8a55\u4fa1\u306e\u60c5\u5831\u3092\u5229\u7528\u3057\u3066\u30ec\u30b3\u30e1\u30f3\u30c9\u3092\u884c\u3046\u3082\u306e\u3067\u3059\u3002<\/p>\n<div align=\"center\" style=\"margin-top: 38px;margin-bottom: 36px\">\n\n\t\t<!--HubSpot Call-to-Action Code -->\n\t\t<span class=\"hs-cta-wrapper\" id=\"hs-cta-wrapper-a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1\">\n\t\t<span class=\"hs-cta-node hs-cta-a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1\" id=\"a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1\">\n\t\t<!--[if lte IE 8]>\n\t\t<div id=\"hs-cta-ie-element\"><\/div>\n\t\t<![endif]-->\n\t\t<a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/6168413\/a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1\" >\n\t\t<img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/6168413\/a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1.png\"  alt=\"New call-to-action\"\/>\n\t\t<\/a>\n\t\t<\/span>\n\t\t<script charset=\"utf-8\" src=\"\/\/js.hubspot.com\/cta\/current.js\"><\/script>\n\t\t<script>\n\t\thbspt.cta.load(6168413, 'a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1', {});\n\t\t<\/script>\n\t\t<\/span>\n\t\t<!-- end HubSpot Call-to-Action Code -->\n\t\t\n<\/div>\n<hr id=\"008\" style=\"border-color:#FFFFFF;background-color:#FFFFFF;margin:0px 0px 130px 0px\" noshade>\n<\/hr>\n<h2>\u30b7\u30ca\u30ea\u30aa5: \u5354\u8abf\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/cf2-1024x412.png\" alt=\"\" width=\"1024\" height=\"412\" class=\"alignnone size-large wp-image-54733\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/cf2-1024x412.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/cf2-360x145.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/cf2-768x309.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/cf2-1536x618.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/cf2.png 1904w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u3053\u306e\u30b7\u30ca\u30ea\u30aa\u3067\u4f7f\u7528\u3057\u3066\u3044\u308b\u30c7\u30fc\u30bf\u306b\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u3088\u308b\u6620\u753b\u306e\u8a55\u4fa1\u306e\u30c7\u30fc\u30bf\u3082\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u5354\u8abf\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u306f\u3001<b>\u30a2\u30a4\u30c6\u30e0\u306e\u8a55\u4fa1\u306e\u60c5\u5831\u3092\u5229\u7528\u3057\u3066\u30ec\u30b3\u30e1\u30f3\u30c9\u3092\u884c\u3046<\/b>\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u5354\u8abf\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u306f\u3001\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u306b\u3088\u308a\u884c\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u4e2d\u3067\u4f3c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u63a2\u3059\u3002<\/li>\n<li>\u4f3c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u306f\u597d\u307f\u306e\u50be\u5411\u3082\u4f3c\u3066\u3044\u308b\u3068\u4eee\u5b9a\u3057\u3001\u4f3c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u304c\u597d\u3080\u6620\u753b\u3092\u30ec\u30b3\u30e1\u30f3\u30c9\u3059\u308b\u3002<\/li>\n<\/ol>\n<h3>\u6e96\u5099<\/h3>\n<p>\u30e6\u30fc\u30b6\u30fc\u300cMisty William\u300d\u304c\u884c\u3063\u305f\u3059\u3079\u3066\u306e\u8a55\u4fa1\u3092\u8868\u793a\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">\n\/\/ Show all ratings by Misty Williams\nMATCH (u:User {name: &quot;Misty Williams&quot;})\nMATCH (u)-[r:RATED]-&gt;(m:Movie)\nRETURN *;\n<\/pre>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/c303ae670bc3eaeaeaad18872ef7f8ae-354x360.png\" alt=\"\" width=\"354\" height=\"360\" class=\"alignnone size-medium wp-image-54846\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/c303ae670bc3eaeaeaad18872ef7f8ae-354x360.png 354w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/c303ae670bc3eaeaeaad18872ef7f8ae-1007x1024.png 1007w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/c303ae670bc3eaeaeaad18872ef7f8ae-768x781.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/c303ae670bc3eaeaeaad18872ef7f8ae-1510x1536.png 1510w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/c303ae670bc3eaeaeaad18872ef7f8ae-2013x2048.png 2013w\" sizes=\"auto, (max-width: 354px) 100vw, 354px\" \/><\/p>\n<p>Misty Williams \u304c\u884c\u3063\u305f\u8a55\u4fa1\u306e\u5e73\u5747\u5024\u3092\u6c42\u3081\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">\n\/\/ Show all ratings by Misty Williams\nMATCH (u:User {name: &quot;Misty Williams&quot;})\nMATCH (u)-[r:RATED]-&gt;(m:Movie)\nRETURN avg(r.rating) AS average;\n<\/pre>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/5d82156ec1daf2762efa489011b45f7f-1024x181.png\" alt=\"\" width=\"1024\" height=\"181\" class=\"alignnone size-large wp-image-54848\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/5d82156ec1daf2762efa489011b45f7f-1024x181.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/5d82156ec1daf2762efa489011b45f7f-360x64.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/5d82156ec1daf2762efa489011b45f7f-768x136.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/5d82156ec1daf2762efa489011b45f7f-1536x272.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/5d82156ec1daf2762efa489011b45f7f-2048x363.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Misty Williams \u304c\u5e73\u5747\u3088\u308a\u6c17\u306b\u5165\u3063\u3066\u3044\u308b\u306e\u306f\u3069\u306e\u3088\u3046\u306a\u6620\u753b\u304b\u8abf\u3079\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">\n\/\/ What are the movies that Misty liked more than average?\nMATCH (u:User {name: &quot;Misty Williams&quot;})\nMATCH (u)-[r:RATED]-&gt;(m:Movie)\nWITH u, avg(r.rating) AS average\nMATCH (u)-[r:RATED]-&gt;(m:Movie)\nWHERE r.rating &gt; average\nRETURN m.title AS title, r.rating AS rating;\n<\/pre>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/489b4a12f9decd5879dbf478680962b6-732x1024.png\" alt=\"\" width=\"732\" height=\"1024\" class=\"alignnone size-large wp-image-54851\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/489b4a12f9decd5879dbf478680962b6-732x1024.png 732w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/489b4a12f9decd5879dbf478680962b6-257x360.png 257w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/489b4a12f9decd5879dbf478680962b6-768x1075.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/489b4a12f9decd5879dbf478680962b6-1097x1536.png 1097w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/489b4a12f9decd5879dbf478680962b6-1463x2048.png 1463w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/489b4a12f9decd5879dbf478680962b6.png 1856w\" sizes=\"auto, (max-width: 732px) 100vw, 732px\" \/><\/p>\n<h3>\u30b7\u30f3\u30d7\u30eb\u306a\u5354\u8abf\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0<\/h3>\n<p>\u307e\u305a\u3001\u6b21\u306e\u3088\u3046\u306a\u30b7\u30f3\u30d7\u30eb\u306a\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u8003\u3048\u307e\u3059\u3002<br \/>\n\u3059\u306a\u308f\u3061\u3001\u30e6\u30fc\u30b6\u30fc\u300cCynthia Freeman\u300d\u304c\u3042\u308b\u6620\u753b\u3092\u8a55\u4fa1\u3057\u3066\u3044\u308b\u3068\u304d\u3001\u305d\u306e\u6620\u753b\u3092\u540c\u69d8\u306b\u8a55\u4fa1\u3057\u3066\u3044\u308b\u5225\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u8a55\u4fa1\u3057\u3066\u3044\u308b\u6620\u753b\u306e\u5185\u3001Cynthia Freeman \u304c\u307e\u3060\u8a55\u4fa1\u3057\u3066\u3044\u306a\u3044\u6620\u753b\u3092\u30ec\u30b3\u30e1\u30f3\u30c9\u3057\u307e\u3059\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">\nMATCH (u:User {name: &quot;Cynthia Freeman&quot;})-[:RATED]-&gt;(:Movie)&lt;-[:RATED]-(o:User)\nMATCH (o)-[:RATED]-&gt;(rec:Movie)\nWHERE NOT EXISTS( (u)-[:RATED]-&gt;(rec) )\nRETURN rec.title, rec.year, rec.plot\nLIMIT 25\n<\/pre>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/1832bedaef9e8d6f85aa019bfbf4a9ef-1024x609.png\" alt=\"\" width=\"1024\" height=\"609\" class=\"alignnone size-large wp-image-54854\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/1832bedaef9e8d6f85aa019bfbf4a9ef-1024x609.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/1832bedaef9e8d6f85aa019bfbf4a9ef-360x214.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/1832bedaef9e8d6f85aa019bfbf4a9ef-768x457.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/1832bedaef9e8d6f85aa019bfbf4a9ef-1536x914.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/1832bedaef9e8d6f85aa019bfbf4a9ef-2048x1218.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u8a00\u3046\u307e\u3067\u3082\u306a\u304f\u3001\u3053\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u306f\u5358\u7d14\u3059\u304e\u307e\u3059\u3057\u3001\u3053\u306e\u30af\u30a8\u30ea\u306b\u306f\u591a\u304f\u306e\u554f\u984c\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u4eba\u6c17\u5ea6\u306b\u5fdc\u3058\u305f\u6b63\u898f\u5316\u304c\u3055\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u308a\u3001\u8a55\u4fa1\u5024\u3092\u8003\u616e\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u964d\u306e\u4f8b\u3067\u306f\u3053\u308c\u3089\u306e\u6b20\u70b9\u306b\u3064\u3044\u3066\u6539\u5584\u3092\u884c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u307e\u305a\u3001\u5354\u8abf\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3068\u30b3\u30f3\u30c6\u30f3\u30c4\u30d9\u30fc\u30b9\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u30e6\u30fc\u30b6\u30fc\u304c\u597d\u304d\u306a\u30b8\u30e3\u30f3\u30eb\u306e\u307f\u3092\u8003\u616e\u3059\u308b\u30e2\u30c7\u30eb<\/h3>\n<p>\u591a\u304f\u306e\u30ec\u30b3\u30e1\u30f3\u30c9\u30b7\u30b9\u30c6\u30e0\u306f\u5354\u8abf\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3068\u30b3\u30f3\u30c6\u30f3\u30c4\u30d9\u30fc\u30b9\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u306e\u4e21\u65b9\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n\u4e00\u4f8b\u3068\u3057\u3066\u3001\u6620\u753b\u306e\u30b8\u30e3\u30f3\u30eb\u306e\u60c5\u5831\u3068\u30e6\u30fc\u30b6\u30fc\u306e\u8a55\u4fa1\u5024\u306e\u60c5\u5831\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u30ec\u30b3\u30e1\u30f3\u30c9\u3092\u884c\u3046\u65b9\u6cd5\u3092\u8a66\u307f\u307e\u3059\u3002<br \/>\n\u30e6\u30fc\u30b6\u30fc\u304c\u5e73\u5747\u4ee5\u4e0a\u306e\u8a55\u4fa1\u3092\u3057\u305f\u6620\u753b\u306e\u5c5e\u3059\u308b\u30b8\u30e3\u30f3\u30eb\u306e\u60c5\u5831\u3092\u3082\u3068\u306b\u3001\u6620\u753b\u306e\u304a\u3059\u3059\u3081\u5ea6\u3092\u8a08\u7b97\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">\nMATCH (u:User {name: &quot;Andrew Freeman&quot;})-[r:RATED]-&gt;(m:Movie)\nWITH u, avg(r.rating) AS mean&#010;\nMATCH (u)-[r:RATED]-&gt;(m:Movie)-[:IN_GENRE]-&gt;(g:Genre)\nWHERE r.rating &gt; mean\nWITH u, g, COUNT(*) AS score&#010;\nMATCH (g)&lt;-[:IN_GENRE]-(rec:Movie)\nWHERE NOT EXISTS((u)-[:RATED]-&gt;(rec))&#010;\nRETURN rec.title AS recommendation, rec.year AS year, COLLECT(DISTINCT g.name) AS genres, SUM(score) AS sscore\nORDER BY sscore DESC LIMIT 10\n<\/pre>\n<\/p>\n<table>\n<tr>\n<td bgcolor=\"lightblue\">Cypher<\/td>\n<td bgcolor=\"lightblue\">\u8aac\u660e<\/td>\n<\/tr>\n<tr>\n<td>MATCH (u:User {name: &quot;Andrew Freeman&quot;})-[r:RATED]-&gt;(m:Movie)<br \/>\nWITH u, avg(r.rating) AS mean<\/td>\n<td>Andrew Freeman\u304c\u884c\u3063\u305f\u5168\u8a55\u4fa1\u306e\u5e73\u5747\u5024mean\u3092\u6c42\u3081\u308b<\/td>\n<\/tr>\n<tr>\n<td>MATCH (u)-[r:RATED]-&gt;(m:Movie)-[:IN_GENRE]-&gt;(g:Genre)<br \/>\nWHERE r.rating &gt; mean<br \/>\nWITH u, g, COUNT(*) AS score<\/td>\n<td>Andrew Freeman\u304c\u5e73\u5747\u5024\u4ee5\u4e0a\u306e\u8a55\u4fa1\u3092\u3057\u305f\u6620\u753b\u306e\u5c5e\u3059\u308b\u30b8\u30e3\u30f3\u30eb\u3092\u5168\u3066\u53d6\u5f97\u3057\u3001\u8a55\u4fa1\u5bfe\u8c61\u30b8\u30e3\u30f3\u30eb\u3068\u3059\u308b<br \/>\n\u5404\u8a55\u4fa1\u5bfe\u8c61\u30b8\u30e3\u30f3\u30eb\u306b\u3064\u304d\u3001Andrew Freeman\u304c\u5e73\u5747\u5024\u4ee5\u4e0a\u306e\u8a55\u4fa1\u3092\u3057\u305f\u6620\u753b\u306e\u6570\u3092\u8a55\u4fa1\u5bfe\u8c61\u30b8\u30e3\u30f3\u30eb\u306e\u30b9\u30b3\u30a2\u3068\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>MATCH (g)&lt;-[:IN_GENRE]-(rec:Movie)<br \/>\nWHERE NOT EXISTS((u)-[:RATED]-&gt;(rec))<\/td>\n<td>\u8a55\u4fa1\u5bfe\u8c61\u30b8\u30e3\u30f3\u30eb\u306b\u5c5e\u3059\u308b\u6620\u753b\u306e\u5185\u3001Andrew Freeman\u304c\u307e\u3060\u8a55\u4fa1\u3057\u3066\u3044\u306a\u3044\u3082\u306e\u3092\u30ec\u30b3\u30e1\u30f3\u30c9\u5019\u88dc\u6620\u753b\u3068\u3057\u3066\u6c42\u3081\u308b<\/td>\n<\/tr>\n<tr>\n<td>RETURN rec.title AS recommendation, rec.year AS year, COLLECT(DISTINCT g.name) AS genres, SUM(score) AS sscore<br \/>\nORDER BY sscore DESC LIMIT 10<\/td>\n<td>\u6b21\u306e\u8981\u7d20\u3092\u8fd4\u308a\u5024\u3068\u3059\u308b<br \/>\n1. \u30ec\u30b3\u30e1\u30f3\u30c9\u5019\u88dc\u6620\u753b\u306e\u30bf\u30a4\u30c8\u30eb<br \/>\n2. \u30ec\u30b3\u30e1\u30f3\u30c9\u5019\u88dc\u6620\u753b\u306e\u516c\u958b\u5e74<br \/>\n3. \u30ec\u30b3\u30e1\u30f3\u30c9\u5019\u88dc\u6620\u753b\u306e\u5c5e\u3059\u308b\u8a55\u4fa1\u5bfe\u8c61\u30b8\u30e3\u30f3\u30eb\u306e\u30ea\u30b9\u30c8<br \/>\n4. \u30ec\u30b3\u30e1\u30f3\u30c9\u5019\u88dc\u6620\u753b\u306e\u5c5e\u3059\u308b\u8a55\u4fa1\u5bfe\u8c61\u30b8\u30e3\u30f3\u30eb\u306e\u30b9\u30b3\u30a2\u306e\u5408\u8a08\u5024<\/td>\n<\/tr>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/11130ea36af30c0910d62213022a249e-1024x690.png\" alt=\"\" width=\"1024\" height=\"690\" class=\"alignnone size-large wp-image-54856\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/11130ea36af30c0910d62213022a249e-1024x690.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/11130ea36af30c0910d62213022a249e-360x243.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/11130ea36af30c0910d62213022a249e-768x518.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/11130ea36af30c0910d62213022a249e-1536x1035.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/11130ea36af30c0910d62213022a249e-2048x1380.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u30b8\u30e3\u30f3\u30eb\u306b\u3088\u308b\u6620\u753b\u306e\u985e\u4f3c\u6027\u3068\u30e6\u30fc\u30b6\u30fc\u306e\u8a55\u4fa1\u306e\u50be\u5411\u306e\u4e21\u65b9\u3092\u8003\u616e\u3057\u305f\u30ec\u30b3\u30e1\u30f3\u30c9\u306e\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3057\u305f\u3002<br \/>\n\u3053\u306e\u3088\u3046\u306b\u3001\u8a55\u4fa1\u5024\u306e\u60c5\u5831\u3092\u52a0\u5473\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u5358\u7d14\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u30d9\u30fc\u30b9\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u306e\u307f\u306e\u5834\u5408\u3088\u308a\u3082\u7cbe\u5ea6\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001\u8a55\u4fa1\u5024\u306e\u60c5\u5831\u304b\u3089\u30e6\u30fc\u30b6\u30fc\u306e\u985e\u4f3c\u6027\u3092\u8a08\u7b97\u3059\u308b\u3053\u3068\u306f\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n\u6b21\u306b\u898b\u308b\u3088\u3046\u306b\u3001\u985e\u4f3c\u6027\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u30012\u4eba\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u8a55\u4fa1\u5024\u304b\u3089\u30e6\u30fc\u30b6\u30fc\u304c\u3069\u306e\u7a0b\u5ea6\u985e\u4f3c\u3057\u3066\u3044\u308b\u306e\u304b\u3092\u5b9a\u91cf\u5316\u3057\u3001\u305d\u308c\u3092\u3082\u3068\u306b\u5354\u8abf\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u306b\u3088\u308b\u30ec\u30b3\u30e1\u30f3\u30c9\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u985e\u4f3c\u6027\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u4f7f\u7528\u3059\u308b\u30e2\u30c7\u30eb<\/h3>\n<p>\u985e\u4f3c\u6027\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u30012\u4eba\u306e\u30e6\u30fc\u30b6\u30fc\u3042\u308b\u3044\u306f2\u3064\u306e\u30a2\u30a4\u30c6\u30e0\u304c\u3069\u306e\u7a0b\u5ea6\u985e\u4f3c\u3057\u3066\u3044\u308b\u306e\u304b\u3092\u5b9a\u91cf\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3059\u3067\u306b\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u30d9\u30fc\u30b9\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3067\u306f\u3001Jaccard \u4fc2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002<br \/>\n\u5354\u8abf\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30f3\u30b0\u3067\u306f\u3001\u3069\u306e\u3088\u3046\u306a\u985e\u4f3c\u6027\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u4f7f\u7528\u3059\u308b\u306e\u304c\u9069\u5207\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<h4>Cosine \u985e\u4f3c\u5ea6<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/cosine-1024x291.png\" alt=\"\" width=\"1024\" height=\"291\" class=\"alignnone size-large wp-image-54745\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/cosine-1024x291.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/cosine-360x102.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/cosine-768x218.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/cosine.png 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Jaccard \u4fc2\u6570\u306f\u6620\u753b\u3092\u6bd4\u8f03\u3059\u308b\u5834\u5408\u306b\u5f79\u7acb\u3061\u307e\u3057\u305f\u3002<br \/>\nJaccard \u4fc2\u6570\u306e\u672c\u8cea\u306f2\u3064\u306e\u96c6\u5408\uff08\u30b8\u30e3\u30f3\u30eb\u3001\u4ff3\u512a\u3001\u76e3\u7763\u306a\u3069\u306e\u30b0\u30eb\u30fc\u30d7\uff09\u3092\u6bd4\u8f03\u3059\u308b\u3053\u3068\u3067\u3059\u3002<br \/>\n\u3057\u304b\u3057\u3001\u6620\u753b\u306e\u8a55\u4fa1\u3067\u306f\u3001\u5404\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7\u306e\u91cd\u307f\u3001\u3059\u306a\u308f\u3061\u8a55\u4fa1\u5024\u3092\u8003\u616e\u306b\u5165\u308c\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n2\u4eba\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u8a55\u4fa1\u5024\u306e Cosine \u985e\u4f3c\u5ea6\u306b\u3088\u3063\u3066\u3001\u6620\u753b\u306b\u5bfe\u3059\u308b\u597d\u307f\u306e\u985e\u4f3c\u5ea6\u3092\u6c42\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u9ad8\u3044 Cosine \u985e\u4f3c\u5ea6\u3092\u6301\u3064\u30e6\u30fc\u30b6\u30fc\u540c\u58eb\u306f\u597d\u307f\u306e\u50be\u5411\u304c\u4f3c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Cosine \u985e\u4f3c\u5ea6\u306b\u3088\u3063\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u300cCynthia Freeman\u300d\u3068\u6700\u3082\u597d\u307f\u306e\u50be\u5411\u304c\u4f3c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u898b\u3064\u3051\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">\n\/\/ Most similar users using Cosine similarity\nMATCH (p1:User {name: &quot;Cynthia Freeman&quot;})-[x:RATED]-&gt;(m:Movie)&lt;-[y:RATED]-(p2:User)&#010;\nWITH COUNT(m) AS numbermovies, SUM(x.rating * y.rating) AS xyDotProduct,\nSQRT(REDUCE(xDot = 0.0, a IN COLLECT(x.rating) | xDot + a^2)) AS xLength,\nSQRT(REDUCE(yDot = 0.0, b IN COLLECT(y.rating) | yDot + b^2)) AS yLength,\np1, p2 WHERE numbermovies &gt; 10&#010;\nRETURN p1.name, p2.name, xyDotProduct \/ (xLength * yLength) AS sim\nORDER BY sim DESC\nLIMIT 100\n<\/pre>\n<\/p>\n<table>\n<tr>\n<td bgcolor=\"lightblue\">Cypher<\/td>\n<td bgcolor=\"lightblue\">\u8aac\u660e<\/td>\n<\/tr>\n<tr>\n<td>MATCH (p1:User {name: &quot;Cynthia Freeman&quot;})-[x:RATED]-&gt;(m:Movie)&lt;-[y:RATED]-(p2:User)<\/td>\n<td>Cynthia Freeman\u3068\u5bfe\u8c61\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u540c\u3058\u6620\u753b\u3092\u8a55\u4fa1\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u3092\u53d6\u5f97\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>WITH COUNT(m) AS numbermovies, SUM(x.rating * y.rating) AS xyDotProduct,<br \/>\nSQRT(REDUCE(xDot = 0.0, a IN COLLECT(x.rating) | xDot + a^2)) AS xLength,<br \/>\nSQRT(REDUCE(yDot = 0.0, b IN COLLECT(y.rating) | yDot + b^2)) AS yLength,<br \/>\np1, p2 WHERE numbermovies &gt; 10<\/td>\n<td>\u5171\u901a\u306e\u30b8\u30e3\u30f3\u30eb\u306e\u6570intersection\u3092\u6c42\u3081\u308b<br \/>\n1. \u30b1\u30fc\u30b9\u306b\u5408\u81f4\u3059\u308b\u6620\u753b\u306e\u6570:numbermovies<br \/>\n2. Cynthia Freeman\u306e\u8a55\u4fa1\u5024\u3068\u5bfe\u8c61\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u8a55\u4fa1\u5024\u306e\u5185\u7a4d:xyDotProduct<br \/>\n3. Cynthia Freeman\u306e\u8a55\u4fa1\u5024\u306e\u7d76\u5bfe\u5024:xLength<br \/>\n4. \u5bfe\u8c61\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u8a55\u4fa1\u5024\u306e\u7d76\u5bfe\u5024:yLength<br \/>\n\u305f\u3060\u3057\u3001 numbermovies &gt; 10 \u3067\u3042\u308b\u30b1\u30fc\u30b9\u306b\u7d5e\u308b<\/td>\n<\/tr>\n<tr>\n<td>RETURN p1.name, p2.name, xyDotProduct \/ (xLength * yLength) AS sim<br \/>\nORDER BY sim DESC<br \/>\nLIMIT 100<\/td>\n<td>\u6b21\u306e\u8981\u7d20\u3092\u8fd4\u308a\u5024\u3068\u3059\u308b<br \/>\n1. Cynthia Freeman\u306e\u540d\u524d<br \/>\n2. \u5bfe\u8c61\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u540d\u524d<br \/>\n3. Cosine\u985e\u4f3c\u5ea6 sim = xyDotProduct \/ (xLength * yLength)<br \/>\nCosine\u985e\u4f3c\u5ea6\u306e\u964d\u9806\u306b\u30bd\u30fc\u30c8\u3057\u4e0a\u4f4d100\u4ef6\u3092\u8fd4\u3059<\/td>\n<\/tr>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/7f71017cb0380c1f7ad0b9fe925438c2-1024x677.png\" alt=\"\" width=\"1024\" height=\"677\" class=\"alignnone size-large wp-image-54858\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/7f71017cb0380c1f7ad0b9fe925438c2-1024x677.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/7f71017cb0380c1f7ad0b9fe925438c2-360x238.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/7f71017cb0380c1f7ad0b9fe925438c2-768x508.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/7f71017cb0380c1f7ad0b9fe925438c2-1536x1016.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/7f71017cb0380c1f7ad0b9fe925438c2-2048x1355.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Neo4j GDS \u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3042\u308b Cosine \u985e\u4f3c\u5ea6\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u4f7f\u7528\u3057\u3066 Cosine \u985e\u4f3c\u5ea6\u3092\u8a08\u7b97\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<br \/>\nCosine \u985e\u4f3c\u5ea6\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001Cynthia Freeman \u3068\u6700\u3082\u597d\u307f\u306e\u50be\u5411\u304c\u4f3c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u898b\u3064\u3051\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">\nMATCH (p1:User {name: &quot;Cynthia Freeman&quot;})-[x:RATED]-&gt;(movie)&lt;-[x2:RATED]-(p2:User)\nWHERE p2 &lt;&gt; p1&#010;\nWITH p1, p2, collect(x.rating) AS p1Ratings, collect(x2.rating) AS p2Ratings\nWHERE size(p1Ratings) &gt; 10&#010;\nRETURN p1.name AS from,\n       p2.name AS to,\n       gds.similarity.cosine(p1Ratings, p2Ratings) AS similarity\nORDER BY similarity DESC\n<\/pre>\n<\/p>\n<table>\n<tr>\n<td bgcolor=\"lightblue\">Cypher<\/td>\n<td bgcolor=\"lightblue\">\u8aac\u660e<\/td>\n<\/tr>\n<tr>\n<td>MATCH (p1:User {name: &quot;Cynthia Freeman&quot;})-[x:RATED]-&gt;(movie)&lt;-[x2:RATED]-(p2:User)<br \/>\nWHERE p2 &lt;&gt; p1<\/td>\n<td>Cynthia Freeman\u3068\u5bfe\u8c61\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u540c\u3058\u6620\u753b\u3092\u8a55\u4fa1\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u3092\u53d6\u5f97\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>WITH p1, p2, collect(x.rating) AS p1Ratings, collect(x2.rating) AS p2Ratings<br \/>\nWHERE size(p1Ratings) &gt; 10<\/td>\n<td>Cynthia Freeman\u306e\u8a55\u4fa1\u5024p1Ratings\u3068\u5bfe\u8c61\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u8a55\u4fa1\u5024p2Ratings\u3092\u5ba3\u8a00\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>RETURN p1.name AS from,<br \/>\np2.name AS to,<br \/>\ngds.similarity.cosine(p1Ratings, p2Ratings) AS similarity<\/td>\n<td>GDS\u306e\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066p1Ratings\u3068p2Ratings\u306eCosine\u985e\u4f3c\u5ea6\u3092\u8a08\u7b97\u3057\u3001\u8fd4\u308a\u5024\u3068\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>ORDER BY similarity DESC<\/td>\n<td>Cosine\u985e\u4f3c\u5ea6\u306e\u964d\u9806\u306b\u30bd\u30fc\u30c8\u3057\u3066\u8fd4\u3059<\/td>\n<\/tr>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/7cdb2393ac25b5dc624638374675dc14-1024x677.png\" alt=\"\" width=\"1024\" height=\"677\" class=\"alignnone size-large wp-image-54861\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/7cdb2393ac25b5dc624638374675dc14-1024x677.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/7cdb2393ac25b5dc624638374675dc14-360x238.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/7cdb2393ac25b5dc624638374675dc14-768x508.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/7cdb2393ac25b5dc624638374675dc14-1536x1016.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/7cdb2393ac25b5dc624638374675dc14-2048x1355.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h4>Pearson \u985e\u4f3c\u5ea6<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/pearson.png\" alt=\"\" width=\"592\" height=\"198\" class=\"alignnone size-full wp-image-54755\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/pearson.png 592w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/pearson-360x120.png 360w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/p>\n<p>Cosine \u985e\u4f3c\u5ea6\u306e\u4ee3\u308f\u308a\u306b\u3001Pearson \u985e\u4f3c\u5ea6\uff08\u3042\u308b\u3044\u306f Pearson \u76f8\u95a2\u4fc2\u6570\uff09\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<br \/>\nCosine \u985e\u4f3c\u5ea6\u306f\u30e6\u30fc\u30b6\u30fc\u3054\u3068\u306e\u5e73\u5747\u8a55\u4fa1\u5024\u306e\u9055\u3044\u3092\u8003\u616e\u3057\u307e\u305b\u3093\u304c\u3001Pearson \u985e\u4f3c\u5ea6\u306f\u5e73\u5747\u8a55\u4fa1\u5024\u306e\u9055\u3044\u3092\u8003\u616e\u3057\u307e\u3059\u3002<br \/>\n\u3042\u308b\u30e6\u30fc\u30b6\u30fc\u304c\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u3088\u308a\u3082\u9ad8\u3044\u8a55\u4fa1\u3092\u3057\u304c\u3061\u3067\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u306f\u3088\u304f\u3042\u308a\u307e\u3059\u304c\u3001Pearson \u985e\u4f3c\u5ea6\u306f\u5e73\u5747\u8a55\u4fa1\u5024\u306e\u9055\u3044\u3092\u8003\u616e\u3057\u3066\u3001\u3088\u308a\u9069\u5207\u306a\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>Pearson \u985e\u4f3c\u5ea6\u306b\u3088\u3063\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u300cCynthia Freeman\u300d\u3068\u6700\u3082\u597d\u307f\u306e\u50be\u5411\u304c\u4f3c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u898b\u3064\u3051\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">\nMATCH (u1:User {name: &quot;Cynthia Freeman&quot;})-[r:RATED]-&gt;(m:Movie)\nWITH u1, avg(r.rating) AS u1_mean&#010;\nMATCH (u1)-[r1:RATED]-&gt;(m:Movie)&lt;-[r2:RATED]-(u2)\nWITH u1, u1_mean, u2, COLLECT({r1: r1, r2: r2}) AS ratings WHERE size(ratings) &gt; 10&#010;\nMATCH (u2)-[r:RATED]-&gt;(m:Movie)\nWITH u1, u1_mean, u2, avg(r.rating) AS u2_mean, ratings&#010;\nUNWIND ratings AS r\nWITH sum( (r.r1.rating-u1_mean) * (r.r2.rating-u2_mean) ) AS nom,\n     sqrt( sum( (r.r1.rating - u1_mean)^2) * sum( (r.r2.rating - u2_mean) ^2)) AS denom,\n     u1, u2 WHERE denom &lt;&gt; 0&#010;\nRETURN u1.name, u2.name, nom\/denom AS pearson\nORDER BY pearson DESC LIMIT 100\n<\/pre>\n<\/p>\n<table>\n<tr>\n<td bgcolor=\"lightblue\">Cypher<\/td>\n<td bgcolor=\"lightblue\">\u8aac\u660e<\/td>\n<\/tr>\n<tr>\n<td>MATCH (u1:User {name: &quot;Cynthia Freeman&quot;})-[r:RATED]-&gt;(m:Movie)<br \/>\nWITH u1, avg(r.rating) AS u1_mean<\/td>\n<td>Cynthia Freeman\u306e\u8a55\u4fa1\u306e\u5e73\u5747\u5024u1_mean\u3092\u5ba3\u8a00\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>MATCH (u1)-[r1:RATED]-&gt;(m:Movie)&lt;-[r2:RATED]-(u2)<br \/>\nWITH u1, u1_mean, u2, COLLECT({r1: r1, r2: r2}) AS ratings WHERE size(ratings) &gt; 10<\/td>\n<td>Cynthia Freeman\u3068\u5bfe\u8c61\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u540c\u3058\u6620\u753b\u3092\u8a55\u4fa1\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u3092\u53d6\u5f97\u3057\u3001\u305d\u308c\u305e\u308c\u306e\u8a55\u4fa1\u5024ratings\u3092\u5ba3\u8a00\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>MATCH (u2)-[r:RATED]-&gt;(m:Movie)<br \/>\nWITH u1, u1_mean, u2, avg(r.rating) AS u2_mean, ratings<\/td>\n<td>\u5bfe\u8c61\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u8a55\u4fa1\u306e\u5e73\u5747\u5024u2_mean\u3092\u5ba3\u8a00\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>UNWIND ratings AS r<br \/>\nWITH sum( (r.r1.rating-u1_mean) * (r.r2.rating-u2_mean) ) AS nom,<br \/>\nsqrt( sum( (r.r1.rating - u1_mean)^2) * sum( (r.r2.rating - u2_mean) ^2)) AS denom,<br \/>\nu1, u2 WHERE denom &lt;&gt; 0<\/td>\n<td>\u8a55\u4fa1\u5024ratings\u3068\u5e73\u5747\u5024u1_mean,u2_mean\u3092\u7528\u3044\u3066\u3001Pearson\u985e\u4f3c\u5ea6\u306e\u8981\u7d20nom\u3068denom\u3092\u8a08\u7b97\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>RETURN u1.name, u2.name, nom\/denom AS pearson<br \/>\nORDER BY pearson DESC LIMIT 100<\/td>\n<td>Pearson\u985e\u4f3c\u5ea6 pearson = nom\/denom \u3092\u8fd4\u308a\u5024\u3068\u3057\u3066\u3001Pearson\u985e\u4f3c\u5ea6\u306e\u964d\u9806\u306b\u30bd\u30fc\u30c8\u3057\u4e0a\u4f4d100\u4ef6\u3092\u8fd4\u3059<\/td>\n<\/tr>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/04fb567e57bdc85002bc1feb617b8a75-1024x677.png\" alt=\"\" width=\"1024\" height=\"677\" class=\"alignnone size-large wp-image-54863\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/04fb567e57bdc85002bc1feb617b8a75-1024x677.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/04fb567e57bdc85002bc1feb617b8a75-360x238.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/04fb567e57bdc85002bc1feb617b8a75-768x508.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/04fb567e57bdc85002bc1feb617b8a75-1536x1016.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/04fb567e57bdc85002bc1feb617b8a75-2048x1355.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Neo4j GDS \u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3042\u308b Pearson \u985e\u4f3c\u5ea6\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067 Pearson \u985e\u4f3c\u5ea6\u3092\u8a08\u7b97\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<br \/>\nPearson \u985e\u4f3c\u5ea6\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001Cynthia Freeman \u3068\u6700\u3082\u597d\u307f\u306e\u50be\u5411\u304c\u4f3c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u898b\u3064\u3051\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">\nMATCH (p1:User {name: &quot;Cynthia Freeman&quot;})-[x:RATED]-&gt;(movie)&lt;-[x2:RATED]-(p2:User)\nWHERE p2 &lt;&gt; p1&#010;\nWITH p1, p2, collect(x.rating) AS p1Ratings, collect(x2.rating) AS p2Ratings\nWHERE size(p1Ratings) &gt; 10&#010;\nRETURN p1.name AS from,\n       p2.name AS to,\n       gds.similarity.pearson(p1Ratings, p2Ratings) AS similarity\nORDER BY similarity DESC\n<\/pre>\n<\/p>\n<table>\n<tr>\n<td bgcolor=\"lightblue\">Cypher<\/td>\n<td bgcolor=\"lightblue\">\u8aac\u660e<\/td>\n<\/tr>\n<tr>\n<td>MATCH (p1:User {name: &quot;Cynthia Freeman&quot;})-[x:RATED]-&gt;(movie)&lt;-[x2:RATED]-(p2:User)<br \/>\nWHERE p2 &lt;&gt; p1<\/td>\n<td>Cynthia Freeman\u3068\u5bfe\u8c61\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u540c\u3058\u6620\u753b\u3092\u8a55\u4fa1\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u3092\u53d6\u5f97\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>WITH p1, p2, collect(x.rating) AS p1Ratings, collect(x2.rating) AS p2Ratings<br \/>\nWHERE size(p1Ratings) &gt; 10<\/td>\n<td>Cynthia Freeman\u306e\u8a55\u4fa1\u5024p1Ratings\u3068\u5bfe\u8c61\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u8a55\u4fa1\u5024p2Ratings\u3092\u5ba3\u8a00\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>RETURN p1.name AS from,<br \/>\np2.name AS to,<br \/>\ngds.similarity.pearson(p1Ratings, p2Ratings) AS similarity<\/td>\n<td>GDS\u306e\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066p1Ratings\u3068p2Ratings\u306ePearson\u985e\u4f3c\u5ea6\u3092\u8a08\u7b97\u3057\u3001\u8fd4\u308a\u5024\u3068\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>ORDER BY similarity DESC<\/td>\n<td>Pearson\u985e\u4f3c\u5ea6\u306e\u964d\u9806\u306b\u30bd\u30fc\u30c8\u3057\u3066\u8fd4\u3059<\/td>\n<\/tr>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/ef1cd79d304d310fb727f2cf094bbe61-1024x677.png\" alt=\"\" width=\"1024\" height=\"677\" class=\"alignnone size-large wp-image-54865\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/ef1cd79d304d310fb727f2cf094bbe61-1024x677.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/ef1cd79d304d310fb727f2cf094bbe61-360x238.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/ef1cd79d304d310fb727f2cf094bbe61-768x508.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/ef1cd79d304d310fb727f2cf094bbe61-1536x1016.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/ef1cd79d304d310fb727f2cf094bbe61-2048x1355.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h3>\u8fd1\u508d\u63a2\u7d22(k\u8fd1\u508d\u6cd5)\u306b\u57fa\u3065\u304f\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3<\/h3>\n<p>\u3053\u308c\u307e\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u597d\u307f\u306e\u50be\u5411\u306b\u57fa\u3065\u3044\u3066\u4f3c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u691c\u7d22\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\n\u6700\u5f8c\u306b\u3001\u5bfe\u8c61\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u6700\u3082\u4f3c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fck\u4eba\u306b\u3069\u306e\u5546\u54c1\u3092\u30ec\u30b3\u30e1\u30f3\u30c9\u3059\u3079\u304d\u304b\u6295\u7968\u3057\u3066\u6c7a\u3081\u3066\u3082\u3089\u3046\u65b9\u6cd5\uff08k\u8fd1\u508d\u6cd5\uff09\u3092\u898b\u307e\u3059\u3002<\/p>\n<p>\u7c21\u5358\u306b\u8a00\u3046\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u554f\u3044\u306b\u7b54\u3048\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u300c\u6620\u753b\u306e\u597d\u307f\u304c\u79c1\u306b\u6700\u3082\u4f3c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u309210\u4eba\u3042\u3052\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u5f7c\u3089\u304c\u9ad8\u3044\u8a55\u4fa1\u3092\u3057\u3066\u3044\u308b\u6620\u753b\u3067\u79c1\u304c\u307e\u3060\u89b3\u3066\u3044\u306a\u3044\u3082\u306e\u306f\u3042\u308a\u307e\u3059\u304b\uff1f\u300d<\/p>\n<h4>Pearson \u985e\u4f3c\u5ea6\u3092\u4f7f\u7528\u3057\u305fk\u8fd1\u508d\u6cd5\u306b\u3088\u308b\u6620\u753b\u306e\u30ec\u30b3\u30e1\u30f3\u30c9<\/h4>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">\nMATCH (u1:User {name: &quot;Cynthia Freeman&quot;})-[r:RATED]-&gt;(m:Movie)\nWITH u1, avg(r.rating) AS u1_mean&#010;\nMATCH (u1)-[r1:RATED]-&gt;(m:Movie)&lt;-[r2:RATED]-(u2)\nWITH u1, u1_mean, u2, COLLECT({r1: r1, r2: r2}) AS ratings WHERE size(ratings) &gt; 10&#010;\nMATCH (u2)-[r:RATED]-&gt;(m:Movie)\nWITH u1, u1_mean, u2, avg(r.rating) AS u2_mean, ratings&#010;\nUNWIND ratings AS r\nWITH sum( (r.r1.rating-u1_mean) * (r.r2.rating-u2_mean) ) AS nom,\n     sqrt( sum( (r.r1.rating - u1_mean)^2) * sum( (r.r2.rating - u2_mean) ^2)) AS denom,\n     u1, u2 WHERE denom &lt;&gt; 0&#010;\nWITH u1, u2, nom\/denom AS pearson\nORDER BY pearson DESC LIMIT 10&#010;\nMATCH (u2)-[r:RATED]-&gt;(m:Movie) WHERE NOT EXISTS( (u1)-[:RATED]-&gt;(m) )&#010;\nRETURN m.title, SUM(pearson * r.rating) AS score\nORDER BY score DESC LIMIT 25\n<\/pre>\n<\/p>\n<table>\n<tr>\n<td bgcolor=\"lightblue\">Cypher<\/td>\n<td bgcolor=\"lightblue\">\u8aac\u660e<\/td>\n<\/tr>\n<tr>\n<td>MATCH (u1:User {name: &quot;Cynthia Freeman&quot;})-[r:RATED]-&gt;(m:Movie)<br \/>\nWITH u1, avg(r.rating) AS u1_mean<\/td>\n<td>Cynthia Freeman\u306e\u8a55\u4fa1\u306e\u5e73\u5747\u5024u1_mean\u3092\u5ba3\u8a00\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>MATCH (u1)-[r1:RATED]-&gt;(m:Movie)&lt;-[r2:RATED]-(u2)<br \/>\nWITH u1, u1_mean, u2, COLLECT({r1: r1, r2: r2}) AS ratings WHERE size(ratings) &gt; 10<\/td>\n<td>Cynthia Freeman\u3068\u5bfe\u8c61\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u540c\u3058\u6620\u753b\u3092\u8a55\u4fa1\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u3092\u53d6\u5f97\u3057\u3001\u305d\u308c\u305e\u308c\u306e\u8a55\u4fa1\u5024ratings\u3092\u5ba3\u8a00\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>MATCH (u2)-[r:RATED]-&gt;(m:Movie)<br \/>\nWITH u1, u1_mean, u2, avg(r.rating) AS u2_mean, ratings<\/td>\n<td>\u5bfe\u8c61\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u8a55\u4fa1\u306e\u5e73\u5747\u5024u2_mean\u3092\u5ba3\u8a00\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>UNWIND ratings AS r<br \/>\nWITH sum( (r.r1.rating-u1_mean) * (r.r2.rating-u2_mean) ) AS nom,<br \/>\nsqrt( sum( (r.r1.rating - u1_mean)^2) * sum( (r.r2.rating - u2_mean) ^2)) AS denom,<br \/>\nu1, u2 WHERE denom &lt;&gt; 0<\/td>\n<td>\u8a55\u4fa1\u5024ratings\u3068\u5e73\u5747\u5024u1_mean,u2_mean\u3092\u7528\u3044\u3066\u3001Pearson\u985e\u4f3c\u5ea6\u306e\u8981\u7d20nom\u3068denom\u3092\u8a08\u7b97\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>WITH u1, u2, nom\/denom AS pearson<br \/>\nORDER BY pearson DESC LIMIT 10<\/td>\n<td>Pearson\u985e\u4f3c\u5ea6 pearson = nom\/denom \u3092\u5ba3\u8a00\u3057\u3001Pearson\u985e\u4f3c\u5ea6\u306e\u964d\u9806\u306b\u30bd\u30fc\u30c8\u3057\u4e0a\u4f4d10\u4ef6\u3092\u53d6\u5f97\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>MATCH (u2)-[r:RATED]-&gt;(m:Movie) WHERE NOT EXISTS( (u1)-[:RATED]-&gt;(m) )<\/td>\n<td>\u4e0a\u4f4d10\u4ef6\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u8a55\u4fa1\u6e08\u307f\u3067Cynthia Freeman\u304c\u672a\u8a55\u4fa1\u306e\u6620\u753b\u3092\u53d6\u5f97\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>RETURN m.title, SUM(pearson * r.rating) AS score<\/td>\n<td>\u6b21\u306e\u8981\u7d20\u3092\u8fd4\u308a\u5024\u3068\u3059\u308b<br \/>\n1. \u53d6\u5f97\u3057\u305f\u6620\u753b\u306e\u30bf\u30a4\u30c8\u30eb<br \/>\n2. \u4e0a\u4f4d10\u4ef6\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u53d6\u5f97\u3057\u305f\u6620\u753b\u306b\u5bfe\u3059\u308b\u8a55\u4fa1\u5024\u3068pearson\u306e\u7a4d\u306e\u5408\u8a08\uff08\u6620\u753b\u306e\u30b9\u30b3\u30a2\uff09<\/td>\n<\/tr>\n<tr>\n<td>ORDER BY score DESC LIMIT 25<\/td>\n<td>\u6620\u753b\u306e\u30b9\u30b3\u30a2\u306e\u964d\u9806\u306b\u30bd\u30fc\u30c8\u3057\u4e0a\u4f4d25\u4ef6\u3092\u8fd4\u3059<\/td>\n<\/tr>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/97bd4efce9020763cc9829c1e474e2f0-683x1024.png\" alt=\"\" width=\"683\" height=\"1024\" class=\"alignnone size-large wp-image-54867\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/97bd4efce9020763cc9829c1e474e2f0-683x1024.png 683w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/97bd4efce9020763cc9829c1e474e2f0-240x360.png 240w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/97bd4efce9020763cc9829c1e474e2f0-768x1152.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/97bd4efce9020763cc9829c1e474e2f0-1024x1536.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/97bd4efce9020763cc9829c1e474e2f0-1365x2048.png 1365w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/97bd4efce9020763cc9829c1e474e2f0.png 1732w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/p>\n<hr id=\"009\" style=\"border-color:#FFFFFF;background-color:#FFFFFF;margin:0px 0px 130px 0px\" noshade>\n<\/hr>\n<h2>\u3055\u3089\u306b\u5b66\u3093\u3067\u307f\u305f\u3044\u65b9\u3078 - \u30a8\u30af\u30b5\u30b5\u30a4\u30ba\u96c6<\/h2>\n<p><b>Exercise.1 \u6642\u9593\u7684\u8981\u7d20<\/b><br \/>\n\u597d\u307f\u306e\u50be\u5411\u304c\u6642\u9593\u3068\u5171\u306b\u5909\u5316\u3059\u308b\u3053\u3068\u3092\u8003\u616e\u3057\u3001\u6700\u8fd1\u306e\u6620\u753b\u306e\u8a55\u4fa1\u3092\u4f7f\u7528\u3057\u3066\u3001\u9069\u5207\u306a\u30ec\u30b3\u30e1\u30f3\u30c9\u3092\u884c\u3046\u3088\u3046\u306b\u30e2\u30c7\u30eb\u3092\u6539\u826f\u3057\u307e\u3057\u3087\u3046\u3002\u8a55\u4fa1\u6642\u306e\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u7528\u3044\u307e\u3059\u3002<\/p>\n<p><b>Exercise.2 \u30ad\u30fc\u30ef\u30fc\u30c9\u62bd\u51fa<\/b><br \/>\n\u5404\u6620\u753b\u306e\u30d7\u30ed\u30c3\u30c8\u306e\u8aac\u660e\u6587\u304b\u3089\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u62bd\u51fa\u3057\u3066\u3001\u6620\u753b\u306e\u7279\u5fb4\u3092\u8003\u616e\u3057\u305f\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><b>Exercise.3 \u30dd\u30b9\u30bf\u30fc\u3092\u4f7f\u7528\u3057\u305f\u753b\u50cf\u8a8d\u8b58<\/b><br \/>\n\u5404\u6620\u753b\u306e\u30dd\u30b9\u30bf\u30fc\u753b\u50cf\u3092\u7528\u3044\u3066\u3001\u30ec\u30b3\u30e1\u30f3\u30c9\u30b7\u30b9\u30c6\u30e0\u3092\u5f37\u5316\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u753b\u50cf\u8a8d\u8b58\u3068\u30bf\u30b0\u3065\u3051\u3092\u884c\u3046\u30d5\u30ea\u30fc\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3084API\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<hr id=\"010\" style=\"border-color:#FFFFFF;background-color:#FFFFFF;margin:0px 0px 130px 0px\" noshade>\n<\/hr>\n<h2>\u611f\u60f3<\/h2>\n<p>\u5f93\u6765\u306e RDB \u3068 Python \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u7d44\u307f\u5408\u308f\u305b\u306a\u3069\u3067\u5b9f\u88c5\u3059\u308b\u3068\u9577\u5927\u306a\u30b3\u30fc\u30c9\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u30ec\u30b3\u30e1\u30f3\u30c9\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304c\u3001Neo4j \u3092\u4f7f\u7528\u3059\u308b\u3068\u30b3\u30f3\u30d1\u30af\u30c8\u306b\u66f8\u3051\u307e\u3059\u3057\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3082\u6539\u5584\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306f\u3001Neo4j \u304c\u30c7\u30fc\u30bf\u306e\u95a2\u9023\u6027\u3092 RDB \u3068\u6bd4\u8f03\u3057\u3066\u3088\u308a\u4eba\u9593\u306e\u767a\u60f3\u306b\u8fd1\u3044\u5f62\u3067\u683c\u7d0d\u3059\u308b\u305f\u3081\u3067\u3059\u3002<br \/>\n\u5f93\u6765\u306f\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30ea\u30bd\u30fc\u30b9\u306e\u5236\u7d04\u3082\u3042\u308a\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3044\u3048\u3070 RDB \u3057\u304b\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u4e16\u306e\u4e2d\u306b\u5b58\u5728\u3059\u308b\u30c7\u30fc\u30bf\u306f\u5143\u6765\u8868\u5f62\u5f0f\u3068\u3044\u3046\u3088\u308a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u72b6\u306b\u306a\u3063\u3066\u3044\u308b\u3082\u306e\u304c\u6570\u591a\u304f\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3067\u3059\u304b\u3089\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u72b6\u306e\u30c7\u30fc\u30bf\u5f62\u5f0f\u3092\u81ea\u7136\u306b\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u30b0\u30e9\u30d5\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u3001\u30c7\u30fc\u30bf\u3092\u672c\u6765\u306e\u5f62\u3067\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u6280\u8853\u3067\u3042\u308a\u3001\u6f5c\u5728\u7684\u306a\u53ef\u80fd\u6027\u3092\u591a\u304f\u542b\u3093\u3067\u3044\u308b\u3068\u611f\u3058\u307e\u3059\u3002<\/p>\n<hr>\n<p>\n<small id=\"note1\"><a href=\"#003\">\u203b1<\/a>index-free adjacency \u53c2\u8003\u8cc7\u6599 <a href=\"https:\/\/neo4j.com\/blog\/16-things-to-consider-when-selecting-the-right-graph-database\/\" target=\"_target\" rel=\"noopener\">1<\/a>, <a href=\"https:\/\/dmccreary.medium.com\/how-to-explain-index-free-adjacency-to-your-manager-1a8e68ec664a\" target=\"_target\" rel=\"noopener\">2<\/a>, <a href=\"https:\/\/the.igreque.info\/posts\/2014-06-08-neo4j.html\" target=\"_target\" rel=\"noopener\">3<\/a>, <a href=\"https:\/\/thomasvilhena.com\/2019\/08\/index-free-adjacency\" target=\"_target\" rel=\"noopener\">4<\/a><\/small><br \/>\n<small id=\"note2\"><a href=\"#007\">\u203b2<\/a>\u96c6\u5408A\u3068\u96c6\u5408B\u306e\u548c\u96c6\u5408\u3068\u306f\u3001A\u3068B\u306e\u3044\u305a\u308c\u304b\u3082\u3057\u304f\u306f\u4e21\u65b9\u306b\u5c5e\u3059\u308b\u8981\u7d20\u304b\u3089\u306a\u308b\u96c6\u5408\u306e\u3053\u3068\u3002\u96c6\u5408A\u3068\u96c6\u5408B\u306e\u7a4d\u96c6\u5408\u3068\u306f\u3001A\u3068B\u306e\u4e21\u65b9\u306b\u5c5e\u3059\u308b\u8981\u7d20\u304b\u3089\u306a\u308b\u96c6\u5408\u306e\u3053\u3068\u3002<\/small>\n<\/p>\n<div align=\"center\" style=\"margin-top: 38px;margin-bottom: 36px\">\n\n\t\t<!--HubSpot Call-to-Action Code -->\n\t\t<span class=\"hs-cta-wrapper\" id=\"hs-cta-wrapper-a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1\">\n\t\t<span class=\"hs-cta-node hs-cta-a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1\" id=\"a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1\">\n\t\t<!--[if lte IE 8]>\n\t\t<div id=\"hs-cta-ie-element\"><\/div>\n\t\t<![endif]-->\n\t\t<a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/6168413\/a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1\" >\n\t\t<img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/6168413\/a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1.png\"  alt=\"New call-to-action\"\/>\n\t\t<\/a>\n\t\t<\/span>\n\t\t<script charset=\"utf-8\" src=\"\/\/js.hubspot.com\/cta\/current.js\"><\/script>\n\t\t<script>\n\t\thbspt.cta.load(6168413, 'a58f10fb-0227-4a46-9dc1-d8edf6ecd9e1', {});\n\t\t<\/script>\n\t\t<\/span>\n\t\t<!-- end HubSpot Call-to-Action Code -->\n\t\t\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 Neo4j \u3092\u4f7f\u7528\u3057\u305f\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b\u3064\u3044\u3066\u8abf\u3079\u3066\u3044\u305f\u3089\u3001 sandbox \u306b Recommendations \u30d7\u30ed\u30b8\u30a7\u30af\u30c8 \u304c\u3042\u3063\u305f\u306e\u3067\u3001\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002 \u5099\u5fd8\u9332\u3068\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30b7\u30ca\u30ea\u30aa\u3092\u65e5 [&#8230;]<\/p>\n","protected":false},"author":102,"featured_media":55093,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[716,37],"tags":[676,305,46,253,677,220,735],"class_list":["post-54011","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ha-arai","category-neo4j","tag-gds","tag-graphdb","tag-neo4j","tag-nosql","tag-sandbox","tag-220","tag-735"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Neo4j SandBox \u30ec\u30b3\u30e1\u30f3\u30c9 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f53\u9a13\u3057\u3066\u307f\u305f #Neo4j #SandBox #GDS - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"Hajime ARAI, Neo4j |\u6982\u8981 Neo4j \u3092\u4f7f\u7528\u3057\u305f\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b\u3064\u3044\u3066\u8abf\u3079\u3066\u3044\u305f\u3089\u3001 sandbox \u306b Recommendations \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\" \/>\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.creationline.com\/tech-blog\/data-management\/neo4j\/54011\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Neo4j SandBox \u30ec\u30b3\u30e1\u30f3\u30c9 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f53\u9a13\u3057\u3066\u307f\u305f #Neo4j #SandBox #GDS - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"Hajime ARAI, Neo4j |\u6982\u8981 Neo4j \u3092\u4f7f\u7528\u3057\u305f\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b\u3064\u3044\u3066\u8abf\u3079\u3066\u3044\u305f\u3089\u3001 sandbox \u306b Recommendations \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/data-management\/neo4j\/54011\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-28T01:30:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-18T02:40:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/title.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1520\" \/>\n\t<meta property=\"og:image:height\" content=\"552\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Hajime ARAI\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hajime ARAI\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"13\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/neo4j\\\/54011#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/neo4j\\\/54011\"},\"author\":{\"name\":\"Hajime ARAI\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/64896f1ac76b6b7b7bda8100b6606b59\"},\"headline\":\"Neo4j SandBox \u30ec\u30b3\u30e1\u30f3\u30c9 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f53\u9a13\u3057\u3066\u307f\u305f #Neo4j #SandBox #GDS\",\"datePublished\":\"2022-09-28T01:30:28+00:00\",\"dateModified\":\"2022-11-18T02:40:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/neo4j\\\/54011\"},\"wordCount\":2648,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/neo4j\\\/54011#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/title.png\",\"keywords\":[\"GDS\",\"GraphDB\",\"neo4j\",\"nosql\",\"SandBox\",\"\u30c7\u30fc\u30bf\u5206\u6790\",\"\u30ec\u30b3\u30e1\u30f3\u30c9\"],\"articleSection\":[\"Hajime ARAI\",\"Neo4j\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/neo4j\\\/54011\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/neo4j\\\/54011\",\"name\":\"Neo4j SandBox \u30ec\u30b3\u30e1\u30f3\u30c9 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f53\u9a13\u3057\u3066\u307f\u305f #Neo4j #SandBox #GDS - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/neo4j\\\/54011#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/neo4j\\\/54011#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/title.png\",\"datePublished\":\"2022-09-28T01:30:28+00:00\",\"dateModified\":\"2022-11-18T02:40:08+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/64896f1ac76b6b7b7bda8100b6606b59\"},\"description\":\"Hajime ARAI, Neo4j |\u6982\u8981 Neo4j \u3092\u4f7f\u7528\u3057\u305f\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b\u3064\u3044\u3066\u8abf\u3079\u3066\u3044\u305f\u3089\u3001 sandbox \u306b Recommendations \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/neo4j\\\/54011#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/neo4j\\\/54011\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/neo4j\\\/54011#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/title.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/title.png\",\"width\":1520,\"height\":552},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/neo4j\\\/54011#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30c7\u30fc\u30bf\u200b\u200b\u30de\u30cd\u30b8\u30e1\u30f3\u30c8\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Neo4j\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/neo4j\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Neo4j SandBox \u30ec\u30b3\u30e1\u30f3\u30c9 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f53\u9a13\u3057\u3066\u307f\u305f #Neo4j #SandBox #GDS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/64896f1ac76b6b7b7bda8100b6606b59\",\"name\":\"Hajime ARAI\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/IMG_0610-150x150.jpg\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/IMG_0610-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/IMG_0610-150x150.jpg\",\"caption\":\"Hajime ARAI\"},\"description\":\"\u89b3\u8449\u690d\u7269\u3068\u30cf\u30e0\u30b9\u30bf\u30fc\u3092\u80b2\u3066\u308b Neo4j \u30a8\u30f3\u30b8\u30cb\u30a2\u3002 \u5f97\u610f\u5206\u91ce\u306f Python \u3068 \u81ea\u7136\u8a00\u8a9e\u51e6\u7406\u3002\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/ha-arai\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Neo4j SandBox \u30ec\u30b3\u30e1\u30f3\u30c9 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f53\u9a13\u3057\u3066\u307f\u305f #Neo4j #SandBox #GDS - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"Hajime ARAI, Neo4j |\u6982\u8981 Neo4j \u3092\u4f7f\u7528\u3057\u305f\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b\u3064\u3044\u3066\u8abf\u3079\u3066\u3044\u305f\u3089\u3001 sandbox \u306b Recommendations \u30d7\u30ed\u30b8\u30a7\u30af\u30c8","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.creationline.com\/tech-blog\/data-management\/neo4j\/54011","og_locale":"ja_JP","og_type":"article","og_title":"Neo4j SandBox \u30ec\u30b3\u30e1\u30f3\u30c9 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f53\u9a13\u3057\u3066\u307f\u305f #Neo4j #SandBox #GDS - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"Hajime ARAI, Neo4j |\u6982\u8981 Neo4j \u3092\u4f7f\u7528\u3057\u305f\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b\u3064\u3044\u3066\u8abf\u3079\u3066\u3044\u305f\u3089\u3001 sandbox \u306b Recommendations \u30d7\u30ed\u30b8\u30a7\u30af\u30c8","og_url":"https:\/\/www.creationline.com\/tech-blog\/data-management\/neo4j\/54011","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2022-09-28T01:30:28+00:00","article_modified_time":"2022-11-18T02:40:08+00:00","og_image":[{"width":1520,"height":552,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/title.png","type":"image\/png"}],"author":"Hajime ARAI","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"Hajime ARAI","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"13\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/neo4j\/54011#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/neo4j\/54011"},"author":{"name":"Hajime ARAI","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/64896f1ac76b6b7b7bda8100b6606b59"},"headline":"Neo4j SandBox \u30ec\u30b3\u30e1\u30f3\u30c9 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f53\u9a13\u3057\u3066\u307f\u305f #Neo4j #SandBox #GDS","datePublished":"2022-09-28T01:30:28+00:00","dateModified":"2022-11-18T02:40:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/neo4j\/54011"},"wordCount":2648,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/neo4j\/54011#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/title.png","keywords":["GDS","GraphDB","neo4j","nosql","SandBox","\u30c7\u30fc\u30bf\u5206\u6790","\u30ec\u30b3\u30e1\u30f3\u30c9"],"articleSection":["Hajime ARAI","Neo4j"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/neo4j\/54011","url":"https:\/\/www.creationline.com\/tech-blog\/data-management\/neo4j\/54011","name":"Neo4j SandBox \u30ec\u30b3\u30e1\u30f3\u30c9 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f53\u9a13\u3057\u3066\u307f\u305f #Neo4j #SandBox #GDS - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/neo4j\/54011#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/neo4j\/54011#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/title.png","datePublished":"2022-09-28T01:30:28+00:00","dateModified":"2022-11-18T02:40:08+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/64896f1ac76b6b7b7bda8100b6606b59"},"description":"Hajime ARAI, Neo4j |\u6982\u8981 Neo4j \u3092\u4f7f\u7528\u3057\u305f\u30ec\u30b3\u30e1\u30f3\u30c7\u30fc\u30b7\u30e7\u30f3\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b\u3064\u3044\u3066\u8abf\u3079\u3066\u3044\u305f\u3089\u3001 sandbox \u306b Recommendations \u30d7\u30ed\u30b8\u30a7\u30af\u30c8","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/neo4j\/54011#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/data-management\/neo4j\/54011"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/neo4j\/54011#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/title.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/09\/title.png","width":1520,"height":552},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/neo4j\/54011#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u30c7\u30fc\u30bf\u200b\u200b\u30de\u30cd\u30b8\u30e1\u30f3\u30c8","item":"https:\/\/www.creationline.com\/tech-blog\/data-management"},{"@type":"ListItem","position":3,"name":"Neo4j","item":"https:\/\/www.creationline.com\/tech-blog\/data-management\/neo4j"},{"@type":"ListItem","position":4,"name":"Neo4j SandBox \u30ec\u30b3\u30e1\u30f3\u30c9 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f53\u9a13\u3057\u3066\u307f\u305f #Neo4j #SandBox #GDS"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/64896f1ac76b6b7b7bda8100b6606b59","name":"Hajime ARAI","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/08\/IMG_0610-150x150.jpg","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/08\/IMG_0610-150x150.jpg","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2022\/08\/IMG_0610-150x150.jpg","caption":"Hajime ARAI"},"description":"\u89b3\u8449\u690d\u7269\u3068\u30cf\u30e0\u30b9\u30bf\u30fc\u3092\u80b2\u3066\u308b Neo4j \u30a8\u30f3\u30b8\u30cb\u30a2\u3002 \u5f97\u610f\u5206\u91ce\u306f Python \u3068 \u81ea\u7136\u8a00\u8a9e\u51e6\u7406\u3002","url":"https:\/\/www.creationline.com\/tech-blog\/author\/ha-arai"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/54011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/102"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=54011"}],"version-history":[{"count":358,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/54011\/revisions"}],"predecessor-version":[{"id":56776,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/54011\/revisions\/56776"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/55093"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=54011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=54011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=54011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}