query-a38f7891db22faefe8355955790f132f
Propertiesinstance of (P31)place of birth (P19)coordinate location (P625)image (P18)
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 ?itemLabel ?bestioleLabel ?geo ?pict ?birthLabel WHERE {
?item wdt:P31 ?bestiole .
?item wdt:P19 ?birth .
?birth wdt:P625 ?geo .
VALUES ?bestiole {
wd:Q144 # Chat
wd:Q146}. # Chien
OPTIONAL { ?item wdt:P18 ?pict .} # Affichage optionnelle de la photo
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 50
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?bestiole")
v3("?birth")
v4("?geo"):::projected
v1("?item")
v5("?pict"):::projected
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> v5
v1 --"wdt:P19"--> v3
v3 --"wdt:P625"--> v4
bind0[/VALUES ?bestiole/]
bind0-->v5
bind00(["wd:Q144"])
bind00 --> bind0
bind01(["wd:Q146"])
bind01 --> bind0
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end