{"id":2572,"date":"2022-08-16T12:18:58","date_gmt":"2022-08-16T12:18:58","guid":{"rendered":"https:\/\/wdqs-tutorial.toolforge.org\/?p=2572"},"modified":"2023-04-06T17:28:14","modified_gmt":"2023-04-06T17:28:14","slug":"specificare-la-lingua-delletichetta","status":"publish","type":"post","link":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/simple-queries-it\/the-simplest-query-it\/specificare-la-lingua-delletichetta\/?lang=it","title":{"rendered":"Specificare la lingua dell&#8217;etichetta"},"content":{"rendered":"\n<h2>Scelta dell&#8217;etichetta in una o pi\u00f9 lingue<\/h2>\n\n\n\n<p>Un altro modo per specificare la lingua dell&#8217;etichetta recuperata consiste nell&#8217;indicarla nel frammento (snippet) di codice SERVICE invece che in &#8220;AUTO LANGUAGE&#8221;.<\/p>\n\n\n\n<p>Ad esempio, nella query seguente, verranno recuperate e presentate le etichette olandesi (nl):<\/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}\">#Film della serie Guerre stellari\n\nSELECT ?item  ?itemLabel \nWHERE \n{ \n  ?item wdt:P179 wd:Q22092344.\n  SERVICE wikibase:label { bd:serviceParam wikibase:language &quot;nl&quot;. }\n}<\/pre><\/div>\n\n\n\n<p>\u00c8 possibile specificare diverse lingue e l&#8217;ordine in cui vengono recuperate le etichette. Ad esempio, la seguente query recupera prima l&#8217;etichetta francese (fr), ma se non \u00e8 presente alcuna etichetta in francese, verr\u00e0 recuperata l&#8217;etichetta tedesca (de) e se manca anche quella verr\u00e0 mostrata l&#8217;etichetta italiana (it), e cos\u00ec via.<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}\">#Film della serie Guerre stellari\n\nSELECT ?item  ?itemLabel \nWHERE \n{ \n  ?item wdt:P179 wd:Q22092344.\nSERVICE wikibase:label { bd:serviceParam wikibase:language &quot;fr,de,it,es,no,pt&quot;. }\n}<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Scelta dell&#8217;etichetta in una o pi\u00f9 lingue Un altro modo per specificare la lingua dell&#8217;etichetta recuperata consiste nell&#8217;indicarla nel frammento (snippet) di codice SERVICE invece che in &#8220;AUTO LANGUAGE&#8221;. Ad esempio, nella query seguente, verranno recuperate e presentate le etichette olandesi (nl): \u00c8 possibile specificare diverse lingue e l&#8217;ordine in cui vengono recuperate le etichette. [&hellip;]<\/p>\n","protected":false},"author":4,"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":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/2572"}],"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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/comments?post=2572"}],"version-history":[{"count":5,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/2572\/revisions"}],"predecessor-version":[{"id":2594,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/2572\/revisions\/2594"}],"wp:attachment":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/media?parent=2572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/categories?post=2572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/tags?post=2572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}