CINXE.COM

Wikidata:SPARQL query service/Wikidata Query Help/Result Views - Wikidata

<!DOCTYPE html> <html class="client-nojs" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Wikidata:SPARQL query service/Wikidata Query Help/Result Views - Wikidata</title> <script>(function(){var className="client-js";var cookie=document.cookie.match(/(?:^|; )wikidatawikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"b11dc9ab-1c95-4d06-9ab9-797b70c4802e","wgCanonicalNamespace":"Project","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":4,"wgPageName":"Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views","wgTitle":"SPARQL query service/Wikidata Query Help/Result Views","wgCurRevisionId":2228836966,"wgRevisionId":2228836966,"wgArticleId":29285671,"wgIsArticle" :true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Pages with syntax highlighting errors","Wikidata:SPARQL query service","Wikidata-en"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views","wgRelevantArticleId":29285671,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikidata","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":40000,"wgInternalRedirectTargetUrl":"/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views", "wgTranslatePageTranslation":"source","wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgDiscussionToolsFeaturesEnabled":{"replytool":true,"newtopictool":true,"sourcemodetoolbar":true,"topicsubscription":false,"autotopicsub":false,"visualenhancements":false,"visualenhancements_reply":false,"visualenhancements_pageframe":false},"wgDiscussionToolsFallbackEditMode":"source","wgULSPosition":"personal","wgULSisCompactLinksEnabled":true,"wgVector2022LanguageInHeader":false,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q87067351","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"]};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.translate.tag.languages":"ready","ext.pygments":"ready","mediawiki.page.gallery.styles":"ready","ext.tmh.player.styles":"ready", "ext.discussionTools.init.styles":"ready","oojs-ui-core.styles":"ready","oojs-ui.styles.indicators":"ready","mediawiki.widgets.styles":"ready","oojs-ui-core.icons":"ready","skins.vector.styles.legacy":"ready","jquery.makeCollapsible.styles":"ready","ext.translate.edit.documentation.styles":"ready","ext.translate":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","codex-search-styles":"ready","ext.uls.pt":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["mediawiki.action.view.redirect","ext.pygments.view","ext.tmh.player","mediawiki.page.media","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc","skins.vector.legacy.js","wikibase.ui.entitysearch","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.translate.pagetranslation.uls","ext.gadget.Search","ext.gadget.ProtectionIndicators","ext.gadget.imagelinks","ext.gadget.NewSection","ext.gadget.formWizard","ext.urlShortener.toolbar", "ext.centralauth.centralautologin","mmv.bootstrap","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.discussionTools.init","ext.eventLogging","ext.wikimediaEvents","ext.wikimediaEvents.wikibase","ext.navigationTiming","ext.uls.compactlinks","ext.uls.interface","ext.checkUser.clientHints","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=codex-search-styles%7Cext.discussionTools.init.styles%7Cext.pygments%2Ctranslate%2CwikimediaBadges%7Cext.tmh.player.styles%7Cext.translate.edit.documentation.styles%7Cext.translate.tag.languages%7Cext.uls.pt%7Cext.visualEditor.desktopArticleTarget.noscript%7Cjquery.makeCollapsible.styles%7Cmediawiki.page.gallery.styles%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.vector.styles.legacy%7Cwikibase.client.init&amp;only=styles&amp;skin=vector"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector"> <meta name="generator" content="MediaWiki 1.44.0-wmf.5"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//m.wikidata.org/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views"> <link rel="alternate" type="application/x-wiki" title="Edit" href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikidata.png"> <link rel="icon" href="/static/favicon/wikidata.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikidata (en)"> <link rel="EditURI" type="application/rsd+xml" href="//www.wikidata.org/w/api.php?action=rsd"> <link rel="canonical" href="https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views"> <link rel="license" href="/wiki/Wikidata:Copyright"> <link rel="alternate" type="application/atom+xml" title="Wikidata Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="ext-discussiontools-replytool-enabled ext-discussiontools-newtopictool-enabled ext-discussiontools-sourcemodetoolbar-enabled skin-vector-legacy mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-4 ns-subject mw-editable page-Wikidata_SPARQL_query_service_Wikidata_Query_Help_Result_Views rootpage-Wikidata_SPARQL_query_service skin-vector action-view"><div id="mw-page-base" class="noprint"></div> <div id="mw-head-base" class="noprint"></div> <div id="content" class="mw-body" role="main"> <a id="top"></a> <div id="siteNotice"><!-- CentralNotice --></div> <div class="mw-indicators"> <div id="mw-indicator-shortcut" class="mw-indicator"><div class="mw-parser-output"><code><a href="/wiki/Q620197" title="Q620197">Shortcut</a>: wd:WDQS/Result views</code></div></div> </div> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-namespace">Wikidata</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">SPARQL query service/Wikidata Query Help/Result Views</span></h1> <div id="bodyContent" class="vector-body"> <div id="siteSub" class="noprint">From Wikidata</div> <div id="contentSub"><div id="mw-content-subtitle"><div class="subpages">&lt; <bdi dir="ltr"><a href="/wiki/Special:MyLanguage/Wikidata:SPARQL_query_service" title="Special:MyLanguage/Wikidata:SPARQL query service">Wikidata:SPARQL query service</a></bdi> | <bdi dir="ltr"><a href="/wiki/Special:MyLanguage/Wikidata:SPARQL_query_service/Wikidata_Query_Help" title="Special:MyLanguage/Wikidata:SPARQL query service/Wikidata Query Help">Wikidata Query Help</a></bdi></div></div></div> <div id="contentSub2"></div> <div id="jump-to-nav"></div> <a class="mw-jump-link" href="#mw-head">Jump to navigation</a> <a class="mw-jump-link" href="#searchInput">Jump to search</a> <div id="mw-content-text" class="mw-body-content"><div class="mw-pt-translate-header noprint nomobile" dir="ltr" lang="en"><a href="/w/index.php?title=Special:Translate&amp;group=page-Wikidata%3ASPARQL+query+service%2FWikidata+Query+Help%2FResult+Views&amp;action=page&amp;filter=&amp;action_source=translate_page" title="Special:Translate">Translate this page</a></div><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="mw-pt-languages noprint navigation-not-searchable" lang="en" dir="ltr"><div class="mw-pt-languages-label">Other languages:</div><ul class="mw-pt-languages-list"><li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/id" class="mw-pt-progress mw-pt-progress--low" title="Wikidata:SPARQL query service/Wikidata Query Help/Result Views/id (5% translated)" lang="id" dir="ltr">Bahasa Indonesia</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/en-gb" class="mw-pt-progress mw-pt-progress--high" title="Wikidata:SPARQL query service/Wikidata Query Help/Result Views (84% translated)" lang="en-GB" dir="ltr">British English</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/de" class="mw-pt-progress mw-pt-progress--med" title="Wikidata:SPARQL query service/Wikidata Query Help/Result Views/de (32% translated)" lang="de" dir="ltr">Deutsch</a></li> <li><span class="mw-pt-languages-ui mw-pt-languages-selected mw-pt-progress mw-pt-progress--complete" lang="en" dir="ltr">English</span></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/eo" class="mw-pt-progress mw-pt-progress--low" title="Wikidata:SPARQL query service/Wikidata Query Help/Result Views/eo (10% translated)" lang="eo" dir="ltr">Esperanto</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/lb" class="mw-pt-progress mw-pt-progress--med" title="Wikidata:SPARQL query service/Wikidata Query Help/Result Views/lb (23% translated)" lang="lb" dir="ltr">Lëtzebuergesch</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/nl" class="mw-pt-progress mw-pt-progress--complete" title="Wikidata:SPARQL query service/Wikidata Query Help/Result Views/nl (100% translated)" lang="nl" dir="ltr">Nederlands</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/tr" class="mw-pt-progress mw-pt-progress--high" title="Vikiveri:SPARQL sorgu hizmeti/Vikiveri Sorgu Yardımı/Sonuç Görünümleri (82% translated)" lang="tr" dir="ltr">Türkçe</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/ca" class="mw-pt-progress mw-pt-progress--high" title="Wikidata:Servei de consulta SPARQL/Vistes de Resultat de Wikidata/Ajuda de la Consulta (84% translated)" lang="ca" dir="ltr">català</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/da" class="mw-pt-progress mw-pt-progress--med" title="Wikidata:SPARQL query service/Wikidata Query Hjælp/Resultatvisninger (34% translated)" lang="da" dir="ltr">dansk</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/es" class="mw-pt-progress mw-pt-progress--med" title="Wikidata:SPARQL query service/Wikidata Query Help/Result Views/es (32% translated)" lang="es" dir="ltr">español</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/fr" class="mw-pt-progress mw-pt-progress--complete" title="Wikidata:Service de requête SPARQL/Aide Wikidata Query/Visualisation des résultats (100% translated)" lang="fr" dir="ltr">français</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/it" class="mw-pt-progress mw-pt-progress--med" title="Wikidata:SPARQL query service/Wikidata Query Help/Viste dei risultati (46% translated)" lang="it" dir="ltr">italiano</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/pl" class="mw-pt-progress mw-pt-progress--med" title="Wikidane:Obsługa zapytań SPARQL/Pomoc zapytań Wikidanych/Widoki wyników (42% translated)" lang="pl" dir="ltr">polski</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/sv" class="mw-pt-progress mw-pt-progress--high" title="Wikidata:SPARQL-frågetjänst/Wikidata-frågeresultat/Resultatvisningar (95% translated)" lang="sv" dir="ltr">svenska</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/el" class="mw-pt-progress mw-pt-progress--low" title="Wikidata:SPARQL query service/Wikidata Query Help/Result Views/el (5% translated)" lang="el" dir="ltr">Ελληνικά</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/be-tarask" class="mw-pt-progress mw-pt-progress--med" title="Вікізьвесткі:Сэрвіс запытаў SPARQL/Дапамога запытаў Вікізьвестак/Прагляд вынікаў (21% translated)" lang="be-tarask" dir="ltr">беларуская (тарашкевіца)</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/ru" class="mw-pt-progress mw-pt-progress--med" title="Wikidata:Сервис запросов SPARQL/Помощь по сервису запросов Викиданных/Просмотр результатов (47% translated)" lang="ru" dir="ltr">русский</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/sr" class="mw-pt-progress mw-pt-progress--low" title="Wikidata:SPARQL query service/Wikidata Query Help/Result Views/sr (7% translated)" lang="sr" dir="ltr">српски / srpski</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/uk" class="mw-pt-progress mw-pt-progress--med" title="Wikidata:SPARQL query service/Wikidata Query Help/Перегляд результатів (50% translated)" lang="uk" dir="ltr">українська</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/hy" class="mw-pt-progress mw-pt-progress--low" title="Wikidata:SPARQL query service/Wikidata Query Help/Result Views/hy (14% translated)" lang="hy" dir="ltr">հայերեն</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/he" class="mw-pt-progress mw-pt-progress--high" title="ויקינתונים:שירות תשאול SPARQL/עזרה בשאילתות ויקינתונים/תצוגות תוצאות (74% translated)" lang="he" dir="rtl">עברית</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/ar" class="mw-pt-progress mw-pt-progress--high" title="ويكي بيانات:خدمة الاستعلام سباركل/مساعدة استعلام ويكي بيانات/عرض النتائج (83% translated)" lang="ar" dir="rtl">العربية</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/bo" class="mw-pt-progress mw-pt-progress--low" title="Wikidata:SPARQL query service/Wikidata Query Help/Result Views/bo (0% translated)" lang="bo" dir="ltr">བོད་ཡིག</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/zh" class="mw-pt-progress mw-pt-progress--med" title="维基数据:SPARQL查询服务/维基数据查询帮助/结果视图 (36% translated)" lang="zh" dir="ltr">中文</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/ja" class="mw-pt-progress mw-pt-progress--high" title="ウィキデータ:SPARQLクエリサービス/ヘルプ/結果ビュー (86% translated)" lang="ja" dir="ltr">日本語</a></li> <li><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/yue" class="mw-pt-progress mw-pt-progress--low" title="Wikidata:SPARQL query service/Wikidata Query Help/Result Views/yue (1% translated)" lang="yue" dir="ltr">粵語</a></li></ul></div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:Screenshot_WDQS_interface_(EN).png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/8/84/Screenshot_WDQS_interface_%28EN%29.png/220px-Screenshot_WDQS_interface_%28EN%29.png" decoding="async" width="220" height="138" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/8/84/Screenshot_WDQS_interface_%28EN%29.png/330px-Screenshot_WDQS_interface_%28EN%29.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/8/84/Screenshot_WDQS_interface_%28EN%29.png/440px-Screenshot_WDQS_interface_%28EN%29.png 2x" data-file-width="1440" data-file-height="900"/></a><figcaption>WDQS interface</figcaption></figure> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:Screenshot_WDQS_interface_hover_EN.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/2/20/Screenshot_WDQS_interface_hover_EN.png/220px-Screenshot_WDQS_interface_hover_EN.png" decoding="async" width="220" height="157" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/2/20/Screenshot_WDQS_interface_hover_EN.png/330px-Screenshot_WDQS_interface_hover_EN.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/2/20/Screenshot_WDQS_interface_hover_EN.png/440px-Screenshot_WDQS_interface_hover_EN.png 2x" data-file-width="645" data-file-height="460"/></a><figcaption>Tooltips when hovering SPARQL code</figcaption></figure> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:Screenshot_WDQS_display_selection_(EN).png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/9/95/Screenshot_WDQS_display_selection_%28EN%29.png/110px-Screenshot_WDQS_display_selection_%28EN%29.png" decoding="async" width="110" height="323" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/9/95/Screenshot_WDQS_display_selection_%28EN%29.png/165px-Screenshot_WDQS_display_selection_%28EN%29.png 1.5x, //upload.wikimedia.org/wikipedia/commons/9/95/Screenshot_WDQS_display_selection_%28EN%29.png 2x" data-file-width="168" data-file-height="493"/></a><figcaption>WDQS result display selection</figcaption></figure> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:Screenshot_WDQS_results_link_show_script.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/2/25/Screenshot_WDQS_results_link_show_script.png/220px-Screenshot_WDQS_results_link_show_script.png" decoding="async" width="220" height="134" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/2/25/Screenshot_WDQS_results_link_show_script.png/330px-Screenshot_WDQS_results_link_show_script.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/2/25/Screenshot_WDQS_results_link_show_script.png/440px-Screenshot_WDQS_results_link_show_script.png 2x" data-file-width="1440" data-file-height="878"/></a><figcaption>Link to show script in WDQS results window after a Try It</figcaption></figure> <p> This page describes the WDQS interface and helps you to understand the various possibilities to display results on <a href="/wiki/Special:MyLanguage/Wikidata:SPARQL_query_service" title="Special:MyLanguage/Wikidata:SPARQL query service">SPARQL query service</a>. The <a href="/wiki/Special:MyLanguage/Wikidata:SPARQL_query_service/queries/examples" title="Special:MyLanguage/Wikidata:SPARQL query service/queries/examples">query example page</a> contains many good examples you can try! </p><p>Open the <a class="external text" href="https://query.wikidata.org">WDQS interface</a> and then: </p> <ul><li>select your language in <span typeof="mw:File"><a href="/wiki/File:Noun_Project_languages_icon_105908_cc.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Noun_Project_languages_icon_105908_cc.svg/20px-Noun_Project_languages_icon_105908_cc.svg.png" decoding="async" width="20" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Noun_Project_languages_icon_105908_cc.svg/30px-Noun_Project_languages_icon_105908_cc.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Noun_Project_languages_icon_105908_cc.svg/40px-Noun_Project_languages_icon_105908_cc.svg.png 2x" data-file-width="94" data-file-height="94"/></a></span> of the upper tool bar.</li> <li>write a valid SPARQL code in the text area.</li> <li>check your script by hovering the elements with your mouse; tooltips appear and should be consistent with what you intend to do. They adopt the language you have selected (default to english).</li> <li>then click on blue button <span class="nowrap" title="This is not a clickable button; it illustrates the button to look for" style="padding:.2em .6em; border:1px solid; border-color:#aaa #555 #555 #aaa; border-radius:3px; background-color:#f2f2f2; background-image: -moz-linear-gradient(top, #fcfcfc, #e0e0e0); background-image: -o-linear-gradient(top, #fcfcfc, #e0e0e0); background-image: -webkit-linear-gradient(top, #fcfcfc, #e0e0e0); background-image: linear-gradient(to bottom, #fcfcfc, #e0e0e0);">Execute query</span> of the sidebar to launch the request. Red square is lit in the sidebar while the command executes.</li> <li>after running a query, you can choose in the "Display" formats which result view you want to display. Depending on your query and the data type, some of the views will not be available.</li></ul> <table> </table><table class="navbox mw-collapsible mw-collapsed" style="background: transparent; text-align: left; border: 1px solid silver; margin-top: 0.2em;"> <tbody><tr> <th style="background-color: #CFC; text-align:center; font-size:112%;">Source example </th></tr> <tr> <td style="border: solid 1px silver; padding: 8px; background-color: white"> <div class="mw-highlight mw-highlight-lang-sparql mw-content-ltr" dir="ltr"><pre><span></span><span class="c"># Recent events</span> <span class="k">SELECT</span> <span class="nv">?event</span> <span class="nv">?eventLabel</span> <span class="nv">?date</span> <span class="k">WHERE</span> <span class="p">{</span> <span class="c"># find events</span> <span class="nv">?event</span> <span class="nn">wdt</span><span class="p">:</span><span class="nt">P31</span><span class="o">/</span><span class="nn">wdt</span><span class="p">:</span><span class="nt">P279</span><span class="o">*</span> <span class="nn">wd</span><span class="p">:</span><span class="nt">Q1190554</span><span class="p">.</span> <span class="c"># with a point in time or start date</span> <span class="k">OPTIONAL</span> <span class="p">{</span> <span class="nv">?event</span> <span class="nn">wdt</span><span class="p">:</span><span class="nt">P585</span> <span class="nv">?date</span><span class="p">.</span> <span class="p">}</span> <span class="k">OPTIONAL</span> <span class="p">{</span> <span class="nv">?event</span> <span class="nn">wdt</span><span class="p">:</span><span class="nt">P580</span> <span class="nv">?date</span><span class="p">.</span> <span class="p">}</span> <span class="c"># but at least one of those</span> <span class="k">FILTER</span><span class="p">(</span><span class="nf">BOUND</span><span class="p">(</span><span class="nv">?date</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="nf">DATATYPE</span><span class="p">(</span><span class="nv">?date</span><span class="p">)</span> <span class="o">=</span> <span class="nn">xsd</span><span class="p">:</span><span class="nt">dateTime</span><span class="p">).</span> <span class="c"># not in the future, and not more than 31 days ago</span> <span class="k">BIND</span><span class="p">(</span><span class="nf">NOW</span><span class="p">()</span> <span class="o">-</span> <span class="nv">?date</span> <span class="k">AS</span> <span class="nv">?distance</span><span class="p">).</span> <span class="k">FILTER</span><span class="p">(</span><span class="mi">0</span> <span class="o">&lt;=</span> <span class="nv">?distance</span> <span class="o">&amp;&amp;</span> <span class="nv">?distance</span> <span class="o">&lt;</span> <span class="mi">31</span><span class="p">).</span> <span class="c"># and get a label as well</span> <span class="k">OPTIONAL</span> <span class="p">{</span> <span class="nv">?event</span> <span class="nn">rdfs</span><span class="p">:</span><span class="nt">label</span> <span class="nv">?eventLabel</span><span class="p">.</span> <span class="k">FILTER</span><span class="p">(</span><span class="nf">LANG</span><span class="p">(</span><span class="nv">?eventLabel</span><span class="p">)</span> <span class="o">=</span> <span class="s">"en"</span><span class="p">).</span> <span class="p">}</span> <span class="p">}</span> <span class="c"># limit to 10 results so we don't timeout</span> <span class="k">LIMIT</span> <span class="mi">10</span> </pre></div> </td></tr></tbody></table> <p>Note: You can also run directly a hardcoded request via the TryIt links of this page. When it brings you directly to the result display you can always return to the source script unsing the link at the bottom of the interface. </p> <div id="toc" class="toc" role="navigation" aria-labelledby="mw-toc-heading"><input type="checkbox" role="button" id="toctogglecheckbox" class="toctogglecheckbox" style="display:none" /><div class="toctitle" lang="en" dir="ltr"><h2 id="mw-toc-heading">Contents</h2><span class="toctogglespan"><label class="toctogglelabel" for="toctogglecheckbox"></label></span></div> <ul> <li class="toclevel-1 tocsection-1"><a href="#Table_(default)"><span class="tocnumber">1</span> <span class="toctext">Table (default)</span></a></li> <li class="toclevel-1 tocsection-2"><a href="#Image_Grid"><span class="tocnumber">2</span> <span class="toctext">Image Grid</span></a> <ul> <li class="toclevel-2 tocsection-3"><a href="#Options"><span class="tocnumber">2.1</span> <span class="toctext">Options</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-4"><a href="#Map"><span class="tocnumber">3</span> <span class="toctext">Map</span></a> <ul> <li class="toclevel-2 tocsection-5"><a href="#Options_2"><span class="tocnumber">3.1</span> <span class="toctext">Options</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-6"><a href="#Line,_Bar,_Scatter_and_Area_Chart"><span class="tocnumber">4</span> <span class="toctext">Line, Bar, Scatter and Area Chart</span></a></li> <li class="toclevel-1 tocsection-7"><a href="#Bubble_Chart"><span class="tocnumber">5</span> <span class="toctext">Bubble Chart</span></a></li> <li class="toclevel-1 tocsection-8"><a href="#Tree_Map"><span class="tocnumber">6</span> <span class="toctext">Tree Map</span></a></li> <li class="toclevel-1 tocsection-9"><a href="#Tree"><span class="tocnumber">7</span> <span class="toctext">Tree</span></a></li> <li class="toclevel-1 tocsection-10"><a href="#Timeline"><span class="tocnumber">8</span> <span class="toctext">Timeline</span></a> <ul> <li class="toclevel-2 tocsection-11"><a href="#Options_3"><span class="tocnumber">8.1</span> <span class="toctext">Options</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-12"><a href="#Dimensions"><span class="tocnumber">9</span> <span class="toctext">Dimensions</span></a></li> <li class="toclevel-1 tocsection-13"><a href="#Graph"><span class="tocnumber">10</span> <span class="toctext">Graph</span></a></li> <li class="toclevel-1 tocsection-14"><a href="#Additional_Information"><span class="tocnumber">11</span> <span class="toctext">Additional Information</span></a> <ul> <li class="toclevel-2 tocsection-15"><a href="#RDF_Data_Type_Mapping"><span class="tocnumber">11.1</span> <span class="toctext">RDF Data Type Mapping</span></a></li> <li class="toclevel-2 tocsection-16"><a href="#Formatting"><span class="tocnumber">11.2</span> <span class="toctext">Formatting</span></a></li> <li class="toclevel-2 tocsection-17"><a href="#Mobile_/_Responsive"><span class="tocnumber">11.3</span> <span class="toctext">Mobile / Responsive</span></a></li> <li class="toclevel-2 tocsection-18"><a href="#Embed_Mode"><span class="tocnumber">11.4</span> <span class="toctext">Embed Mode</span></a></li> <li class="toclevel-2 tocsection-19"><a href="#Download_results"><span class="tocnumber">11.5</span> <span class="toctext">Download results</span></a></li> <li class="toclevel-2 tocsection-20"><a href="#Default_View"><span class="tocnumber">11.6</span> <span class="toctext">Default View</span></a></li> <li class="toclevel-2 tocsection-21"><a href="#Result_view_options"><span class="tocnumber">11.7</span> <span class="toctext">Result view options</span></a></li> <li class="toclevel-2 tocsection-22"><a href="#Title"><span class="tocnumber">11.8</span> <span class="toctext">Title</span></a></li> <li class="toclevel-2 tocsection-23"><a href="#List_of_WDQS_tags"><span class="tocnumber">11.9</span> <span class="toctext">List of WDQS tags</span></a></li> <li class="toclevel-2 tocsection-24"><a href="#Auto_language"><span class="tocnumber">11.10</span> <span class="toctext">Auto language</span></a></li> <li class="toclevel-2 tocsection-25"><a href="#Auto_coordinates"><span class="tocnumber">11.11</span> <span class="toctext">Auto coordinates</span></a></li> </ul> </li> </ul> </div> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Table_(default)" data-mw-thread-id="h-Table_(default)"><span id="Table_.28default.29"></span><span data-mw-comment-start="" id="h-Table_(default)"></span>Table (default)<span data-mw-comment-end="h-Table_(default)"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=1" title="Edit section: Table (default)"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Table_(default)","replies":[]}}--></div> <p>Shows the result data as a table. It is the <b>default view</b> for results and can display every data type. </p><p>Will map every variable from the SPARQL select clause to a <a href="#Formatting">formatted</a> table column. </p> <ul class="gallery mw-gallery-traditional"> <li class="gallerybox" style="width: 155px"> <div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"><a href="/wiki/File:WDQS_-_Table_Result_View.png" class="mw-file-description" title="Table Result"><img alt="Table Result" src="//upload.wikimedia.org/wikipedia/commons/thumb/d/de/WDQS_-_Table_Result_View.png/120px-WDQS_-_Table_Result_View.png" decoding="async" width="120" height="65" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/d/de/WDQS_-_Table_Result_View.png/180px-WDQS_-_Table_Result_View.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/d/de/WDQS_-_Table_Result_View.png/240px-WDQS_-_Table_Result_View.png 2x" data-file-width="507" data-file-height="274"/></a></span></div> <div class="gallerytext">Table Result</div> </li> <li class="gallerybox" style="width: 155px"> <div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"><a href="/wiki/File:WDQS_-_Table_Result_View_-_flipped.png" class="mw-file-description" title="Table Result on small screens with flipped columns"><img alt="Table Result on small screens with flipped columns" src="//upload.wikimedia.org/wikipedia/commons/thumb/9/94/WDQS_-_Table_Result_View_-_flipped.png/120px-WDQS_-_Table_Result_View_-_flipped.png" decoding="async" width="120" height="98" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/9/94/WDQS_-_Table_Result_View_-_flipped.png/180px-WDQS_-_Table_Result_View_-_flipped.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/9/94/WDQS_-_Table_Result_View_-_flipped.png/240px-WDQS_-_Table_Result_View_-_flipped.png 2x" data-file-width="265" data-file-height="216"/></a></span></div> <div class="gallerytext">Table Result on small screens with flipped columns</div> </li> </ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Image_Grid" data-mw-thread-id="h-Image_Grid"><span data-mw-comment-start="" id="h-Image_Grid"></span>Image Grid<span data-mw-comment-end="h-Image_Grid"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=2" title="Edit section: Image Grid"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Image_Grid","replies":["h-Options-Image_Grid"]}}--></div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:WDQS_-_Image_Grid_Result_View.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/b/b1/WDQS_-_Image_Grid_Result_View.png/220px-WDQS_-_Image_Grid_Result_View.png" decoding="async" width="220" height="165" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/b/b1/WDQS_-_Image_Grid_Result_View.png/330px-WDQS_-_Image_Grid_Result_View.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/b/b1/WDQS_-_Image_Grid_Result_View.png/440px-WDQS_-_Image_Grid_Result_View.png 2x" data-file-width="1086" data-file-height="813"/></a><figcaption>Image Grid <a class="external text" href="https://query.wikidata.org/embed.html#%23Even%20more%20cats%2C%20with%20pictures%0A%0A%23added%20before%202016-10%0A%0A%23defaultView%3AImageGrid%0ASELECT%20%3Fitem%20%3FitemLabel%20%3Fpic%0AWHERE%0A%7B%0A%09%3Fitem%20wdt%3AP31%20wd%3AQ146%20.%20%0A%09OPTIONAL%20%7B%0A%09%09%3Fitem%20wdt%3AP18%20%3Fpic%0A%09%7D%20%0A%09SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20%7D%0A%7D">Try Out</a> </figcaption></figure><p> Shows the result data as a grid with images. </p><p>Every grid item has a big picture and opens the gallery when clicking on it. </p><p>Contents an item is the <a href="#Formatting">formatted</a> row data. </p> <table class="wikitable"> <tbody><tr> <th>Variable </th> <th>Data Type </th> <th>Mapping </th> <th>Description </th></tr> <tr> <td>* </td> <td>Commons Media </td> <td>Grid Item </td> <td>Image columns will create a grid item. </td></tr></tbody></table> <p><b>Rows containing no image will be ignored</b>. </p><p>It’s nonetheless possible to include no image rows in the result by modifying the sparql by including a default image in case the image variable is not bound: </p> <div class="mw-highlight mw-highlight-lang-sparql mw-content-ltr" dir="ltr"><pre><span></span> <span class="k">optional</span> <span class="p">{</span> <span class="nv">?item</span> <span class="nn">wdt</span><span class="p">:</span><span class="nt">P18</span> <span class="nv">?img_</span> <span class="p">.</span> <span class="p">}</span> <span class="k">bind</span> <span class="p">(</span><span class="nf">if</span><span class="p">(</span><span class="nf">bound</span><span class="p">(</span><span class="nv">?img_</span><span class="p">),</span> <span class="nv">?img_</span><span class="p">,</span> <span class="nl">&lt;http://commons.wikimedia.org/wiki/Special:FilePath/File:Profile_avatar_placeholder_large.png></span><span class="p">)</span> <span class="k">as</span> <span class="nv">?image</span><span class="p">)</span> <span class="c"># [[:commons:File:Profile_avatar_placeholder_large.png]] as a placeholder</span> </pre></div> <p>Here the file <a href="https://commons.wikimedia.org/wiki/File:Profile_avatar_placeholder_large.png" class="extiw" title="commons:File:Profile avatar placeholder large.png">commons:File:Profile avatar placeholder large.png</a> is used as a placeholder, you can use your own. </p><p><a rel="nofollow" class="external text" href="https://w.wiki/66xV">See a complete query example using this technique</a>. </p> <div class="mw-heading mw-heading3"><h3 id="Options" data-mw-thread-id="h-Options-Image_Grid"><span data-mw-comment-start="" id="h-Options-Image_Grid"></span>Options<span data-mw-comment-end="h-Options-Image_Grid"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=3" title="Edit section: Options"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table class="wikitable"> <tbody><tr> <th>Option name </th> <th>Type </th> <th>Description </th></tr> <tr> <td><code>hide</code> </td> <td>One or more variable names (strings, starting with <code>?</code>), single value or array </td> <td>Don’t show these variables in the result. </td></tr></tbody></table> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Map" data-mw-thread-id="h-Map"><span data-mw-comment-start="" id="h-Map"></span>Map<span data-mw-comment-end="h-Map"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=4" title="Edit section: Map"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Map","replies":["h-Options_2-Map"]}}--></div> <p>Shows the result data as map with <a rel="nofollow" class="external text" href="https://www.openstreetmap.org">OpenStreetMap</a> data. </p> <table class="wikitable"> <tbody><tr> <th>Variable </th> <th>Data Type </th> <th>Mapping </th> <th>Description </th></tr> <tr> <td>* </td> <td>Coordinate or Geographic shape </td> <td>Map Marker </td> <td>Columns will create a marker on the map. <p>Content of that marker is the <a href="#Formatting">formatted</a> row data. </p> </td></tr> <tr> <td>?layer </td> <td> </td> <td>Map Marker Layer </td> <td>Creates a colored map layer that allows filtering. </td></tr> <tr> <td>?rgb </td> <td>Color </td> <td>Color Map Marker </td> <td>Example 000000 for black color. </td></tr></tbody></table> <ul class="gallery mw-gallery-traditional"> <li class="gallerybox" style="width: 155px"> <div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"><a href="/wiki/File:WDQS_-_Map_Result_View_-_layered.png" class="mw-file-description" title="Map with layers Try Out"><img alt="Map with layers Try Out" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/42/WDQS_-_Map_Result_View_-_layered.png/120px-WDQS_-_Map_Result_View_-_layered.png" decoding="async" width="120" height="70" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/42/WDQS_-_Map_Result_View_-_layered.png/180px-WDQS_-_Map_Result_View_-_layered.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/42/WDQS_-_Map_Result_View_-_layered.png/240px-WDQS_-_Map_Result_View_-_layered.png 2x" data-file-width="1091" data-file-height="637"/></a></span></div> <div class="gallerytext">Map with layers <a class="external text" href="https://query.wikidata.org/#%23Big%20cities%2C%20grouped%20into%20map%20layers%20by%20population%0A%23defaultView%3AMap%0ASELECT%20DISTINCT%20%3Fcity%20%3FcityLabel%20%28SAMPLE%28%3Floc%29%20AS%20%3Flocation%29%20%28MAX%28%3Fpop%29%20AS%20%3Fpopulation%29%20%28SAMPLE%28%3Flayer%29%20AS%20%3Flayer%29%0AWHERE%0A%7B%0A%20%20%3Fcity%20wdt%3AP31%2Fwdt%3AP279%2a%20wd%3AQ515%3B%0A%20%20%20%20%20%20%20%20wdt%3AP625%20%3Floc%3B%0A%20%20%20%20%20%20%20%20wdt%3AP1082%20%3Fpop.%0A%20%20FILTER%28%3Fpop%20%3E%3D%20500000%29.%0A%20%20BIND%28%0A%20%20%20%20IF%28%3Fpop%20%3C%201000000%2C%20%22%3C1M%22%2C%0A%20%20%20%20IF%28%3Fpop%20%3C%202000000%2C%20%221M-2M%22%2C%0A%20%20%20%20IF%28%3Fpop%20%3C%205000000%2C%20%222M-5M%22%2C%0A%20%20%20%20IF%28%3Fpop%20%3C%2010000000%2C%20%225M-10M%22%2C%0A%20%20%20%20IF%28%3Fpop%20%3C%2020000000%2C%20%2210M-20M%22%2C%0A%20%20%20%20%22%3E20M%22%29%29%29%29%29%0A%20%20%20%20AS%20%3Flayer%29.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22.%20%7D%0A%7D%0AGROUP%20BY%20%3Fcity%20%3FcityLabel">Try Out</a></div> </li> <li class="gallerybox" style="width: 155px"> <div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"><a href="/wiki/File:WDQS_-_Map_Result_View.png" class="mw-file-description" title="Map of airports in Belgium Try Out"><img alt="Map of airports in Belgium Try Out" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/e6/WDQS_-_Map_Result_View.png/120px-WDQS_-_Map_Result_View.png" decoding="async" width="120" height="99" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/e6/WDQS_-_Map_Result_View.png/180px-WDQS_-_Map_Result_View.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/e6/WDQS_-_Map_Result_View.png/240px-WDQS_-_Map_Result_View.png 2x" data-file-width="922" data-file-height="762"/></a></span></div> <div class="gallerytext">Map of airports in Belgium <a class="external text" href="https://query.wikidata.org/embed.html#%23Airports%20in%20Belgium%0A%23added%20before%202016-10%0A%20%0A%23List%20of%20airports%20in%20Belgium%0A%23defaultView%3AMap%0ASELECT%20DISTINCT%20%3Fairport%20%3Fcoor%20%3Frange%0AWHERE%0A%7B%0A%20%20%3Fairport%20wdt%3AP31%20wd%3AQ1248784%20%3B%0A%20%20%3Frange%20wd%3AQ31%3B%0A%20%20wdt%3AP625%20%3Fcoor.%0A%7D">Try Out</a></div> </li> </ul> <p>Technically, any <a href="/wiki/Special:GoToLinkedPage/enwiki/Q4018860" title="Special:GoToLinkedPage/enwiki/Q4018860">well-known text literal</a> can be displayed, not just a point coordinate. Non-point geometry values are never stored on Wikidata, but they can be constructed in SPARQL using functions like <code>CONCAT()</code> and <code>STRDT()</code> – see this <a href="/wiki/Wikidata:WikiProject_Czech_Republic/Showcase_Queries#Map_of_railway_lines" title="Wikidata:WikiProject Czech Republic/Showcase Queries">map of Czech railway lines</a> for an example of <code>LINESTRING()</code> geometry. </p> <div class="mw-heading mw-heading3"><h3 id="Options_2" data-mw-thread-id="h-Options_2-Map"><span data-mw-comment-start="" id="h-Options_2-Map"></span>Options<span data-mw-comment-end="h-Options_2-Map"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=5" title="Edit section: Options"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>specify using e.g. <code>#defaultView:Map{"hide":["?foo", "?bar"],"layer":"?bar"}</code>, using an array when there are multiple variables. </p> <table class="wikitable"> <tbody><tr> <th>Option name </th> <th>Type </th> <th>Description </th></tr> <tr> <td><code>hide</code> </td> <td>One or more variable names (strings, starting with <code>?</code>), single value or array </td> <td>Don’t show these variables in the result. </td></tr> <tr> <td><code>layer</code> </td> <td>One or more variable names (strings, starting with <code>?</code>), single value or array </td> <td>Use these variables for the map layer, instead of the default <code>?layerLabel</code>, <code>?layer</code>. </td></tr> <tr> <td><code>markercluster</code> </td> <td>boolean or object </td> <td> <ul><li>If the value is an object, pass these options to <a rel="nofollow" class="external text" href="https://github.com/Leaflet/Leaflet.markercluster/">Leaflet.markercluster</a>, a map plugin for clustering nearby map markers. (If the value is the empty object <code>{}</code>, Leaflet.markercluster is enabled with its default options.)</li> <li>If the value is <code>true</code> (default for queries without map layers), Leaflet.markercluster is enabled with a special set of options that doesn’t cluster any nearby map markers (it only “spiderfies” markers with <i>exactly</i> identical coordinates) and attempts to replicate the default map look as much as possible.</li> <li>If the value is <code>false</code> (default for queries with map layers), Leaflet.markercluster is not enabled.</li></ul> </td></tr></tbody></table> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Line,_Bar,_Scatter_and_Area_Chart" data-mw-thread-id="h-Line,_Bar,_Scatter_and_Area_Chart"><span id="Line.2C_Bar.2C_Scatter_and_Area_Chart"></span><span data-mw-comment-start="" id="h-Line,_Bar,_Scatter_and_Area_Chart"></span>Line, Bar, Scatter and Area Chart<span data-mw-comment-end="h-Line,_Bar,_Scatter_and_Area_Chart"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=6" title="Edit section: Line, Bar, Scatter and Area Chart"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Line,_Bar,_Scatter_and_Area_Chart","replies":[]}}--></div> <p>Shows one of these chart types. </p> <table class="wikitable"> <tbody><tr> <th>Variable </th> <th>Data Type </th> <th>Mapping </th> <th>Description </th></tr> <tr> <td>* </td> <td>Number <p>Label </p><p>DateTime </p> </td> <td>X-Axis <p>Y-Axis </p> </td> <td>First will be X-axis, second Y-axis </td></tr> <tr> <td>* </td> <td>Label </td> <td>Category / Legend Item (optional) </td> <td>Will only be used after the above are mapped </td></tr> <tr> <td>* </td> <td>Label </td> <td>Storyboard / Animation (optional) </td> <td>Will only be used after the above are mapped </td></tr></tbody></table> <ul class="gallery mw-gallery-traditional"> <li class="gallerybox" style="width: 155px"> <div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"><a href="/wiki/File:WDQS_-_Line_Chart_Result_View.png" class="mw-file-description" title="Line Chart Try Out"><img alt="Line Chart Try Out" src="//upload.wikimedia.org/wikipedia/commons/thumb/8/84/WDQS_-_Line_Chart_Result_View.png/120px-WDQS_-_Line_Chart_Result_View.png" decoding="async" width="120" height="74" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/8/84/WDQS_-_Line_Chart_Result_View.png/180px-WDQS_-_Line_Chart_Result_View.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/8/84/WDQS_-_Line_Chart_Result_View.png/240px-WDQS_-_Line_Chart_Result_View.png 2x" data-file-width="1078" data-file-height="669"/></a></span></div> <div class="gallerytext">Line Chart <a class="external text" href="https://query.wikidata.org/embed.html#%23defaultView%3ALineChart%0ASELECT%20%3Fcountry%20%3Fyear%20%3Fpopulation%20%3FcountryLabel%0AWITH%0A%7B%0A%20%20%20%20SELECT%20%3Fcountry%20%3Fyear%20%28avg%28%3FpopulationValue%29%20as%20%3Fpopulation%29%0A%20%20%20%20WHERE%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%3Fcountry%20wdt%3AP47%20wd%3AQ183.%0A%20%20%20%20%20%20%20%20%20%20%3Fcountry%20p%3AP1082%20%3FpopulationStatement.%0A%20%20%20%20%20%20%20%20%20%20%3FpopulationStatement%20ps%3AP1082%20%3FpopulationValue.%0A%20%20%20%20%20%20%20%20%20%20%3FpopulationStatement%20pq%3AP585%20%3Fdate.%0A%20%20%20%20%20%20%20%20%20%20bind%28str%28YEAR%28%3Fdate%29%29%20AS%20%3Fyear%29%0A%20%20%20%20%7D%0A%20%20%20%20group%20by%20%3Fcountry%20%3Fyear%0A%7D%20AS%20%25results%0AWHERE%0A%7B%0A%20%20%20%20INCLUDE%20%25results.%0A%20%20%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D">Try Out</a></div> </li> <li class="gallerybox" style="width: 155px"> <div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"><a href="/wiki/File:WDQS_-_Area_Chart_Result_View.png" class="mw-file-description" title="Area Chart Try Out"><img alt="Area Chart Try Out" src="//upload.wikimedia.org/wikipedia/commons/thumb/8/8d/WDQS_-_Area_Chart_Result_View.png/120px-WDQS_-_Area_Chart_Result_View.png" decoding="async" width="120" height="81" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/8/8d/WDQS_-_Area_Chart_Result_View.png/180px-WDQS_-_Area_Chart_Result_View.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/8/8d/WDQS_-_Area_Chart_Result_View.png/240px-WDQS_-_Area_Chart_Result_View.png 2x" data-file-width="1097" data-file-height="744"/></a></span></div> <div class="gallerytext">Area Chart <a class="external text" href="https://query.wikidata.org/embed.html#%23Cancer%20deaths%20per%20year%20and%20cancer%20type%0A%0A%23defaultView%3AAreaChart%0ASELECT%20%3Fcid%20%28str%28SAMPLE%28%3Fyear_%29%29%20AS%20%3Fyear%20%29%20%20%28COUNT%28%2a%29%20AS%20%3Fcount%29%20%20%3Fcause%20WHERE%20%7B%0A%20%20%3Fpid%20wdt%3AP31%20wd%3AQ5.%0A%20%20%3Fpid%20wdt%3AP509%20%3Fcid.%0A%20%20%3Fcid%20wdt%3AP279%2a%20wd%3AQ12078.%0A%20%20%0A%20%20OPTIONAL%20%7B%0A%20%20%20%20%3Fcid%20rdfs%3Alabel%20%3Fcause.%0A%20%20%20%20FILTER%28%28LANG%28%3Fcause%29%29%20%3D%20%22en%22%29%0A%20%20%7D%0A%20%20%20%3Fpid%20wdt%3AP570%20%3F_date_of_death.%20%0A%20%20BIND%20%28%20YEAR%28%3F_date_of_death%29%20AS%20%3Fyear_%20%29%0A%20%20FILTER%28%20BOUND%28%3Fcause%29%20%20%29%0A%20%20FILTER%28%20BOUND%28%3Fyear_%29%20%20%29%0A%20%20FILTER%28%20%3Fyear_%20%3E%201960%20%29%0A%7D%0AGROUP%20BY%20%3Fcid%20%3Fcause%20%3Fyear_">Try Out</a></div> </li> <li class="gallerybox" style="width: 155px"> <div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"><span><video id="mwe_player_0" poster="//upload.wikimedia.org/wikipedia/commons/thumb/8/84/WDQS_-_Bar_Chart_Result_View_-_animated.webm/120px--WDQS_-_Bar_Chart_Result_View_-_animated.webm.jpg" controls="" preload="none" data-mw-tmh="" class="mw-file-element" width="120" height="69" data-durationhint="32" data-mwtitle="WDQS_-_Bar_Chart_Result_View_-_animated.webm" data-mwprovider="wikimediacommons"><source src="//upload.wikimedia.org/wikipedia/commons/transcoded/8/84/WDQS_-_Bar_Chart_Result_View_-_animated.webm/WDQS_-_Bar_Chart_Result_View_-_animated.webm.480p.vp9.webm" type="video/webm; codecs=&quot;vp9, opus&quot;" data-transcodekey="480p.vp9.webm" data-width="832" data-height="480"/><source src="//upload.wikimedia.org/wikipedia/commons/transcoded/8/84/WDQS_-_Bar_Chart_Result_View_-_animated.webm/WDQS_-_Bar_Chart_Result_View_-_animated.webm.720p.vp9.webm" type="video/webm; codecs=&quot;vp9, opus&quot;" data-transcodekey="720p.vp9.webm" data-width="1248" data-height="720"/><source src="//upload.wikimedia.org/wikipedia/commons/8/84/WDQS_-_Bar_Chart_Result_View_-_animated.webm" type="video/webm; codecs=&quot;vp8&quot;" data-width="1828" data-height="1055"/><source src="//upload.wikimedia.org/wikipedia/commons/transcoded/8/84/WDQS_-_Bar_Chart_Result_View_-_animated.webm/WDQS_-_Bar_Chart_Result_View_-_animated.webm.240p.vp9.webm" type="video/webm; codecs=&quot;vp9, opus&quot;" data-transcodekey="240p.vp9.webm" data-width="416" data-height="240"/><source src="//upload.wikimedia.org/wikipedia/commons/transcoded/8/84/WDQS_-_Bar_Chart_Result_View_-_animated.webm/WDQS_-_Bar_Chart_Result_View_-_animated.webm.360p.vp9.webm" type="video/webm; codecs=&quot;vp9, opus&quot;" data-transcodekey="360p.vp9.webm" data-width="624" data-height="360"/><source src="//upload.wikimedia.org/wikipedia/commons/transcoded/8/84/WDQS_-_Bar_Chart_Result_View_-_animated.webm/WDQS_-_Bar_Chart_Result_View_-_animated.webm.360p.webm" type="video/webm; codecs=&quot;vp8, vorbis&quot;" data-transcodekey="360p.webm" data-width="624" data-height="360"/></video></span></span></div> <div class="gallerytext">Bar Chart (Animated) <a class="external text" href="https://query.wikidata.org/embed.html#%23Battles%20per%20year%20per%20continent%20and%20country%20last%2080%20years%20%28animated%29%0A%0A%23defaultView%3ABarChart%0ASELECT%20%28SAMPLE%28%3F_continentLabel%29%20AS%20%3Fcontient%29%20%28COUNT%28%3F_country%29%20AS%20%3Fbattles%29%20%28SAMPLE%28%3F_countryLabel%29%20AS%20%3F_countryLabel%29%20%28SAMPLE%28%3Fyear%29%20AS%20%3Fyear%29%20%20WHERE%20%7B%0A%20%20%3Fsubj%20wdt%3AP31%20wd%3AQ178561.%0A%20%20OPTIONAL%20%7B%20%3Fsubj%20wdt%3AP580%20%3Fd1.%20%7D%0A%20%20OPTIONAL%20%7B%20%3Fsubj%20wdt%3AP585%20%3Fd2.%20%7D%0A%20%20OPTIONAL%20%7B%20%3Fsubj%20wdt%3AP582%20%3Fd3.%20%7D%0A%20%20BIND%28IF%28%21BOUND%28%3Fd1%29%2C%20IF%28%21BOUND%28%3Fd2%29%2C%20%3Fd3%2C%20%3Fd2%29%2C%20%3Fd1%29%20AS%20%3Fdate%29%0A%20%20BIND%28str%28YEAR%28%3Fdate%29%29%20AS%20%3Fyear%29%0A%20%20%3Fsubj%20wdt%3AP276%20%3F_loc.%0A%20%20%3F_loc%20wdt%3AP17%20%3F_country.%0A%20%20%3F_country%20wdt%3AP30%20%3F_continent.%0A%20%20%3F_country%20rdfs%3Alabel%20%3F_countryLabel.%0A%20%20%3F_continent%20rdfs%3Alabel%20%3F_continentLabel.%0A%20%20%0A%20%20BIND%28%28NOW%28%29%29%20-%20%3Fdate%20AS%20%3Fdistance%29%0A%20%20FILTER%28BOUND%28%3Fyear%29%29%0A%20%20FILTER%28%28LANG%28%3F_countryLabel%29%29%20%3D%20%22en%22%29%0A%20%20FILTER%28%28LANG%28%3F_continentLabel%29%29%20%3D%20%22en%22%29%0A%20%20FILTER%28%280%20%3C%3D%20%3Fdistance%29%20%26%26%20%28%3Fdistance%20%3C%2031%20%2a%2012%20%2a%2080%29%29%0A%7D%0AGROUP%20BY%20%3Fyear%20%3F_country%0AORDER%20BY%20%3F_countryLabel">Try Out</a></div> </li> <li class="gallerybox" style="width: 155px"> <div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"><a href="/wiki/File:WDQS_-_Scatter_Chart_Result_View.png" class="mw-file-description" title="Scatter Chart (animated) Try Out"><img alt="Scatter Chart (animated) Try Out" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/6d/WDQS_-_Scatter_Chart_Result_View.png/120px-WDQS_-_Scatter_Chart_Result_View.png" decoding="async" width="120" height="77" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/6d/WDQS_-_Scatter_Chart_Result_View.png/180px-WDQS_-_Scatter_Chart_Result_View.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/6d/WDQS_-_Scatter_Chart_Result_View.png/240px-WDQS_-_Scatter_Chart_Result_View.png 2x" data-file-width="1095" data-file-height="700"/></a></span></div> <div class="gallerytext">Scatter Chart (animated) <a class="external text" href="https://query.wikidata.org/embed.html#%23Number%20of%20films%20by%20year%20and%20genre%0A%0A%23defaultView%3AScatterChart%0ASELECT%20%20%20%3Fyear%20%20%28COUNT%28%3F_genre%29%20AS%20%3Fcount%20%29%20%28SAMPLE%28%3F_genreLabel%29%20AS%20%3Flabel%20%29%20%20%28%3Fyear%20as%20%3Fyear_shown%29%20WHERE%20%7B%0A%20%20%3Fitem%20wdt%3AP31%20wd%3AQ11424.%0A%20%20%3Fitem%20wdt%3AP577%20%3F_publication_date.%0A%20%20%3Fitem%20wdt%3AP136%20%3F_genre.%0A%20%20%3F_genre%20rdfs%3Alabel%20%3F_genreLabel.%0A%20%20BIND%28str%28YEAR%28%3F_publication_date%29%29%20AS%20%3Fyear%29%0A%20%20FILTER%28%28LANG%28%3F_genreLabel%29%29%20%3D%20%22en%22%29%0A%20%20%0A%20FILTER%20%28%3F_publication_date%20%3E%3D%20%222000-00-00T00%3A00%3A00Z%22%5E%5Exsd%3AdateTime%29%0A%7D%0AGROUP%20BY%20%3F_genreLabel%20%3Fyear%0AHAVING%20%28%3Fcount%20%3E%2030%29">Try Out</a></div> </li> </ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Bubble_Chart" data-mw-thread-id="h-Bubble_Chart"><span data-mw-comment-start="" id="h-Bubble_Chart"></span>Bubble Chart<span data-mw-comment-end="h-Bubble_Chart"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=7" title="Edit section: Bubble Chart"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Bubble_Chart","replies":[]}}--></div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:WDQS_-_Bubble_Chart_Result_View.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/f/f8/WDQS_-_Bubble_Chart_Result_View.png/220px-WDQS_-_Bubble_Chart_Result_View.png" decoding="async" width="220" height="206" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/f/f8/WDQS_-_Bubble_Chart_Result_View.png/330px-WDQS_-_Bubble_Chart_Result_View.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/f/f8/WDQS_-_Bubble_Chart_Result_View.png/440px-WDQS_-_Bubble_Chart_Result_View.png 2x" data-file-width="777" data-file-height="728"/></a><figcaption>Bubble Chart <a class="external text" href="https://query.wikidata.org/embed.html#%23Overall%20causes%20of%20death%20ranking%0A%23added%20before%202016-10%0A%0A%23defaultView%3ABubbleChart%0ASELECT%20%3Fcid%20%3Fcause%20%28count%28%2a%29%20as%20%3Fcount%29%0AWHERE%0A%7B%0A%09%3Fpid%20wdt%3AP31%20wd%3AQ5%20.%0A%09%3Fpid%20wdt%3AP509%20%3Fcid%20.%0A%09OPTIONAL%20%7B%0A%09%09%3Fcid%20rdfs%3Alabel%20%3Fcause%20%0A%09%09filter%20%28lang%28%3Fcause%29%20%3D%20%22en%22%29%0A%09%7D%0A%7D%0AGROUP%20BY%20%3Fcid%20%3Fcause%0AORDER%20BY%20DESC%28%3Fcount%29%20ASC%28%3Fcause%29">Try Out</a> </figcaption></figure> <p>Shows a bubble chart where the size and the color of the bubble can configured. </p><p>When an item is provided a bubble is linked to Wikidata.org. </p> <table class="wikitable"> <tbody><tr> <th>Variable </th> <th>Data Type </th> <th>Mapping </th></tr> <tr> <td>* </td> <td>Label </td> <td>Bubble Label </td></tr> <tr> <td>* </td> <td>Number </td> <td>Bubble Size </td></tr> <tr> <td>* </td> <td>Item </td> <td>Bubble Link (optional) </td></tr> <tr> <td>?rgb </td> <td>Color </td> <td>Bubble Color (optional) </td></tr></tbody></table> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Tree_Map" data-mw-thread-id="h-Tree_Map"><span data-mw-comment-start="" id="h-Tree_Map"></span>Tree Map<span data-mw-comment-end="h-Tree_Map"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=8" title="Edit section: Tree Map"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Tree_Map","replies":[]}}--></div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:WDQS_-_Tree_Result_View.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/1/11/WDQS_-_Tree_Result_View.png/220px-WDQS_-_Tree_Result_View.png" decoding="async" width="220" height="153" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/1/11/WDQS_-_Tree_Result_View.png/330px-WDQS_-_Tree_Result_View.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/1/11/WDQS_-_Tree_Result_View.png/440px-WDQS_-_Tree_Result_View.png 2x" data-file-width="1097" data-file-height="765"/></a><figcaption>Tree Map <a class="external text" href="https://query.wikidata.org/#%23Popular%20television%20series%20%28in%20treeview%29%0A%23added%20before%202016-10%0A%0A%23defaultView%3ATreeMap%0ASELECT%20%3Fshow%20%3FshowLabel%20%20%3Fseason%20%3FseasonLabel%20%3Fepisode%20%3FepisodeLabel%0AWHERE%20%0A%7B%0A%09%7B%0A%20%09%09BIND%28wd%3AQ886%20as%20%3Fshow%29%20.%0A%09%09%3Fseason%20wdt%3AP179%20%3Fshow%20.%0A%09%09%3Fepisode%20wdt%3AP4908%20%3Fseason%20.%0A%09%7D%20%20%0A%09UNION%20%0A%09%7B%0A%09%09BIND%28wd%3AQ16538%20as%20%3Fshow%29%20.%0A%09%09%3Fseason%20wdt%3AP179%20%3Fshow%20.%0A%20%20%09%09%3Fepisode%20wdt%3AP4908%20%3Fseason%20.%0A%09%7D%20%20%20%0A%09UNION%0A%09%7B%0A%09%09BIND%28wd%3AQ147235%20as%20%3Fshow%29%20.%0A%09%09%3Fseason%20wdt%3AP179%20%3Fshow%20.%0A%20%20%09%09%3Fepisode%20wdt%3AP4908%20%3Fseason%20.%0A%09%7D%20%0A%0A%09SERVICE%20wikibase%3Alabel%20%7B%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20%7D%0A%7D">Try Out</a> </figcaption></figure> <p>Shows a zoomable tree map. </p> <table class="wikitable"> <tbody><tr> <th>Variable </th> <th>Data Type </th> <th>Mapping </th> <th>Description </th></tr> <tr> <td>* </td> <td>Label </td> <td>Label </td> <td>1st label in a row will be 1st level in tree map. <p>2nd label will be 2nd level. </p><p>3rd label will be 3rd level etc.. </p> </td></tr> <tr> <td>* </td> <td>Item </td> <td>Link (optional) </td> <td> </td></tr> <tr> <td>* </td> <td>Quantity </td> <td>Size </td> <td> </td></tr></tbody></table> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Tree" data-mw-thread-id="h-Tree"><span data-mw-comment-start="" id="h-Tree"></span>Tree<span data-mw-comment-end="h-Tree"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=9" title="Edit section: Tree"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Tree","replies":[]}}--></div> <p>Shows an expandable tree. </p> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:Wikidata_Query_-_Tree.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/6/66/Wikidata_Query_-_Tree.png/220px-Wikidata_Query_-_Tree.png" decoding="async" width="220" height="174" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/66/Wikidata_Query_-_Tree.png/330px-Wikidata_Query_-_Tree.png 1.5x, //upload.wikimedia.org/wikipedia/commons/6/66/Wikidata_Query_-_Tree.png 2x" data-file-width="365" data-file-height="288"/></a><figcaption>Tree <a class="external text" href="https://query.wikidata.org/embed.html#%23defaultView%3ATree%0ASELECT%20%3Fcontinent%20%3FcontinentFlag%20%3FcontinentLabel%20%0A%3Fcountry%20%3FcountryLabel%20%3FcountryFlag%20%0A%3Fregion%20%3FregionLabel%20%3FregionFlag%20%0A%3Fcity%20%3FcityImage%20%3Fpop2%20WHERE%20%7B%0A%20%20%3Fcontinent%20wdt%3AP31%20wd%3AQ5107.%0A%20%20%3Fcountry%20wdt%3AP31%20wd%3AQ3624078%3B%0A%20%20%20%20%20%20%20%20%20%20%20wdt%3AP30%20%3Fcontinent%3B%20%0A%20%20OPTIONAL%20%7B%20%3Fcontinent%20wdt%3AP242%20%3FcontinentFlag.%20%7D%0A%20%20OPTIONAL%20%7B%20%3Fcountry%20wdt%3AP41%20%3FcountryFlag.%20%7D%0A%20%20OPTIONAL%20%7B%0A%20%20%20%20%3Fcountry%20wdt%3AP150%20%3Fregion.%0A%20%20%20%20OPTIONAL%20%7B%20%3Fregion%20wdt%3AP41%20%3FregionFlag.%20%7D%0A%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%3Fregion%20wdt%3AP36%20%3Fcity.%0A%20%20%20%20%20%20%3Fcity%20rdfs%3Alabel%20%3FbareCityLabel.%0A%20%20%20%20%20%20FILTER(LANG(%3FbareCityLabel)%20%3D%20%22en%22).%0A%20%20%20%20%20%20OPTIONAL%20%7B%20%3Fcity%20wdt%3AP1082%20%3Fpop.%20%7D%0A%20%20%20%20%20%20OPTIONAL%20%7B%20%3Fcity%20wdt%3AP18%20%3FcityImage.%20%7D%0A%20%20%20%20%20%20BIND(IF(BOUND(%3Fpop)%2CCONCAT(%3FbareCityLabel%2C%20%22%20(Population%3A%20%22%2C%20STR(%3Fpop)%2C%20%22)%22)%2C%3FbareCityLabel)%20AS%20%3Fpop2).%0A%20%20%20%20%7D%0A%20%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D%0AORDER%20BY%20%3FcontinentLabel%20%3FcountryLabel%20%3FregionLabel%20%3FcityLabel">Try Out</a></figcaption></figure> <table class="wikitable"> <tbody><tr> <th>Variable </th> <th>Data Type </th> <th>Mapping </th> <th>Description </th></tr> <tr> <td>* </td> <td>Item </td> <td>Node ID </td> <td>First item will be a root node the following items in the same row will be nested. </td></tr> <tr> <td>* </td> <td>Label </td> <td>Node Label (optional) </td> <td rowspan="2">Labels will be appended to current node. </td></tr> <tr> <td>* </td> <td>Number </td> <td>Node Label (optional) </td></tr> <tr> <td>* </td> <td>Commons Media </td> <td>Item image </td> <td> </td></tr></tbody></table> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Timeline" data-mw-thread-id="h-Timeline"><span data-mw-comment-start="" id="h-Timeline"></span>Timeline<span data-mw-comment-end="h-Timeline"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=10" title="Edit section: Timeline"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Timeline","replies":["h-Options_3-Timeline"]}}--></div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:Query.wikidata.org_-_example_of_timeline_visualization.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/6/6d/Query.wikidata.org_-_example_of_timeline_visualization.png/220px-Query.wikidata.org_-_example_of_timeline_visualization.png" decoding="async" width="220" height="100" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/6d/Query.wikidata.org_-_example_of_timeline_visualization.png/330px-Query.wikidata.org_-_example_of_timeline_visualization.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/6d/Query.wikidata.org_-_example_of_timeline_visualization.png/440px-Query.wikidata.org_-_example_of_timeline_visualization.png 2x" data-file-width="1821" data-file-height="830"/></a><figcaption>Timeline <a class="external text" href="https://query.wikidata.org/embed.html#%23defaultView%3ATimeline%0ASELECT%20%3Fitem%20%3FitemLabel%20%3Flaunchdate%20%28SAMPLE%28%3Fimage%29%20AS%20%3Fimage%29%0AWHERE%0A%7B%0A%09%3Fitem%20wdt%3AP31%20wd%3AQ26529%20.%0A%20%20%20%20%3Fitem%20wdt%3AP619%20%3Flaunchdate%20.%0A%09SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20%7D%0A%20%20%20%20OPTIONAL%20%7B%20%3Fitem%20wdt%3AP18%20%3Fimage%20%7D%0A%7D%0AGROUP%20BY%20%3Fitem%20%3FitemLabel%20%3Flaunchdate">Try Out</a> </figcaption></figure> <p>Shows a explorable timeline. </p> <table class="wikitable"> <tbody><tr> <th>Variable </th> <th>Data Type </th> <th>Mapping </th> <th>Description </th></tr> <tr> <td>* </td> <td>DateTime </td> <td>Item Point in Time <p>Item End Point in Time </p> </td> <td>First date in a row sets the item position in the timeline. <p>If a second date is present a start and end date will be set. </p> </td></tr> <tr> <td>* </td> <td>Commons Media </td> <td>Item image </td> <td> </td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="Options_3" data-mw-thread-id="h-Options_3-Timeline"><span data-mw-comment-start="" id="h-Options_3-Timeline"></span>Options<span data-mw-comment-end="h-Options_3-Timeline"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=11" title="Edit section: Options"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table class="wikitable"> <tbody><tr> <th>Option name </th> <th>Type </th> <th>Description </th></tr> <tr> <td><code>hide</code> </td> <td>One or more variable names (strings, starting with <code>?</code>), single value or array </td> <td>Don’t show these variables in the result. </td></tr></tbody></table> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Dimensions" data-mw-thread-id="h-Dimensions"><span data-mw-comment-start="" id="h-Dimensions"></span>Dimensions<span data-mw-comment-end="h-Dimensions"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=12" title="Edit section: Dimensions"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Dimensions","replies":[]}}--></div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:WDQS_-_Dimensions_Result_View.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/d/db/WDQS_-_Dimensions_Result_View.png/220px-WDQS_-_Dimensions_Result_View.png" decoding="async" width="220" height="158" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/d/db/WDQS_-_Dimensions_Result_View.png/330px-WDQS_-_Dimensions_Result_View.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/d/db/WDQS_-_Dimensions_Result_View.png/440px-WDQS_-_Dimensions_Result_View.png 2x" data-file-width="1075" data-file-height="771"/></a><figcaption>Dimensions <a class="external text" href="https://query.wikidata.org/embed.html#%23defaultView%3ADimensions%0ASELECT%20%3FelementLabel%20%3F_boiling_point%20%3F_melting_point%20%3F_electronegativity%20%3F_density%20%3F_mass%20WHERE%20%7B%0A%20%20%3Felement%20wdt%3AP31%20wd%3AQ11344.%0A%20%20%3Felement%20wdt%3AP2102%20%3F_boiling_point.%0A%20%20%3Felement%20wdt%3AP2101%20%3F_melting_point.%0A%20%20%3Felement%20wdt%3AP1108%20%3F_electronegativity.%0A%20%20%3Felement%20wdt%3AP2054%20%3F_density.%0A%3Felement%20wdt%3AP2067%20%3F_mass.%20%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22.%20%7D%0A%7D%0ALIMIT%20100">Try Out</a> </figcaption></figure> <p>Shows dimension and their links. </p><p>It also allows filtering them by selecting an axis fraction. </p><p>This type of graph is also known as <a href="/wiki/Q932996" title="Q932996">parallel coordinates</a>. </p> <table class="wikitable"> <tbody><tr> <th>Variable </th> <th>Data Type </th> <th>Mapping </th> <th>Description </th></tr> <tr> <td>* </td> <td>Label </td> <td rowspan="3">Dimension </td> <td rowspan="3">Every column in the result row is mapped to a dimension </td></tr> <tr> <td>* </td> <td>Number </td></tr> <tr> <td>* </td> <td>DateTime </td></tr></tbody></table> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Graph" data-mw-thread-id="h-Graph"><span data-mw-comment-start="" id="h-Graph"></span>Graph<span data-mw-comment-end="h-Graph"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=13" title="Edit section: Graph"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Graph","replies":[]}}--></div> <p>Shows an interactive graph that allow hierarchically ordering and exploring items. </p> <table class="wikitable"> <tbody><tr> <th>Variable </th> <th>Data Type </th> <th>Mapping </th> <th>Description </th></tr> <tr> <td>* </td> <td>Item </td> <td>Node ID </td> <td>First item in a row of output variables will have an arrow pointing to the items in the same row. </td></tr> <tr> <td>* </td> <td>Label </td> <td>Node Label (optional) </td> <td> </td></tr> <tr> <td>* </td> <td>Commons Media </td> <td>Node Image (optional) </td> <td> </td></tr> <tr> <td>?rgb </td> <td>Color </td> <td>Node Color (optional) </td> <td>Color of the item just before the rgb variable. Example 000000 for black color. </td></tr> <tr> <td>* </td> <td>Number </td> <td>Node Size (optional) </td> <td> </td></tr> <tr> <td>?edgeLabel </td> <td>Label </td> <td>Edge Label (optional) </td> <td> </td></tr></tbody></table> <ul class="gallery mw-gallery-traditional"> <li class="gallerybox" style="width: 155px"> <div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"><a href="/wiki/File:WDQS_-_Graph_Result_View.png" class="mw-file-description" title="Graph"><img alt="Graph" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/b0/WDQS_-_Graph_Result_View.png/120px-WDQS_-_Graph_Result_View.png" decoding="async" width="120" height="72" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/b/b0/WDQS_-_Graph_Result_View.png/180px-WDQS_-_Graph_Result_View.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/b/b0/WDQS_-_Graph_Result_View.png/240px-WDQS_-_Graph_Result_View.png 2x" data-file-width="1082" data-file-height="647"/></a></span></div> <div class="gallerytext">Graph </div> </li> <li class="gallerybox" style="width: 155px"> <div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"><span><video id="mwe_player_1" poster="//upload.wikimedia.org/wikipedia/commons/thumb/e/ef/WDQS_-_Graph_Result_View_-_browse.webm/120px--WDQS_-_Graph_Result_View_-_browse.webm.jpg" controls="" preload="none" data-mw-tmh="" class="mw-file-element" width="120" height="97" data-durationhint="17" data-mwtitle="WDQS_-_Graph_Result_View_-_browse.webm" data-mwprovider="wikimediacommons"><source src="//upload.wikimedia.org/wikipedia/commons/transcoded/e/ef/WDQS_-_Graph_Result_View_-_browse.webm/WDQS_-_Graph_Result_View_-_browse.webm.480p.vp9.webm" type="video/webm; codecs=&quot;vp9, opus&quot;" data-transcodekey="480p.vp9.webm" data-width="594" data-height="480"/><source src="//upload.wikimedia.org/wikipedia/commons/transcoded/e/ef/WDQS_-_Graph_Result_View_-_browse.webm/WDQS_-_Graph_Result_View_-_browse.webm.720p.vp9.webm" type="video/webm; codecs=&quot;vp9, opus&quot;" data-transcodekey="720p.vp9.webm" data-width="892" data-height="720"/><source src="//upload.wikimedia.org/wikipedia/commons/e/ef/WDQS_-_Graph_Result_View_-_browse.webm" type="video/webm; codecs=&quot;vp8&quot;" data-width="1012" data-height="817"/><source src="//upload.wikimedia.org/wikipedia/commons/transcoded/e/ef/WDQS_-_Graph_Result_View_-_browse.webm/WDQS_-_Graph_Result_View_-_browse.webm.240p.vp9.webm" type="video/webm; codecs=&quot;vp9, opus&quot;" data-transcodekey="240p.vp9.webm" data-width="298" data-height="240"/><source src="//upload.wikimedia.org/wikipedia/commons/transcoded/e/ef/WDQS_-_Graph_Result_View_-_browse.webm/WDQS_-_Graph_Result_View_-_browse.webm.360p.vp9.webm" type="video/webm; codecs=&quot;vp9, opus&quot;" data-transcodekey="360p.vp9.webm" data-width="446" data-height="360"/><source src="//upload.wikimedia.org/wikipedia/commons/transcoded/e/ef/WDQS_-_Graph_Result_View_-_browse.webm/WDQS_-_Graph_Result_View_-_browse.webm.360p.webm" type="video/webm; codecs=&quot;vp8, vorbis&quot;" data-transcodekey="360p.webm" data-width="446" data-height="360"/></video></span></span></div> <div class="gallerytext">Graph browsing Abraham Lincoln (animated)</div> </li> </ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Additional_Information" data-mw-thread-id="h-Additional_Information"><span data-mw-comment-start="" id="h-Additional_Information"></span>Additional Information<span data-mw-comment-end="h-Additional_Information"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=14" title="Edit section: Additional Information"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Additional_Information","replies":["h-RDF_Data_Type_Mapping-Additional_Information","h-Formatting-Additional_Information","h-Mobile_\/_Responsive-Additional_Information","h-Embed_Mode-Additional_Information","h-Download_results-Additional_Information","h-Default_View-Additional_Information","h-Result_view_options-Additional_Information","h-Title-Additional_Information","h-List_of_WDQS_tags-Additional_Information","h-Auto_language-Additional_Information","h-Auto_coordinates-Additional_Information"]}}--></div> <div class="mw-heading mw-heading3"><h3 id="RDF_Data_Type_Mapping" data-mw-thread-id="h-RDF_Data_Type_Mapping-Additional_Information"><span data-mw-comment-start="" id="h-RDF_Data_Type_Mapping-Additional_Information"></span>RDF Data Type Mapping<span data-mw-comment-end="h-RDF_Data_Type_Mapping-Additional_Information"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=15" title="Edit section: RDF Data Type Mapping"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table class="wikitable"> <tbody><tr> <th>RDF Type </th> <th>RDF Data Type </th> <th>Constraint </th> <th>Data Type </th></tr> <tr> <td>URI </td> <td> </td> <td>String starts with <div class="mw-highlight mw-content-ltr" dir="ltr"><pre>http://www.wikidata.org/entity/Q</pre></div> </td> <td>Entity </td></tr> <tr> <td>URI </td> <td> </td> <td>String starts with <div class="mw-highlight mw-content-ltr" dir="ltr"><pre>http://commons.wikimedia.org/wiki/Special:FilePath</pre></div> </td> <td>Commons Media </td></tr> <tr> <td>Literal </td> <td><a rel="nofollow" class="external free" href="http://www.w3.org/2001/XMLSchema#dateTime">http://www.w3.org/2001/XMLSchema#dateTime</a> </td> <td> </td> <td>DateTime </td></tr> <tr> <td>Literal </td> <td><a rel="nofollow" class="external free" href="http://www.opengis.net/ont/geosparql#wktLiteral">http://www.opengis.net/ont/geosparql#wktLiteral</a> </td> <td> </td> <td>Coordinate </td></tr> <tr> <td>Literal </td> <td>http://www.w3.org/2001/XMLSchema#double <p>http://www.w3.org/2001/XMLSchema#float </p><p>http://www.w3.org/2001/XMLSchema#decimal </p><p>http://www.w3.org/2001/XMLSchema#integer </p><p>http://www.w3.org/2001/XMLSchema#long </p><p>http://www.w3.org/2001/XMLSchema#int </p><p>http://www.w3.org/2001/XMLSchema#short </p><p>http://www.w3.org/2001/XMLSchema#nonNegativeInteger </p><p>http://www.w3.org/2001/XMLSchema#positiveInteger </p><p>http://www.w3.org/2001/XMLSchema#unsignedLong </p><p>http://www.w3.org/2001/XMLSchema#unsignedInt </p><p>http://www.w3.org/2001/XMLSchema#unsignedShort </p><p>http://www.w3.org/2001/XMLSchema#nonPositiveInteger </p><p>http://www.w3.org/2001/XMLSchema#negativeInteger </p> </td> <td> </td> <td>Number </td></tr> <tr> <td>Literal </td> <td> </td> <td>Has no RDF Data Type </td> <td>Label </td></tr> <tr> <td>Literal </td> <td> </td> <td>Has property <div class="mw-highlight mw-content-ltr" dir="ltr"><pre>xml:lang</pre></div> </td> <td>Label </td></tr> <tr> <td>Literal </td> <td> </td> <td>String matches <div class="mw-highlight mw-content-ltr" dir="ltr"><pre>/^[0-9A-F]{6}$/</pre></div> </td> <td>Color </td></tr></tbody></table> <p><span id="Formatting"></span> </p> <div class="mw-heading mw-heading3"><h3 id="Formatting" data-mw-thread-id="h-Formatting-Additional_Information"><span data-mw-comment-start="" id="h-Formatting-Additional_Information"></span>Formatting<span data-mw-comment-end="h-Formatting-Additional_Information"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=16" title="Edit section: Formatting"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>There is special formatting for the following data types: </p> <table class="wikitable"> <tbody><tr> <th>Data Type </th> <th>Format </th></tr> <tr> <td>Entity </td> <td>Link to Wikidata.org <p>Label is shortened to wd:Qxx </p><p>Explore an item (magnify icon) </p> </td></tr> <tr> <td>DateTime </td> <td>MM DD, YYYY <p>Tooltip shows raw ISO timestamp </p> </td></tr> <tr> <td>Commons Media </td> <td>Link to Commons.Wikimedia.org <p>Displaying Gallery ( image icon ) </p> </td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="Mobile_/_Responsive" data-mw-thread-id="h-Mobile_/_Responsive-Additional_Information"><span id="Mobile_.2F_Responsive"></span><span data-mw-comment-start="" id="h-Mobile_/_Responsive-Additional_Information"></span>Mobile / Responsive<span data-mw-comment-end="h-Mobile_/_Responsive-Additional_Information"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=17" title="Edit section: Mobile / Responsive"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Result views are made to work on different devices and resolutions. Their appearance may change depending on the space they can use. </p> <div class="mw-heading mw-heading3"><h3 id="Embed_Mode" data-mw-thread-id="h-Embed_Mode-Additional_Information"><span data-mw-comment-start="" id="h-Embed_Mode-Additional_Information"></span>Embed Mode<span data-mw-comment-end="h-Embed_Mode-Additional_Information"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=18" title="Edit section: Embed Mode"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Result views can be linked or embedded via <i>iframes.</i> You can get the regarding link or code by clicking <i>Link in the above menu.</i> See the difference: <a class="external text" href="https://query.wikidata.org/#%23Airports%20within%20100km%20of%20Berlin%0A%23added%20before%202016-10%0A%20%0A%23defaultView%3AMap%0ASELECT%20%3Fplace%20%3FplaceLabel%20%3Flocation%0AWHERE%0A%7B%0A%20%20%23%20Berlin%20coordinates%0A%20%20wd%3AQ64%20wdt%3AP625%20%3FberlinLoc%20.%20%0A%20%20SERVICE%20wikibase%3Aaround%20%7B%20%0A%20%20%20%20%20%20%3Fplace%20wdt%3AP625%20%3Flocation%20.%20%0A%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3Acenter%20%3FberlinLoc%20.%20%0A%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3Aradius%20%22100%22%20.%20%0A%20%20%7D%20%0A%20%20%23%20Is%20an%20airport%0A%20%20%3Fplace%20wdt%3AP31%2Fwdt%3AP279%2a%20wd%3AQ1248784%20.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20.%20%0A%20%20%7D%0A%7D">link to a query</a> and <a class="external text" href="https://query.wikidata.org/embed.html#%23Airports%20within%20100km%20of%20Berlin%0A%23added%20before%202016-10%0A%20%0A%23defaultView%3AMap%0ASELECT%20%3Fplace%20%3FplaceLabel%20%3Flocation%0AWHERE%0A%7B%0A%20%20%23%20Berlin%20coordinates%0A%20%20wd%3AQ64%20wdt%3AP625%20%3FberlinLoc%20.%20%0A%20%20SERVICE%20wikibase%3Aaround%20%7B%20%0A%20%20%20%20%20%20%3Fplace%20wdt%3AP625%20%3Flocation%20.%20%0A%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3Acenter%20%3FberlinLoc%20.%20%0A%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3Aradius%20%22100%22%20.%20%0A%20%20%7D%20%0A%20%20%23%20Is%20an%20airport%0A%20%20%3Fplace%20wdt%3AP31%2Fwdt%3AP279%2a%20wd%3AQ1248784%20.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20.%20%0A%20%20%7D%0A%7D">link to a result</a> or the embed code: </p> <div class="mw-highlight mw-highlight-lang-html mw-content-ltr" dir="ltr"><pre><span></span><span class="p">&lt;</span><span class="nt">iframe</span> <span class="na">style</span><span class="o">=</span><span class="s">"width:80vw; height:50vh;"</span> <span class="na">scrolling</span><span class="o">=</span><span class="s">"yes"</span> <span class="na">frameborder</span><span class="o">=</span><span class="s">"0"</span> <span class="na">src</span><span class="o">=</span><span class="s">"http://tinyurl.com/zwf4k2w"</span><span class="p">></span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Download_results" data-mw-thread-id="h-Download_results-Additional_Information"><span data-mw-comment-start="" id="h-Download_results-Additional_Information"></span>Download results<span data-mw-comment-end="h-Download_results-Additional_Information"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=19" title="Edit section: Download results"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:WDQS_download_results_button_screenshot.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/8/84/WDQS_download_results_button_screenshot.png/220px-WDQS_download_results_button_screenshot.png" decoding="async" width="220" height="201" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/8/84/WDQS_download_results_button_screenshot.png/330px-WDQS_download_results_button_screenshot.png 1.5x, //upload.wikimedia.org/wikipedia/commons/8/84/WDQS_download_results_button_screenshot.png 2x" data-file-width="400" data-file-height="366"/></a><figcaption>Download results buttons</figcaption></figure> <p>There are several ways to export the results of a query. </p><p><b>JSON</b>, <b>TSV</b> and <b>CSV</b> are three different open-standard formats to download the data, offered under the Download tab. To get results in <b>XML</b> format, click on Link > SPARQL endpoint. </p><p>You can also download some of the graphic views as a <b>SVG</b> file: this feature works with all the views except table, image grid, timeline, graph builder, map, and graph. </p> <div class="mw-heading mw-heading3"><h3 id="Default_View" data-mw-thread-id="h-Default_View-Additional_Information"><span data-mw-comment-start="" id="h-Default_View-Additional_Information"></span>Default View<span data-mw-comment-end="h-Default_View-Additional_Information"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=20" title="Edit section: Default View"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The default view can be change for each SPARQL query by using a comment: </p> <div class="mw-highlight mw-highlight-lang-sparql mw-content-ltr" dir="ltr"><pre><span></span><span class="c">#defaultView:[NAME]</span> </pre></div> <p>For example: </p> <div class="mw-highlight mw-highlight-lang-sparql mw-content-ltr" dir="ltr"><pre><span></span><span class="c">#defaultView:ImageGrid</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Result_view_options" data-mw-thread-id="h-Result_view_options-Additional_Information"><span data-mw-comment-start="" id="h-Result_view_options-Additional_Information"></span>Result view options<span data-mw-comment-end="h-Result_view_options-Additional_Information"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=21" title="Edit section: Result view options"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Result views can be configured with various options, which are specified in <a href="/wiki/Q2063" title="Q2063">JSON <small>(Q2063)</small></a> format, either following the <code>defaultView</code> comment (see previous section) or following a separate <code>view</code> comment. </p> <div class="mw-highlight mw-highlight-lang-sparql mw-content-ltr" dir="ltr"><pre><span></span><span class="c">#defaultView:Map{"layer": "?typeLabel"}</span> <span class="c">#view:ImageGrid{"hide": "?coords"}</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Title" data-mw-thread-id="h-Title-Additional_Information"><span data-mw-comment-start="" id="h-Title-Additional_Information"></span>Title<span data-mw-comment-end="h-Title-Additional_Information"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=22" title="Edit section: Title"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Result views can show a title. The title can be set via a <code>title</code> comment. </p> <div class="mw-highlight mw-highlight-lang-sparql mw-content-ltr" dir="ltr"><pre><span></span><span class="c">#title:A title of your choice</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="List_of_WDQS_tags" data-mw-thread-id="h-List_of_WDQS_tags-Additional_Information"><span data-mw-comment-start="" id="h-List_of_WDQS_tags-Additional_Information"></span>List of WDQS tags<span data-mw-comment-end="h-List_of_WDQS_tags-Additional_Information"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=23" title="Edit section: List of WDQS tags"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table class="wikitable"> <tbody><tr> <th>WDQS tag</th> <th>Display options</th> <th>Notes </th></tr> <tr> <td><a href="#Table_(default)">#defaultView:Table</a></td> <td>Table</td> <td>default format when omitted </td></tr> <tr> <td><a href="#Image_Grid">#defaultView:ImageGrid</a></td> <td>Image grid </td></tr> <tr> <td></td> <td>Graph builder</td> <td>access to the graph builder tool </td></tr> <tr> <td><a href="#Map">#defaultView:Map</a></td> <td>Map </td></tr> <tr> <td><a href="#Line,_Bar,_Scatter_and_Area_Chart">#defaultView:LineChart</a></td> <td>Line chart </td></tr> <tr> <td><a href="#Line,_Bar,_Scatter_and_Area_Chart">#defaultView:BarChart</a></td> <td>Bar chart </td></tr> <tr> <td><a href="#Line,_Bar,_Scatter_and_Area_Chart">#defaultView:ScatterChart</a></td> <td>Scatter chart </td></tr> <tr> <td><a href="#Line,_Bar,_Scatter_and_Area_Chart">#defaultView:AreaChart</a></td> <td>Area chart </td></tr> <tr> <td><a href="#Bubble_Chart">#defaultView:BubbleChart</a></td> <td>Bubble chart </td></tr> <tr> <td><a href="#Tree_Map">#defaultView:TreeMap</a></td> <td>Tree map </td></tr> <tr> <td><a href="#Tree">#defaultView:Tree</a></td> <td>Tree </td></tr> <tr> <td><a href="#Timeline">#defaultView:Timeline</a></td> <td>Timeline </td></tr> <tr> <td><a href="#Dimensions">#defaultView:Dimensions</a></td> <td>Dimensions </td></tr> <tr> <td><a href="#Graph">#defaultView:Graph</a></td> <td>Graph </td></tr> <tr> <td><a href="#Title">#title:</a></td> <td></td> <td>title of the WDQS results frame </td></tr> <tr> <td><a href="#Result_view_options">#view:</a></td> <td></td> <td>equivalent to prefix <a href="#Default_View">#defaultView:</a> </td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="Auto_language" data-mw-thread-id="h-Auto_language-Additional_Information"><span data-mw-comment-start="" id="h-Auto_language-Additional_Information"></span>Auto language <span id="AUTO_LANGUAGE"></span><span data-mw-comment-end="h-Auto_language-Additional_Information"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=24" title="Edit section: Auto language"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>When using the magic keyword <code class="mw-highlight mw-highlight-lang-sparql mw-content-ltr" dir="ltr"><span class="p">[</span><span class="err">AUTO_LANGUAGE</span><span class="p">]</span></code> it is replaced by the users language when submitting the query. This allows writing a query with where the result is displayed in the users language. </p><p>Example: </p> <div class="mw-highlight mw-highlight-lang-sparql mw-content-ltr" dir="ltr"><pre><span></span><span class="c">#Use language of the user for display labels and fallback to english as default</span> <span class="k">SERVICE</span> <span class="nn">wikibase</span><span class="p">:</span><span class="nt">label</span> <span class="p">{</span> <span class="nn">bd</span><span class="p">:</span><span class="nt">serviceParam</span> <span class="nn">wikibase</span><span class="p">:</span><span class="nt">language</span> <span class="s">"[AUTO_LANGUAGE],en"</span> <span class="p">.</span> <span class="p">}</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Auto_coordinates" data-mw-thread-id="h-Auto_coordinates-Additional_Information"><span data-mw-comment-start="" id="h-Auto_coordinates-Additional_Information"></span>Auto coordinates<span data-mw-comment-end="h-Auto_coordinates-Additional_Information"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit&amp;section=25" title="Edit section: Auto coordinates"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>When using the magic keyword <code class="mw-highlight mw-highlight-lang-sparql mw-content-ltr" dir="ltr"><span class="p">[</span><span class="err">AUTO_COORDINATES</span><span class="p">]</span></code> it is replaced by the users location when submitting the query (with clients accepting the geolocalization). This allows writing a query with the users' location. </p><p>Example: </p> <style data-mw-deduplicate="TemplateStyles:r1502159272">.mw-parser-output .wdt-sparql-container-collapsible{border:1px solid #BBBBBB}.mw-parser-output .wdt-sparql-container-collapsible pre{margin-top:2px}</style><div class="wdt-sparql-container"><div><div class="mw-highlight mw-highlight-lang-sparql mw-content-ltr" dir="ltr"><pre><span></span><span class="c">#defaultView:Map</span> <span class="k">SELECT</span> <span class="nv">?place</span> <span class="nv">?coordinate_location</span> <span class="nv">?dist</span> <span class="p">{</span> <span class="k">SERVICE</span> <span class="nn">wikibase</span><span class="p">:</span><span class="nt">around</span> <span class="p">{</span> <span class="nv">?place</span> <span class="nn">wdt</span><span class="p">:</span><span class="nt">P625</span> <span class="nv">?coordinate_location</span><span class="p">.</span> <span class="nn">bd</span><span class="p">:</span><span class="nt">serviceParam</span> <span class="nn">wikibase</span><span class="p">:</span><span class="nt">center</span> <span class="s">"[AUTO_COORDINATES]"</span><span class="p">.</span> <span class="nn">bd</span><span class="p">:</span><span class="nt">serviceParam</span> <span class="nn">wikibase</span><span class="p">:</span><span class="nt">radius</span> <span class="s">"1"</span><span class="p">.</span> <span class="nn">bd</span><span class="p">:</span><span class="nt">serviceParam</span> <span class="nn">wikibase</span><span class="p">:</span><span class="nt">distance</span> <span class="nv">?dist</span><span class="p">.</span> <span class="p">}</span> <span class="p">}</span> </pre></div></div><a class="external text" href="https://query.wikidata.org/#%23defaultView%3AMap%0ASELECT%20%3Fplace%20%3Fcoordinate_location%20%3Fdist%20%7B%0ASERVICE%20wikibase%3Aaround%20%7B%0A%20%20%20%20%3Fplace%20wdt%3AP625%20%3Fcoordinate_location.%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Acenter%20%22%5BAUTO_COORDINATES%5D%22.%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Aradius%20%221%22.%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Adistance%20%3Fdist.%0A%20%20%7D%0A%7D"><span dir="ltr" lang="en">Try it!</span></a> </div> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐f69cdc8f6‐zl2dt Cached time: 20241125075710 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] DiscussionTools time usage: 0.038 seconds CPU time usage: 0.290 seconds Real time usage: 0.707 seconds Preprocessor visited node count: 1239/1000000 Post‐expand include size: 4586/2097152 bytes Template argument size: 1067/2097152 bytes Highest expansion depth: 7/100 Expensive parser function count: 12/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 36275/5000000 bytes Lua time usage: 0.013/10.000 seconds Lua memory usage: 1005221/52428800 bytes Number of Wikibase entities loaded: 0/500 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 372.882 1 -total 10.53% 39.265 1 Template:SPARQL 7.03% 26.217 1 Template:Shortcut 6.36% 23.727 1 Template:Collapse_top 5.18% 19.314 1 Template:Int_try_it 4.26% 15.875 1 Template:LangSwitch 3.84% 14.332 1 Template:Q- 3.69% 13.749 1 Template:TranslateThis 3.23% 12.028 2 Template:Label 2.49% 9.269 1 Template:Button --> <!-- Saved in parser cache with key wikidatawiki:pcache:idhash:29285671-0!canonical and timestamp 20241125075710 and revision id 2228836966. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://www.wikidata.org/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;oldid=2228836966">https://www.wikidata.org/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;oldid=2228836966</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Special:Categories" title="Special:Categories">Categories</a>: <ul><li><a href="/wiki/Category:Wikidata:SPARQL_query_service" title="Category:Wikidata:SPARQL query service">Wikidata:SPARQL query service</a></li><li><a href="/wiki/Category:Wikidata-en" title="Category:Wikidata-en">Wikidata-en</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden category: <ul><li><a href="/wiki/Category:Pages_with_syntax_highlighting_errors" title="Category:Pages with syntax highlighting errors">Pages with syntax highlighting errors</a></li></ul></div></div> </div> </div> <div id="mw-navigation"> <h2>Navigation menu</h2> <div id="mw-head"> <nav id="p-personal" class="mw-portlet mw-portlet-personal vector-user-menu-legacy vector-menu" aria-labelledby="p-personal-label" > <h3 id="p-personal-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Personal tools</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-uls" class="mw-list-item active"><a class="uls-trigger" href="#"><span>English</span></a></li><li id="pt-anonuserpage" class="mw-list-item"><span title="The user page for the IP address you are editing as">Not logged in</span></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li><li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-createaccount" class="mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&amp;returnto=Wikidata%3ASPARQL+query+service%2FWikidata+Query+Help%2FResult+Views" title="You are encouraged to create an account and log in; however, it is not mandatory"><span>Create account</span></a></li><li id="pt-login" class="mw-list-item"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=Wikidata%3ASPARQL+query+service%2FWikidata+Query+Help%2FResult+Views" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span>Log in</span></a></li> </ul> </div> </nav> <div id="left-navigation"> <nav id="p-namespaces" class="mw-portlet mw-portlet-namespaces vector-menu-tabs vector-menu-tabs-legacy vector-menu" aria-labelledby="p-namespaces-label" > <h3 id="p-namespaces-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Namespaces</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-project" class="selected mw-list-item"><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views" title="View the project page [c]" accesskey="c"><span>Project page</span></a></li><li id="ca-talk" class="mw-list-item"><a href="/wiki/Wikidata_talk:SPARQL_query_service/Wikidata_Query_Help/Result_Views" rel="discussion" title="Discussion about the content page [t]" accesskey="t"><span>Discussion</span></a></li> </ul> </div> </nav> <nav id="p-variants" class="mw-portlet mw-portlet-variants emptyPortlet vector-menu-dropdown vector-menu" aria-labelledby="p-variants-label" > <input type="checkbox" id="p-variants-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-variants" class="vector-menu-checkbox" aria-labelledby="p-variants-label" > <label id="p-variants-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">English</span> </label> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </nav> </div> <div id="right-navigation"> <nav id="p-views" class="mw-portlet mw-portlet-views vector-menu-tabs vector-menu-tabs-legacy vector-menu" aria-labelledby="p-views-label" > <h3 id="p-views-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Views</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected mw-list-item"><a href="/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views"><span>Read</span></a></li><li id="ca-edit" class="mw-list-item"><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="mw-list-item"><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </nav> <nav id="p-cactions" class="mw-portlet mw-portlet-cactions emptyPortlet vector-menu-dropdown vector-menu" aria-labelledby="p-cactions-label" title="More options" > <input type="checkbox" id="p-cactions-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-cactions" class="vector-menu-checkbox" aria-labelledby="p-cactions-label" > <label id="p-cactions-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">More</span> </label> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </nav> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box"> <h3 >Search</h3> <form action="/w/index.php" id="searchform" class="vector-search-box-form"> <div id="simpleSearch" class="vector-search-box-inner" data-search-loc="header-navigation"> <input class="vector-search-box-input" type="search" name="search" placeholder="Search Wikidata" aria-label="Search Wikidata" autocapitalize="sentences" title="Search Wikidata [f]" accesskey="f" id="searchInput" > <input type="hidden" name="title" value="Special:Search"> <input id="mw-searchButton" class="searchButton mw-fallbackSearchButton" type="submit" name="fulltext" title="Search the pages for this text" value="Search"> <input id="searchButton" class="searchButton" type="submit" name="go" title="Go to a page with this exact name if it exists" value="Go"> </div> </form> </div> </div> </div> <div id="mw-panel" class="vector-legacy-sidebar"> <div id="p-logo" role="banner"> <a class="mw-wiki-logo" href="/wiki/Wikidata:Main_Page" title="Visit the main page"></a> </div> <nav id="p-navigation" class="mw-portlet mw-portlet-navigation vector-menu-portal portal vector-menu" aria-labelledby="p-navigation-label" > <h3 id="p-navigation-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Navigation</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Wikidata:Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Project:Community_portal" title="About the project, what you can do, where to find things"><span>Community portal</span></a></li><li id="n-villagepump" class="mw-list-item"><a href="/wiki/Wikidata:Project_chat"><span>Project chat</span></a></li><li id="n-special-newitem" class="mw-list-item"><a href="/wiki/Special:NewItem"><span>Create a new Item</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-wikibase-randomitem" class="mw-list-item"><a href="/wiki/Special:Random/Main" title="[x]" accesskey="x"><span>Random Item</span></a></li><li id="n-wikibase-queryservice" class="mw-list-item"><a href="//query.wikidata.org/"><span>Query Service</span></a></li><li id="n-nearby-pages-title" class="mw-list-item"><a href="/wiki/Special:Nearby"><span>Nearby</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Help:Contents" title="The place to find out"><span>Help</span></a></li><li id="n-sitesupport" class="mw-list-item"><a href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_wikidata.org&amp;uselang=en" title="Support us"><span>Donate</span></a></li> </ul> </div> </nav> <nav id="p-wikibase-lexeme-lexicographical-data" class="mw-portlet mw-portlet-wikibase-lexeme-lexicographical-data vector-menu-portal portal vector-menu" aria-labelledby="p-wikibase-lexeme-lexicographical-data-label" > <h3 id="p-wikibase-lexeme-lexicographical-data-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Lexicographical data</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-special-newlexeme" class="mw-list-item"><a href="/wiki/Special:NewLexeme"><span>Create a new Lexeme</span></a></li><li id="n-recentchanges-lexemes" class="mw-list-item"><a href="https://www.wikidata.org/wiki/Special:RecentChanges?namespace=146%3B147"><span>Recent changes</span></a></li><li id="n-wikibase-lexeme-randomlexeme" class="mw-list-item"><a href="/wiki/Special:Random/Lexeme"><span>Random Lexeme</span></a></li> </ul> </div> </nav> <nav id="p-tb" class="mw-portlet mw-portlet-tb vector-menu-portal portal vector-menu" aria-labelledby="p-tb-label" > <h3 id="p-tb-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Tools</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;oldid=2228836966" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&amp;url=https%3A%2F%2Fwww.wikidata.org%2Fwiki%2FWikidata%3ASPARQL_query_service%2FWikidata_Query_Help%2FResult_Views"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fwww.wikidata.org%2Fwiki%2FWikidata%3ASPARQL_query_service%2FWikidata_Query_Help%2FResult_Views"><span>Download QR code</span></a></li> </ul> </div> </nav> <nav id="p-coll-print_export" class="mw-portlet mw-portlet-coll-print_export vector-menu-portal portal vector-menu" aria-labelledby="p-coll-print_export-label" > <h3 id="p-coll-print_export-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Print/export</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=Special:Book&amp;bookcmd=book_creator&amp;referer=Wikidata%3ASPARQL+query+service%2FWikidata+Query+Help%2FResult+Views"><span>Create a book</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&amp;page=Wikidata%3ASPARQL_query_service%2FWikidata_Query_Help%2FResult_Views&amp;action=show-download-screen"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </nav> <nav id="p-wikibase-otherprojects" class="mw-portlet mw-portlet-wikibase-otherprojects vector-menu-portal portal vector-menu" aria-labelledby="p-wikibase-otherprojects-label" > <h3 id="p-wikibase-otherprojects-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">In other projects</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q87067351" title="Link to connected data repository item [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </nav> <nav id="p-lang" class="mw-portlet mw-portlet-lang vector-menu-portal portal vector-menu" aria-labelledby="p-lang-label" > <h3 id="p-lang-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">In Wikipedia</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-add wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q87067351#sitelinks-wikipedia" title="Add interlanguage links" class="wbc-editpage">Add links</a></span></div> </div> </nav> </div> </div> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 16 August 2024, at 15:15.</li> <li id="footer-info-copyright">All structured data from the main, Property, Lexeme, and EntitySchema namespaces is available under the <a rel="nofollow" class="external text" href="//creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC0 License</a>; text in the other namespaces is available under the <a rel="nofollow" class="external text" href="//creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. By using this site, you agree to the <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terms of Use</a> and <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy Policy</a>.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Special:MyLanguage/Project:Introduction">About Wikidata</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Special:MyLanguage/Project:General_disclaimer">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/www.wikidata.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//m.wikidata.org/w/index.php?title=Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> <li id="footer-places-data-access"><a href="/wiki/Special:MyLanguage/Wikidata:Data_access">Data access</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> <script>(RLQ=window.RLQ||[]).push(function(){mw.log.warn("This page is using the deprecated ResourceLoader module \"codex-search-styles\".\n[1.43] Use a CodexModule with codexComponents to set your specific components used: https://www.mediawiki.org/wiki/Codex#Using_a_limited_subset_of_components");mw.config.set({"wgHostname":"mw-web.codfw.main-6d67bf974d-wszsk","wgBackendResponseTime":153,"wgDiscussionToolsPageThreads":[{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Table_(default)","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Image_Grid","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Options-Image_Grid","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Map","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Options_2-Map","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Line,_Bar,_Scatter_and_Area_Chart","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Bubble_Chart","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Tree_Map","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Tree","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Timeline","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Options_3-Timeline","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Dimensions","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Graph","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Additional_Information","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-RDF_Data_Type_Mapping-Additional_Information","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Formatting-Additional_Information","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Mobile_/_Responsive-Additional_Information","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Embed_Mode-Additional_Information","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Download_results-Additional_Information","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Default_View-Additional_Information","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Result_view_options-Additional_Information","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Title-Additional_Information","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-List_of_WDQS_tags-Additional_Information","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Auto_language-Additional_Information","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Auto_coordinates-Additional_Information","replies":[]}]}],"wgPageParseReport":{"discussiontools":{"limitreport-timeusage":"0.038"},"limitreport":{"cputime":"0.290","walltime":"0.707","ppvisitednodes":{"value":1239,"limit":1000000},"postexpandincludesize":{"value":4586,"limit":2097152},"templateargumentsize":{"value":1067,"limit":2097152},"expansiondepth":{"value":7,"limit":100},"expensivefunctioncount":{"value":12,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":36275,"limit":5000000},"entityaccesscount":{"value":0,"limit":500},"timingprofile":["100.00% 372.882 1 -total"," 10.53% 39.265 1 Template:SPARQL"," 7.03% 26.217 1 Template:Shortcut"," 6.36% 23.727 1 Template:Collapse_top"," 5.18% 19.314 1 Template:Int_try_it"," 4.26% 15.875 1 Template:LangSwitch"," 3.84% 14.332 1 Template:Q-"," 3.69% 13.749 1 Template:TranslateThis"," 3.23% 12.028 2 Template:Label"," 2.49% 9.269 1 Template:Button"]},"scribunto":{"limitreport-timeusage":{"value":"0.013","limit":"10.000"},"limitreport-memusage":{"value":1005221,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-f69cdc8f6-zl2dt","timestamp":"20241125075710","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10