{"id":1398,"date":"2020-04-21T22:54:57","date_gmt":"2020-04-21T22:54:57","guid":{"rendered":"http:\/\/wikidata.wwwnlsrc4.supercp.com\/?p=1398"},"modified":"2020-11-18T15:05:58","modified_gmt":"2020-11-18T15:05:58","slug":"optional-clause","status":"publish","type":"post","link":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/simple-queries-he\/adding-variables-he\/optional-clause\/?lang=he","title":{"rendered":"\u05e4\u05e1\u05d5\u05e7\u05d9\u05ea OPTIONAL"},"content":{"rendered":"\n<h2>\u05e2\u05e8\u05db\u05d9\u05dd \u05d7\u05e1\u05e8\u05d9\u05dd \u05d5\u05e4\u05e1\u05d5\u05e7\u05d9\u05ea OPTIONAL<\/h2>\n\n\n\n<p>\u05db\u05e4\u05d9 \u05e9\u05db\u05d1\u05e8 \u05e8\u05d0\u05d9\u05e0\u05d5, \u05db\u05e9\u05d9\u05e9 \u05d9\u05d5\u05ea\u05e8 \u05de\u05ea\u05d1\u05e0\u05d9\u05ea \u05d0\u05d7\u05ea \u05dc\u05d4\u05ea\u05d0\u05de\u05d4 \u05d1\u05e4\u05e1\u05d5\u05e7\u05d9\u05ea \u05d4-WHERE, <\/p>\n\n\n\n<p><a href=\"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/simple-queries-he\/adding-match-patterns-he\/two-or-more-match-patterns\/?lang=he\">\u05db\u05e4\u05d9 \u05e9\u05e8\u05d0\u05d9\u05e0\u05d5 \u05e7\u05d5\u05d3\u05dd<\/a>, \u05db\u05d0\u05e9\u05e8 \u05d9\u05e9 \u05d9\u05d5\u05ea\u05e8 \u05de\u05ea\u05d1\u05e0\u05d9\u05ea \u05d0\u05d7\u05ea \u05dc\u05d4\u05ea\u05d0\u05de\u05d4 \u05d1\u05e4\u05e1\u05d5\u05e7\u05d9\u05ea \u05d4-WHERE,  \u05d0\u05d6 \u05d9\u05e9 \u05d1\u05d9\u05e0\u05d9\u05d4\u05df \u05d9\u05d7\u05e1 \u05e9\u05dc &#8220;\u05d5\u05d2\u05dd&#8221;, \u05db\u05dc\u05d5\u05de\u05e8 \u05e8\u05e7 \u05ea\u05d1\u05e0\u05d9\u05d5\u05ea \u05e9\u05de\u05ea\u05d0\u05d9\u05de\u05d5\u05ea&nbsp;<strong>\u05dc\u05db\u05dc&nbsp;<\/strong>\u05d4\u05d4\u05e6\u05d4\u05e8\u05d5\u05ea \u05d9\u05d0\u05d5\u05d7\u05d6\u05e8\u05d5 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d4\u05e9\u05d0\u05d9\u05dc\u05ea\u05d4. \u05dc\u05de\u05e9\u05dc, \u05d1<a href=\"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/simple-queries-he\/adding-variables-he\/another-exercise\/?lang=he\">\u05ea\u05e8\u05d2\u05d9\u05dc \u05d4\u05d0\u05d7\u05e8\u05d5\u05df<\/a> \u05d4\u05d9\u05d5 \u05d1\u05e9\u05d0\u05d9\u05dc\u05ea\u05d4 \u05e9\u05dc\u05d5\u05e9 \u05ea\u05d1\u05e0\u05d9\u05d5\u05ea \u05dc\u05d4\u05ea\u05d0\u05de\u05d4:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror cm-s-eclipse\" data-setting=\"{&quot;mode&quot;:&quot;sparql&quot;,&quot;mime&quot;:&quot;application\/sparql-query&quot;,&quot;theme&quot;:&quot;eclipse&quot;,&quot;lineNumbers&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true}\">#\u05e1\u05e8\u05d8\u05d9 \u05de\u05dc\u05d7\u05de\u05ea \u05d4\u05db\u05d5\u05db\u05d1\u05d9\u05dd\n\nSELECT ?item  ?itemLabel ?directorLabel ?cost\nWHERE \n{ \n  ?item wdt:P179 wd:Q22092344. # \u05d4\u05e4\u05e8\u05d9\u05d8 \u05d4\u05d5\u05d0 \u05d7\u05dc\u05e7 \u05de\u05e1\u05d3\u05e8\u05ea \u05d4\u05e1\u05e8\u05d8\u05d9\u05dd \u05de\u05dc\u05d7\u05de\u05ea \u05d4\u05db\u05d5\u05db\u05d1\u05d9\u05dd\n  ?item wdt:P57 ?director.     # ?director \u05d4\u05e2\u05e8\u05da \u05e9\u05dc \u05d4\u05de\u05d0\u05e4\u05d9\u05d9\u05df &quot;\u05d1\u05de\u05d0\u05d9&quot; \u05e9\u05dc \u05d4\u05e4\u05e8\u05d9\u05d8 \u05e0\u05d0\u05e1\u05e3 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d4\u05de\u05e9\u05ea\u05e0\u05d4\n  ?item wdt:P2130 ?cost.       # ?cost \u05d4\u05e2\u05e8\u05da \u05e9\u05dc \u05d4\u05de\u05d0\u05e4\u05d9\u05d9\u05df &quot;\u05e2\u05dc\u05d5\u05ea&quot; \u05e9\u05dc \u05d4\u05e4\u05e8\u05d9\u05d8 \u05e0\u05d0\u05e1\u05e3 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d4\u05de\u05e9\u05ea\u05e0\u05d4\n  SERVICE wikibase:label { bd:serviceParam wikibase:language &quot;[AUTO_LANGUAGE]&quot;. }\n  \n}<\/pre><\/div>\n\n\n\n<p>\u05d1\u05d9\u05df \u05d4\u05d4\u05e6\u05d4\u05e8\u05d5\u05ea \u05d1\u05e9\u05d5\u05e8\u05d5\u05ea \u05de\u05e1\u05e4\u05e8 6, 7, \u05d5-8 \u05d9\u05e9 \u05d9\u05d7\u05e1 \u05e9\u05dc &#8220;\u05d5\u05d2\u05dd&#8221;. \u05dc\u05db\u05df, \u05dc\u05e4\u05e8\u05d9\u05d8 \u05d5\u05d9\u05e7\u05d9\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05ea\u05d4\u05d9\u05d4 \u05d4\u05ea\u05d0\u05de\u05d4 \u05e8\u05e7 \u05d0\u05dd \u05d9\u05e9 \u05dc\u05d5 \u05de\u05d0\u05e4\u05d9\u05d9\u05df P179 (\u05d7\u05dc\u05e7 \u05de\u05d4\u05e1\u05d3\u05e8\u05d4) \u05e2\u05dd \u05d4\u05e2\u05e8\u05da Q22092344 (\u05e1\u05d3\u05e8\u05ea \u05d4\u05e1\u05e8\u05d8\u05d9\u05dd \u05de\u05dc\u05d7\u05de\u05ea \u05d4\u05db\u05d5\u05db\u05d1\u05d9\u05dd), \u05d5\u05d2\u05dd \u05de\u05d0\u05e4\u05d9\u05d9\u05df P57 (\u05d1\u05de\u05d0\u05d9) \u05d5\u05d2\u05dd \u05de\u05d0\u05e4\u05d9\u05d9\u05df P2130 (\u05e2\u05dc\u05d5\u05ea). \u05d0\u05dd \u05dc\u05e4\u05e8\u05d9\u05d8 \u05d0\u05d9\u05df \u05d4\u05ea\u05d0\u05de\u05d4 \u05e2\u05dd \u05d0\u05d7\u05ea \u05de\u05d4\u05d4\u05e6\u05d4\u05e8\u05d5\u05ea \u05d4\u05d0\u05dc\u05d4 (\u05dc\u05de\u05e9\u05dc \u05d0\u05d9\u05df \u05dc\u05d5 \u05d0\u05ea \u05d4\u05de\u05d0\u05e4\u05d9\u05d9\u05df \u05e2\u05dc\u05d5\u05ea) \u05d4\u05e9\u05d0\u05d9\u05dc\u05ea\u05d4 \u05ea\u05ea\u05e2\u05dc\u05dd \u05de\u05de\u05e0\u05d5.<\/p>\n\n\n\n<p>\u05e1\u05e4\u05d0\u05e8\u05e7\u05dc \u05d4\u05d9\u05d0 \u05e9\u05e4\u05ea \u05e9\u05d0\u05d9\u05dc\u05ea\u05d5\u05ea \u05e9\u05dc \u05d4\u05ea\u05d0\u05de\u05ea \u05ea\u05d1\u05e0\u05d9\u05d5\u05ea (<em>pattern-matching<\/em>). \u05e9\u05d0\u05d9\u05dc\u05ea\u05d5\u05ea \u05e1\u05e4\u05d0\u05e8\u05e7\u05dc \u05d9\u05d7\u05d6\u05d9\u05e8\u05d5 \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d0\u05da \u05d5\u05e8\u05e7 \u05d0\u05dd \u05db\u05dc \u05d4\u05ea\u05d1\u05e0\u05d9\u05d5\u05ea \u05d4\u05de\u05d5\u05d2\u05d3\u05e8\u05d5\u05ea \u05d1\u05d7\u05dc\u05e7 \u05d4-WHERE \u05ea\u05d5\u05d0\u05de\u05d5\u05ea <strong>\u05d1\u05d3\u05d9\u05d5\u05e7<\/strong> \u05d0\u05ea \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d5\u05de\u05d1\u05e0\u05d4 \u05d4\u05d4\u05e6\u05d4\u05e8\u05d5\u05ea \u05d1\u05de\u05e1\u05d3 \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd. \u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05d1\u05de\u05e2\u05e8\u05db\u05d9 \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05e8\u05d1\u05d9\u05dd \u05d9\u05e9 \u05e2\u05e8\u05db\u05d9\u05dd \u05d7\u05e1\u05e8\u05d9\u05dd, \u05ea\u05d4\u05d9\u05d4 \u05d4\u05ea\u05d0\u05de\u05d4 \u05dc\u05e9\u05d0\u05d9\u05dc\u05ea\u05d4 \u05e8\u05e7 \u05d0\u05dd \u05d9\u05e9 \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05ea\u05e7\u05e4\u05d9\u05dd \u05d1\u05db\u05dc \u05d0\u05d7\u05d3 \u05de\u05d4\u05d7\u05dc\u05e7\u05d9\u05dd \u05d1\u05d4\u05e6\u05d4\u05e8\u05d5\u05ea \u05e9\u05de\u05d5\u05e4\u05d9\u05e2\u05d5\u05ea \u05d1\u05ea\u05d5\u05da \u05e4\u05e1\u05d5\u05e7\u05d9\u05ea \u05d4-WHERE. \u05dc\u05db\u05df, \u05e1\u05e4\u05d0\u05e8\u05e7\u05dc \u05dc\u05d0 \u05ea\u05d7\u05d6\u05d9\u05e8 \u05d1\u05ea\u05d5\u05e6\u05d0\u05d5\u05ea \u05e4\u05e8\u05d9\u05d8 \u05e9\u05d7\u05e1\u05e8 \u05dc\u05d5 \u05de\u05d0\u05e4\u05d9\u05d9\u05df \u05d0\u05d5 \u05e2\u05e8\u05da \u05e9\u05de\u05d1\u05d5\u05e7\u05e9\u05d9\u05dd \u05d1\u05d7\u05dc\u05e7 \u05d4-WHERE.<br><\/p>\n\n\n\n<p>\u05de\u05d9\u05dc\u05ea \u05d4\u05de\u05e4\u05ea\u05d7 OPTIONAL \u05d9\u05db\u05d5\u05dc\u05d4 \u05dc\u05d4\u05d5\u05e4\u05d9\u05e2 \u05d1\u05e4\u05e1\u05d5\u05e7\u05d9\u05ea \u05d4-WHERE \u05d5\u05dc\u05d4\u05d2\u05d3\u05d9\u05e8 \u05ea\u05d1\u05e0\u05d9\u05d5\u05ea \u05dc\u05d4\u05ea\u05d0\u05de\u05d4 \u05e9\u05d4\u05df \u05d0\u05d5\u05e4\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9\u05d5\u05ea. \u05db\u05dc\u05d5\u05de\u05e8, OPTIONAL \u05de\u05d0\u05e4\u05e9\u05e8 \u05dc\u05d7\u05e4\u05e9 \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05e9\u05d0\u05d5\u05dc\u05d9 \u05e0\u05de\u05e6\u05d0\u05d9\u05dd \u05d5\u05d0\u05d5\u05dc\u05d9 \u05dc\u05d0.<\/p>\n\n\n\n<iframe class=\"\" src=\"https:\/\/query.wikidata.org\/#%23%D7%A1%D7%A8%D7%98%D7%99%20%D7%9E%D7%9C%D7%97%D7%9E%D7%AA%20%D7%94%D7%9B%D7%95%D7%9B%D7%91%D7%99%D7%9D%0A%0ASELECT%20%3Fitem%20%20%3FitemLabel%20%3FdirectorLabel%20%3Fcost%0AWHERE%20%0A%7B%20%0A%20%20%3Fitem%20wdt%3AP179%20wd%3AQ22092344.%20%20%20%20%20%20%20%20%20%20%20%23%20%D7%94%D7%A4%D7%A8%D7%99%D7%98%20%D7%94%D7%95%D7%90%20%D7%97%D7%9C%D7%A7%20%D7%9E%D7%A1%D7%93%D7%A8%D7%AA%20%D7%94%D7%A1%D7%A8%D7%98%D7%99%D7%9D%20%D7%9E%D7%9C%D7%97%D7%9E%D7%AA%20%D7%94%D7%9B%D7%95%D7%9B%D7%91%D7%99%D7%9D%0A%20%20%3Fitem%20wdt%3AP57%20%3Fdirector.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20%3Fdirector%20%D7%94%D7%A2%D7%A8%D7%9A%20%D7%A9%D7%9C%20%D7%94%D7%9E%D7%90%D7%A4%D7%99%D7%99%D7%9F%20%22%D7%91%D7%9E%D7%90%D7%99%22%20%D7%A9%D7%9C%20%D7%94%D7%A4%D7%A8%D7%99%D7%98%20%D7%A0%D7%90%D7%A1%D7%A3%20%D7%A2%D7%9C%20%D7%99%D7%93%D7%99%20%D7%94%D7%9E%D7%A9%D7%AA%D7%A0%D7%94%0A%20%20OPTIONAL%20%7B%3Fitem%20wdt%3AP2130%20%3Fcost.%7D%20%20%20%20%20%20%23%20%3Fcost%20%D7%90%D7%9D%20%D7%99%D7%A9%20%D7%9C%D7%A4%D7%A8%D7%99%D7%98%20%D7%9E%D7%90%D7%A4%D7%99%D7%99%D7%9F%20%22%D7%A2%D7%9C%D7%95%D7%AA%22%2C%20%D7%94%D7%A2%D7%A8%D7%9A%20%D7%A9%D7%9C%D7%95%20%D7%A0%D7%90%D7%A1%D7%A3%20%D7%A2%D7%9C%20%D7%99%D7%93%D7%99%20%D7%94%D7%9E%D7%A9%D7%AA%D7%A0%D7%94%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%22.%20%7D%0A%20%20%0A%7D\" style=\"width:100%;max-width:100%;height:450px\" frameborder=\"0\"><\/iframe>\n\n\n\n<p>\u05d4\u05e8\u05d9\u05e6\u05d5 \u05e9\u05d5\u05d1 \u05d0\u05ea \u05d4\u05e9\u05d0\u05d9\u05dc\u05ea\u05d4 \u05e2\u05dd \u05e2\u05dc\u05d5\u05ea \u05db\u05ea\u05d1\u05e0\u05d9\u05ea \u05d0\u05d5\u05e4\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9\u05ea.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u05e2\u05e8\u05db\u05d9\u05dd \u05d7\u05e1\u05e8\u05d9\u05dd \u05d5\u05e4\u05e1\u05d5\u05e7\u05d9\u05ea OPTIONAL \u05db\u05e4\u05d9 \u05e9\u05db\u05d1\u05e8 \u05e8\u05d0\u05d9\u05e0\u05d5, \u05db\u05e9\u05d9\u05e9 \u05d9\u05d5\u05ea\u05e8 \u05de\u05ea\u05d1\u05e0\u05d9\u05ea \u05d0\u05d7\u05ea \u05dc\u05d4\u05ea\u05d0\u05de\u05d4 \u05d1\u05e4\u05e1\u05d5\u05e7\u05d9\u05ea \u05d4-WHERE, \u05db\u05e4\u05d9 \u05e9\u05e8\u05d0\u05d9\u05e0\u05d5 \u05e7\u05d5\u05d3\u05dd, \u05db\u05d0\u05e9\u05e8 \u05d9\u05e9 \u05d9\u05d5\u05ea\u05e8 \u05de\u05ea\u05d1\u05e0\u05d9\u05ea \u05d0\u05d7\u05ea \u05dc\u05d4\u05ea\u05d0\u05de\u05d4 \u05d1\u05e4\u05e1\u05d5\u05e7\u05d9\u05ea \u05d4-WHERE, \u05d0\u05d6 \u05d9\u05e9 \u05d1\u05d9\u05e0\u05d9\u05d4\u05df \u05d9\u05d7\u05e1 \u05e9\u05dc &#8220;\u05d5\u05d2\u05dd&#8221;, \u05db\u05dc\u05d5\u05de\u05e8 \u05e8\u05e7 \u05ea\u05d1\u05e0\u05d9\u05d5\u05ea \u05e9\u05de\u05ea\u05d0\u05d9\u05de\u05d5\u05ea&nbsp;\u05dc\u05db\u05dc&nbsp;\u05d4\u05d4\u05e6\u05d4\u05e8\u05d5\u05ea \u05d9\u05d0\u05d5\u05d7\u05d6\u05e8\u05d5 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d4\u05e9\u05d0\u05d9\u05dc\u05ea\u05d4. \u05dc\u05de\u05e9\u05dc, \u05d1\u05ea\u05e8\u05d2\u05d9\u05dc \u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d4\u05d9\u05d5 \u05d1\u05e9\u05d0\u05d9\u05dc\u05ea\u05d4 \u05e9\u05dc\u05d5\u05e9 \u05ea\u05d1\u05e0\u05d9\u05d5\u05ea \u05dc\u05d4\u05ea\u05d0\u05de\u05d4: \u05d1\u05d9\u05df \u05d4\u05d4\u05e6\u05d4\u05e8\u05d5\u05ea \u05d1\u05e9\u05d5\u05e8\u05d5\u05ea \u05de\u05e1\u05e4\u05e8 6, 7, \u05d5-8 \u05d9\u05e9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":""},"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/1398"}],"collection":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/comments?post=1398"}],"version-history":[{"count":6,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/1398\/revisions"}],"predecessor-version":[{"id":1595,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/1398\/revisions\/1595"}],"wp:attachment":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/media?parent=1398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/categories?post=1398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/tags?post=1398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}