Metabase Meet & Greet Meet the WMSE team behind Metabase and other editors and friends of Metabase! Everyone is welcome, regardless if you are an active editor or simply interested in the platform. Ask questions, brainstorm and write queries, or simply chat about the future of Metabase. The first Metabase Meet & Greet will be in November - help us pick the time. |
Project:SPARQL/examples: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
WHERE | WHERE | ||
{ | { | ||
?item wbt:P5 wb: | ?item wbt:P5 wb:Q13 . | ||
?item wbt:P1 ?same_wikidata. | ?item wbt:P1 ?same_wikidata. | ||
Revision as of 14:36, 24 April 2023
PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
SELECT ?item ?itemLabel ?same_wikidata ?wikidata_iri ?url
WHERE
{
?item wbt:P5 wb:Q13 .
?item wbt:P1 ?same_wikidata.
BIND(URI(concat("http://www.wikidata.org/entity/",?same_wikidata)) AS ?wikidata_iri)
SERVICE <https://query.wikidata.org/sparql> {
?wikidata_iri wdt:P856 ?url
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "sv,en". }
}