The following are demonstrations of how Wikidata can be queried using the External Data extension.
Individual entry
SPARQL query:
SELECT ?item ?itemLabel ?symbol ?atomicNumber ( YEAR( ?discoveryDate ) AS ?discoveryYear ) ?discoverer ?discovererLabel
WHERE {
VALUES ?item { wd:Q654 } .
?item wdt:P246 ?symbol .
?item wdt:P1086 ?atomicNumber .
?item wdt:P575 ?discoveryDate .
?item wdt:P61 ?discoverer
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Info for Q654:
Full query
All paintings that depict a squirrel.
SPARQL query:
SELECT DISTINCT ?painting ?paintingLabel ?creator ?creatorLabel ( YEAR( ?inception ) as ?year ) ?genre ?genreLabel ( SUBSTR( ?str_image, 52 ) AS ?fileName )
WHERE
{
?painting wdt:P180 wd:Q9482 .
?painting wdt:P170 ?creator .
?painting wdt:P571 ?inception .
?painting wdt:P136 ?genre .
?painting wdt:P18 ?image .
BIND (STR(?image) AS ?str_image)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY ?paintingLabel
Name
|
Artist
|
Year
|
Genre
|
Image
|
Q111135100
|
Willy Blees
|
1967
|
public art
|
|
Animals.
|
Ernst Wilhelm Bernhardi
|
1708
|
animal art
|
|
Basket and bowls of fruit with two monkeys. a squirrel, a macaw and two guinea-pigs
|
Jan van Kessel the Younger
|
1500
|
still life
|
|
Basket and bowls of fruit with two monkeys. a squirrel, a macaw and two guinea-pigs
|
Jan van Kessel the Younger
|
1500
|
animal art
|
|
Basket of red and green grapes with fruits of the hunt, including a goldfinch
|
Clara Peeters
|
1640
|
still life
|
|
Forest still life with squirrel
|
Anna Ruysch
|
1685
|
still life
|
|
Forest still life with squirrel
|
Anna Ruysch
|
1685
|
still life
|
|
Fruit bowl, basket, vegetables and a squirrel
|
Gommaert van der Gracht
|
1645
|
still life
|
|
Fruit bowl, basket, vegetables and a squirrel
|
Gommaert van der Gracht
|
1645
|
landscape painting
|
|
Fruit still life with goldfinch and squirrel
|
Abraham Mignon
|
1668
|
still life
|
|
Fruits, Carnation and Squirrel
|
Frans Snyders
|
1611
|
still life
|
|
Genoveva-Brunnen
|
Hermann Hosaeus
|
1928
|
public art
|
|
Order of the Cub Scout
|
Tom Frantzen
|
1994
|
public art
|
|
Peter Pan
|
George Frampton
|
1924
|
public art
|
|
Pomona in a fruit garland and surrounded by animals
|
Gommaert van der Gracht
|
1645
|
still life
|
|
Squirrels with Stag Horn
|
Therese Richter
|
1809
|
still life
|
|
Squirrels with Stag Horn
|
Therese Richter
|
1809
|
animal art
|
|
Still Life of Fruit, a Lobster, Cheeses and Drinking Vessels with a Parrot and a Squirrel on a Table
|
Artus Claessens
|
1650
|
still life
|
|
Still Life with Fruit and a Squirrel
|
Catharina Treu
|
1780
|
still life
|
|
Still life with a basket of fruit, vegetables and a squirrel
|
Abraham Gibbens
|
1635
|
still life
|
|
Still-Life with a Basket of Fruit, a Squirrel, and a Cat
|
Frans Snyders
|
1639
|
still life
|
|
Two Squirrels
|
Albrecht Dürer
|
1512
|
animal art
|
|
portal of the Haus Burchardt
|
John Martens
|
1914
|
public art
|
|
portal of the Haus Burchardt
|
John Martens
|
1914
|
architectural sculpture
|
|
Map display
Map of all buildings in Spain with Baroque architecture.
SPARQL query:
SELECT ?item ?itemLabel ?lon ?lat
WHERE
{
?item wdt:P31 wd:Q41176. # type = building
?item wdt:P17 wd:Q29. # country = Spain
?item wdt:P149 wd:Q37853. # architecture = Baroque
?item p:P625 ?coordinate.
?coordinate psv:P625 ?coordinate_node.
?coordinate_node wikibase:geoLongitude ?lon.
?coordinate_node wikibase:geoLatitude ?lat.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
[{"name":"Palacio de Villapanes","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q6058251\"\u003EPalacio de Villapanes\u003C\/a\u003E","lat":36.678619444444,"lon":-6.1344527777778,"otherValues":[]},{"name":"Palacio del Almud\u00ed","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q5551954\"\u003EPalacio del Almud\u00ed\u003C\/a\u003E","lat":37.983532,"lon":-1.13292,"otherValues":[]},{"name":"Antiguo Colegio de Te\u00f3logos de San Isidoro, Murcia","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q17042991\"\u003EAntiguo Colegio de Te\u00f3logos de San Isidoro, Murcia\u003C\/a\u003E","lat":37.983238888889,"lon":-1.1283972222222,"otherValues":[]},{"name":"Pazo Cornide","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q48562858\"\u003EPazo Cornide\u003C\/a\u003E","lat":43.370555555556,"lon":-8.3930555555556,"otherValues":[]},{"name":"Casa de los Alberti","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q5755289\"\u003ECasa de los Alberti\u003C\/a\u003E","lat":43.287476,"lon":-5.668776,"otherValues":[]},{"name":"Seminario Diocesano de San Miguel (Orihuela)","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q6124746\"\u003ESeminario Diocesano de San Miguel (Orihuela)\u003C\/a\u003E","lat":38.087843,"lon":-0.947682,"otherValues":[]},{"name":"Ermita de la Mare de D\u00e9u de la Miseric\u00f2rdia de Vinar\u00f2s","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q5942183\"\u003EErmita de la Mare de D\u00e9u de la Miseric\u00f2rdia de Vinar\u00f2s\u003C\/a\u003E","lat":40.5067,"lon":0.431444,"otherValues":[]},{"name":"Cas\u00f3n del Buen Retiro","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q3321174\"\u003ECas\u00f3n del Buen Retiro\u003C\/a\u003E","lat":40.41525,"lon":-3.689569,"otherValues":[]},{"name":"Antics Jutjats de Primera Inst\u00e0ncia de Manresa","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q20102768\"\u003EAntics Jutjats de Primera Inst\u00e0ncia de Manresa\u003C\/a\u003E","lat":41.722657,"lon":1.827609,"otherValues":[]},{"name":"Q6124755","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q6124755\"\u003EQ6124755\u003C\/a\u003E","lat":37.98368,"lon":-1.12957,"otherValues":[]},{"name":"Q58065626","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q58065626\"\u003EQ58065626\u003C\/a\u003E","lat":42.84941,"lon":-2.67231,"otherValues":[]},{"name":"Casal Rectoral de la Casa de la Pietat","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q47186894\"\u003ECasal Rectoral de la Casa de la Pietat\u003C\/a\u003E","lat":41.929303,"lon":2.256431,"otherValues":[]},{"name":"Hospital de Sant Miquel","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q18696279\"\u003EHospital de Sant Miquel\u003C\/a\u003E","lat":41.7201,"lon":2.9294,"otherValues":[]},{"name":"Hermitage of Our Lady of the Ermitana, Peniscola","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q3056768\"\u003EHermitage of Our Lady of the Ermitana, Peniscola\u003C\/a\u003E","lat":40.359,"lon":0.40775,"otherValues":[]},{"name":"Ermita de la Mare de D\u00e9u dels \u00c0ngels de Sant Mateu","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q8777052\"\u003EErmita de la Mare de D\u00e9u dels \u00c0ngels de Sant Mateu\u003C\/a\u003E","lat":40.456561111111,"lon":0.20201111111111,"otherValues":[]},{"name":"Hospital de la Bisbal d'Empord\u00e0","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q18004134\"\u003EHospital de la Bisbal d'Empord\u00e0\u003C\/a\u003E","lat":41.9583,"lon":3.03755,"otherValues":[]},{"name":"Q5783276","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q5783276\"\u003EQ5783276\u003C\/a\u003E","lat":37.6775,"lon":-1.69638889,"otherValues":[]},{"name":"Church of San Juan Bautista, Pasaia","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q20492655\"\u003EChurch of San Juan Bautista, Pasaia\u003C\/a\u003E","lat":43.3248721105,"lon":-1.91737246816,"otherValues":[]},{"name":"Casa Salazar","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q5754529\"\u003ECasa Salazar\u003C\/a\u003E","lat":28.48972222,"lon":-16.31555556,"otherValues":[]},{"name":"Convent of Santa Clara, Pe\u00f1afiel","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q5785841\"\u003EConvent of Santa Clara, Pe\u00f1afiel\u003C\/a\u003E","lat":41.5961,"lon":-4.12139,"otherValues":[]},{"name":"Hospital de la Santa Creu de Sant Feliu de Codines","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q17606549\"\u003EHospital de la Santa Creu de Sant Feliu de Codines\u003C\/a\u003E","lat":41.6906,"lon":2.16106,"otherValues":[]},{"name":"Palacio de Villapanes","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q6058251\"\u003EPalacio de Villapanes\u003C\/a\u003E","lat":36.67860599,"lon":-6.134363858,"otherValues":[]},{"name":"Casa Petra de la Riva","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q5754480\"\u003ECasa Petra de la Riva\u003C\/a\u003E","lat":36.685628601981,"lon":-6.1378498645347,"otherValues":[]},{"name":"Kapitainenea 4-6 etxea","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q65645658\"\u003EKapitainenea 4-6 etxea\u003C\/a\u003E","lat":43.312915,"lon":-1.898603,"otherValues":[]},{"name":"Q65925088","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q65925088\"\u003EQ65925088\u003C\/a\u003E","lat":43.3272839191,"lon":-1.91979071342,"otherValues":[]},{"name":"Antonio Machado High School","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q5917188\"\u003EAntonio Machado High School\u003C\/a\u003E","lat":41.765534,"lon":-2.466648,"otherValues":[]},{"name":"Casa Barber\u00e1n","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q5754462\"\u003ECasa Barber\u00e1n\u003C\/a\u003E","lat":41.23663,"lon":-0.039804,"otherValues":[]}]