query-02878bc64b7abed64bf92e4513ef1f2e
Discussion ]reply[01:12, 2 April 2019 (UTC)) talk (NMaia Can you fix the examples? Comment ? This is already used in the wild:(Q17462637)Atari Star Wars Vector (P400)platform (Q54317)Star Wars If so, I have been wondering − shouldn’t we just use ?(Q17462637)Atari Star Wars Vector →(Q54317)Star Wars If I understand correctly, you would like to express I've added the proposed value. Is this a right value for items already existing in Wikidata (ej. the motherboard used in an arcade system)?
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 ?platform ?platformLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?item wdt:P31 wd:Q7889. # All video games...
?item wdt:P400 ?platform. # ...whose platform...
?platform wdt:P31 wd:Q631229. # is an arcade system board.
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?platform"):::projected
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wd:Q7889"]):::iri
c8(["wd:Q631229"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P31"--> c6
v1 --"wdt:P400"--> v2
v2 --"wdt:P31"--> c8