query-33de4697aff7829ec4dded00e493962c
TODO
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?score ?reviewerLabel ?platformLabel WHERE {
?item wdt:P31 wd:Q7889.
?item p:P444 ?statement.
?statement ps:P444 ?score.
OPTIONAL { ?statement pq:P447 ?reviewer. }
OPTIONAL { ?statement pq:P400 ?platform. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
Query found at
- https://www.wikidata.org/wiki/User_talk:Jean-Fr%C3%A9d%C3%A9ric
- https://www.wikidata.org/wiki/User_talk:YotaMoteuchi
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v5("?platform")
v4("?reviewer")
v3("?score"):::projected
v2("?statement")
c8(["bd:serviceParam"]):::iri
c2(["wd:Q7889"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:direct/P31"--> c2
v1 --"p:P444"--> v2
v2 --"p:statement/P444"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P447".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P400".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end