query-cae2fe73ac519fb280fed544f58b4f1b
Piastru
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 ?Cc ?img ?order {
VALUES (?item ?order) { (wd:Q99999 1) (wd:Q12345 2) (wd:Q580 10)}
OPTIONAL { ?item wdt:P373 ?Cc . }
OPTIONAL { ?item wdt:P18 ?img . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], en". }
} ORDER BY ?order
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?Cc"):::projected
v4("?img"):::projected
v2("?item"):::projected
v3("?order"):::projected
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;, en"]):::literal
bind0[/VALUES ?item ?order/]
bind0-->v2
bind0-->v3
bind00(["wd:Q99999"])
bind00 --> bind0
bind01(["1^^xsd:integer"])
bind01 --> bind0
bind02(["wd:Q12345"])
bind02 --> bind0
bind03(["2^^xsd:integer"])
bind03 --> bind0
bind04(["wd:Q580"])
bind04 --> bind0
bind05(["10^^xsd:integer"])
bind05 --> bind0
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P373".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end