query-831a1fb93518183151811a63e92d26cd
Problem with QueryWhy does this query does not display the item labels and descriptions?
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 schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
?item
(Sample(?itemLabel) as ?itemLabel)
(Sample(?itemDescription) as ?itemDescription)
(Sample(?st) as ?st)
(Sample(?sl) as ?sl)
(Sample(?ids) as ?ids)
(Sample(?coor) as ?coor)
(Sample(?image) as ?image)
WHERE {
?item wdt:P31 wd:Q5 .
?item wdt:P106 wd:Q10873124 .
?item wikibase:statements ?st .
?item wikibase:sitelinks ?sl .
OPTIONAL { ?item wikibase:identifiers ?ids . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en".
?item rdfs:label ?itemLabel .
?item schema:description ?itemDescription . }
}
GROUP BY ?item
ORDER BY ASC(?st) ?item
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v9("?coor"):::projected
v9("?ids"):::projected
v9("?image"):::projected
v2("?item"):::projected
v9("?itemDescription"):::projected
v9("?itemLabel"):::projected
v9("?sl"):::projected
v9("?st"):::projected
c11(["en"]):::literal
c9(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c4(["wd:Q10873124"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P106"--> c4
v2 --"wikibase:statements"--> v9
v2 --"wikibase:sitelinks"--> v9
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wikibase:identifiers".-> v9
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
v2 --"rdfs:label"--> v9
v2 --"schema:description"--> v9
end
bind7[/"sample(?itemLabel)"/]
v9 --o bind7
bind7 --as--o v9
bind8[/"sample(?itemDescription)"/]
v9 --o bind8
bind8 --as--o v9
bind9[/"sample(?st)"/]
v9 --o bind9
bind9 --as--o v9
bind10[/"sample(?sl)"/]
v9 --o bind10
bind10 --as--o v9
bind11[/"sample(?ids)"/]
v9 --o bind11
bind11 --as--o v9
bind12[/"sample(?coor)"/]
v9 --o bind12
bind12 --as--o v9
bind13[/"sample(?image)"/]
v9 --o bind13
bind13 --as--o v9