query-b6060e20740d4188f531b1a3a0b83cb4
Images of type specimens stored in the Auckland Museum and in the Te Papa Tongarewa New Zealand type specimens ]reply[21:42, 9 March 2021 (UTC)) talk (Christian Ferrer) items of type specimens stored in the Auckland Museum and in the Te Papa Tongarewa. Of course the list is far from exaustive because all files are not tagued and not all type specimens have an item. (P180)depicts Hi, as you are interested in New Zealand biodoversity, you may be interested by that query that gives you all the images depicting (
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 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#>
#defaultView:ImageGrid
SELECT ?file ?image ?stype ?stypeLabel ?collec ?collecLabel ?role ?roleLabel ?de ?deLabel
WHERE {
?file wdt:P180 ?stype ; schema:contentUrl ?url .
bind(iri(concat("http://commons.wikimedia.org/wiki/Special:FilePath/", replace(substr(str(?url),53),"_","%20"))) AS ?image) .
#?file wdt:P180 wd:Q105607273 .
{
select ?stype ?stypeLabel ?collec ?collecLabel ?role ?de ?roleLabel ?deLabel {
service <https://query.wikidata.org/sparql> {
select ?stype ?stypeLabel ?collec ?collecLabel ?role ?de ?roleLabel ?deLabel {
?stype wdt:P31/wdt:P279* wd:Q51255340
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
optional {
?stype wdt:P195 ?collec .
}
?stype p:P2868 [ps:P2868 ?role ; pq:P642 ?de] .
values ?collec {
wd:Q16949336 # Auckland Institute and Museum
wd:Q915603 # Museum of New Zealand Te Papa Tongarewa
}
}
}
}
}}
Query found at
- https://www.wikidata.org/wiki/User:Christian_Ferrer
- https://www.wikidata.org/wiki/User_talk:Ambrosia10
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?collec"):::projected
v7("?de"):::projected
v1("?file"):::projected
v4("?image"):::projected
v6("?role"):::projected
v2("?stype"):::projected
v3("?url")
a1((" "))
a2((" "))
c6(["wd:Q51255340"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:direct/P180"--> v2
v1 --"schema:contentUrl"--> v3
bind0[/"concat('http://commons.wikimedia.org/wiki/Special:FilePath/',replace(substring(str(?url),'53^^xsd:integer'),'_','%20'))"/]
v3 --o bind0
bind0 --as--o v4
subgraph s1["https://query.wikidata.org/sparql"]
style s1 stroke-width:4px;
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c6
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P195".-> v8
end
a2 --"p:statement/P2868"--> v6
a2 --"p:qualifier/P642"--> v7
v2 --"p:P2868"--> a2
bind1[/VALUES ?collec/]
bind1-->v8
bind10(["wd:Q16949336"])
bind10 --> bind1
bind11(["wd:Q915603"])
bind11 --> bind1
end