query-eb31b8f1cda97c02e7b08ff659eb7caa
How to exclude deleted itemsWith
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?sitelinks
{
{
SELECT *
{
?item wdt:P31 wd:Q17334923 ;
wikibase:statements 1 ;
wikibase:sitelinks ?sitelinks .
}
LIMIT 1000
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,es,fr,it,nl". }
}
ORDER BY ?item
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?sitelinks"):::projected
c4(["1^^xsd:integer"]):::literal
c9(["#91;AUTO_LANGUAGE#93;,en,es,fr,it,nl"]):::literal
c7(["bd:serviceParam"]):::iri
c2(["wd:Q17334923"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wikibase:statements"--> c4
v1 --"wikibase:sitelinks"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end