Project:SPARQL/examples: Difference between revisions

Jump to navigation Jump to search
Line 146: Line 146:


= Federated queries =
= Federated queries =
== Map of all event locations ==
<SPARQL tryit="1">
PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
#defaultView:Map
SELECT ?item ?itemLabel ?place ?placeLabel ?coords
WHERE
{
?item wbt:P5/wbt:P4* wb:Q40 .
?item wbt:P27 ?place.
?place wbt:P1 ?wikidataQ.
BIND(URI(concat("http://www.wikidata.org/entity/", ?wikidataQ)) AS ?wikidata_iri)
SERVICE <https://query.wikidata.org/sparql> {
?wikidata_iri wdt:P625 ?coords.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "sv,en". }
}
</SPARQL>
== Documents authored by employees of Wikimedia Sverige (via Wikidata)==
== Documents authored by employees of Wikimedia Sverige (via Wikidata)==
<SPARQL tryit="1">
<SPARQL tryit="1">

Navigation menu