query-7208f103f0329206123e71b85962d7f2
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?url
WHERE
{
?item wdt:P973 ?url.
optional {?item wdt:P18 ?image .}
filter(bound(?image)=false)
filter(contains(str(?url),"https://www.flickr.com/"))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
- https://www.wikidata.org/wiki/User:Richard_Arthur_Norton_(1958-_)
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2019/03
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?image")
v3("?item"):::projected
v1("?url"):::projected
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["contains(str(?url),'https://www.flickr.com/')"]]
f0 --> v1
f1[["bound(?image) = 'false^^xsd:boolean'"]]
f1 --> v2
v3 --"wdt:P973"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P18".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end