query-a48a24a292607f36a01ae8113fa6e5ee
A couple of problemsI have the following query.
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?game ?gameLabel ?enwiki ?devLabel ?publisherLabel ?date WHERE {
?game wdt:P31 wd:Q7889;
wdt:P136 wd:Q744038.
OPTIONAL {
?enwiki schema:about ?game;
schema:isPartOf <https://en.wikipedia.org/>
}
# OPTIONAL {
?game wdt:P178 ?dev.
?game wdt:P123 ?publisher.
?game wdt:P577 ?date.
# }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
} ORDER BY ASC (?date)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?date"):::projected
v4("?dev")
v3("?enwiki"):::projected
v2("?game"):::projected
v5("?publisher")
c4(["wd:Q744038"]):::iri
c14(["en"]):::literal
c7([https://en.wikipedia.org/]):::iri
c12(["bd:serviceParam"]):::iri
c2(["wd:Q7889"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P136"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."schema:about".-> v2
v3 --"schema:isPartOf"--> c7
end
v2 --"wdt:P178"--> v4
v2 --"wdt:P123"--> v5
v2 --"wdt:P577"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end