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 85: Line 85:
PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
SELECT ?item ?itemLabel  
SELECT ?item ?itemLabel ?when
WHERE
WHERE
{
{
?item wbt:P17 wb:Q22660.
?item wbt:P17 wb:Q22660.
OPTIONAL {?item wbt:P23 ?when}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,es,sv". }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,es,sv". }
}
}
ORDER BY ?when
</SPARQL>
</SPARQL>

Revision as of 09:12, 27 March 2024










PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
SELECT ?item ?itemLabel ?when
WHERE
{
?item wbt:P17 wb:Q22660.
OPTIONAL {?item wbt:P23 ?when}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,es,sv". }
}
ORDER BY ?when

Try it!