Project:SPARQL/examples
Jump to navigation
Jump to search
These SPARQL queries can be used in the local Query Service. See Wikidata's tutorial for an overview. The custom prefix declarations are required, and do not autocomplete (wd:
and wdt:
does, but actually queries Wikidata).
Start
All editions with publication date ordered by date
PREFIX rlwd: <https://riga-literata.wikibase.cloud/entity/>
PREFIX rlwdt: <https://riga-literata.wikibase.cloud/prop/direct/>
SELECT ?item ?itemLabel ?date ?lcsk
WHERE
{
?item rlwdt:P1 rlwd:Q3033.
?item rlwdt:P49 ?date.
?item rlwdt:P41 ?lcsk.
SERVICE wikibase:label { bd:serviceParam wikibase:language "la,[AUTO_LANGUAGE]". }
}