User:Alicia Fagerving (WMSE)/Sandbox: Difference between revisions

From MetaBase
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
*{{Q|Q22840}}
*{{Q|Q22839}}
*{{Q|Q22838}}
*{{Q|Q22837}}
*{{Q|Q22836}}
*{{Q|Q22835}}
*{{Q|Q22834}}
*{{Q|Q22833}}
*{{Q|Q22832}}
*{{Q|Q22831}}
*{{Q|Q22830}}
*{{Q|Q22829}}
*{{Q|Q22828}}
*{{Q|Q22827}}
*{{Q|Q22856}}
*{{Q|Q22855}}
*{{Q|Q22854}}
*{{Q|Q22853}}
*{{Q|Q22852}}
*{{Q|Q22851}}
*{{Q|Q22850}}
*{{Q|Q22849}}
*{{Q|Q22848}}
*{{Q|Q22847}}
*{{Q|Q22846}}
*{{Q|Q22845}}
*{{Q|Q22844}}
*{{Q|Q22843}}
*{{Q|Q22842}}
*{{Q|Q22841}}
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-----------------------------------------------
* {{Q|Q22697}}
* {{Q|Q22699}}
* {{Q|Q22701}}
* {{Q|Q22705}}
* {{Q|Q22708}}
* {{Q|Q22713}}
* {{Q|Q22718}}
* {{Q|Q22722}}
* {{Q|Q22723}}
* {{Q|Q22727}}
* {{Q|Q22730}}
* {{Q|Q22733}}
* {{Q|Q22739}}
* {{Q|Q22741}}
* {{Q|Q22743}}
* {{Q|Q22745}}
* {{Q|Q22746}}
* {{Q|Q22749}}
* {{Q|Q22751}}
* {{Q|Q22755}}
* {{Q|Q22757}}
* {{Q|Q22761}}
* {{Q|Q22766}}
* {{Q|Q22769}}
* {{Q|Q22771}}
* {{Q|Q22774}}
* {{Q|Q22783}}
* {{Q|Q22794}}
* {{Q|Q22796}}
* {{Q|Q22804}}
* {{Q|Q22805}}
* {{Q|Q22807}}
* {{Q|Q22809}}
* {{Q|Q22810}}
* {{Q|Q22817}}
* {{Q|Q22822}}
<SPARQL tryit="1">
<SPARQL tryit="1">
PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wb: <https://metabase.wikibase.cloud/entity/>

Revision as of 07:06, 10 April 2024

PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
SELECT ?item ?itemLabel ?when ?wikipage (GROUP_CONCAT(DISTINCT ?speakerLabel; SEPARATOR = ", ") AS ?speakers) (GROUP_CONCAT(DISTINCT ?mainsubjectLabel; SEPARATOR = ", ") AS ?topics)
WHERE
{
?item wbt:P17 wb:Q22660.
OPTIONAL {?item wbt:P23 ?when}
OPTIONAL {?item wbt:P33 ?speaker}
OPTIONAL {?item wbt:P11 ?wikipage}
OPTIONAL {?item wbt:P15 ?mainsubject}
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en,sv,es".
    ?item rdfs:label ?itemLabel.
    ?speaker rdfs:label ?speakerLabel.
    ?mainsubject rdfs:label ?mainsubjectLabel.
  }
}
GROUP BY ?item ?itemLabel ?when ?wikipage
ORDER BY ?when

Try it!