query-389352f308046b3c72196deb59f62625
list of all games on wikidataHello, I am trying to create a dataset with all the videos games on wikidata but I am stuck. My query returns only 3 results, Can someone help? I am new to SPARQL and confused about what I am doing wrong here.
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 DISTINCT ?GameLabel ?GenreLabel ?CountryLabel ?PublicationDateLabel ?DeveloperLabel ?SoftwareEngineLabel ?GameModeLabel ?BusinessModeLabel ?AgeRatingLabel ?UsesLabel
where{
?Game wdt:P279 wd:Q7889.
?Game wdt:P136 ?Genre.
?Game wdt:P495 ?Country.
optional {
?Game wdt:P577 ?PublicationDate.
?Game wdt:P178 ?Developer.
?Game wdt:P408 ?SoftwareEngine.
?Game wdt:P404 ?GameMode.
?Game wdt:P7936 ?BusinessMode.
?Game wdt:P9897 ?AgeRating.
?Game wdt:P2283 ?Uses.
}
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;
v9("?AgeRating")
v8("?BusinessMode")
v3("?Country")
v5("?Developer")
v1("?Game")
v7("?GameMode")
v2("?Genre")
v4("?PublicationDate")
v6("?SoftwareEngine")
v10("?Uses")
c15(["en"]):::literal
c13(["bd:serviceParam"]):::iri
c2(["wd:Q7889"]):::iri
v1 --"wdt:P279"--> c2
v1 --"wdt:P136"--> v2
v1 --"wdt:P495"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P577".-> v4
v1 --"wdt:P178"--> v5
v1 --"wdt:P408"--> v6
v1 --"wdt:P404"--> v7
v1 --"wdt:P7936"--> v8
v1 --"wdt:P9897"--> v9
v1 --"wdt:P2283"--> v10
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end