query-7dcf66004a8995395b627ce34e034ae9
Get all items that are instance of a specific "value"Hello, Is it possible to get all the items that are instance of a specific value (e.g. 'video game') without using the id of video game (Q7889) but using the actual value? I tried the below query and it does not return any item
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel WHERE{
?item wdt:P31 "video game"
SERVICE wikibase:label { bd:serviceParam wikibase:language "en"
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
c4(["bd:serviceParam"]):::iri
c2(["video game"]):::literal
c6(["en"]):::literal
v1 --"wdt:P31"--> c2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end