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 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 art
|
|
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
|
|
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
|
|
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.67861944444400279508045059628784656524658203125,"lon":-6.13445277777779995886930919368751347064971923828125,"otherValues":[]},{"name":"Palacio del Almud\u00ed","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q5551954\"\u003EPalacio del Almud\u00ed\u003C\/a\u003E","lat":37.983531999999996742189978249371051788330078125,"lon":-1.132919999999999927098315311013720929622650146484375,"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.98323888888899801941079203970730304718017578125,"lon":-1.1283972222222000691971288688364438712596893310546875,"otherValues":[]},{"name":"Pazo Cornide","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q48562858\"\u003EPazo Cornide\u003C\/a\u003E","lat":43.37055555555600250272618723101913928985595703125,"lon":-8.3930555555556001223749262862838804721832275390625,"otherValues":[]},{"name":"Casa de los Alberti","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q5755289\"\u003ECasa de los Alberti\u003C\/a\u003E","lat":43.287475999999998066414264030754566192626953125,"lon":-5.66877600000000025914914658642373979091644287109375,"otherValues":[]},{"name":"Casa del Gremi dels Revenedors","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q21903351\"\u003ECasa del Gremi dels Revenedors\u003C\/a\u003E","lat":41.38244300000000208683559321798384189605712890625,"lon":2.173550000000000093081098384573124349117279052734375,"otherValues":[]},{"name":"Palau dels Comtes d'Emp\u00faries","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q18005328\"\u003EPalau dels Comtes d'Emp\u00faries\u003C\/a\u003E","lat":42.2580999999999988858689903281629085540771484375,"lon":3.073939999999999894697566560353152453899383544921875,"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.08784299999999944930095807649195194244384765625,"lon":-0.94768200000000002436451040921383537352085113525390625,"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.50670000000000214868123293854296207427978515625,"lon":0.431443999999999994177102280445978976786136627197265625,"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.4152500000000003410605131648480892181396484375,"lon":-3.689569000000000098538066595210693776607513427734375,"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.722656999999998106432030908763408660888671875,"lon":1.8276090000000000390656396120903082191944122314453125,"otherValues":[]},{"name":"Q6124755","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q6124755\"\u003EQ6124755\u003C\/a\u003E","lat":37.98367999999999966576069709844887256622314453125,"lon":-1.1295699999999999629807234668987803161144256591796875,"otherValues":[]},{"name":"Pazo de Ximonde","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q60182496\"\u003EPazo de Ximonde\u003C\/a\u003E","lat":42.7514010000000013178578228689730167388916015625,"lon":-8.4574459999999991310914992936886847019195556640625,"otherValues":[]},{"name":"Q58065626","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q58065626\"\u003EQ58065626\u003C\/a\u003E","lat":42.84940999999999888814272708259522914886474609375,"lon":-2.672309999999999963193886287626810371875762939453125,"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.92930299999999732563082943670451641082763671875,"lon":2.25643100000000007554490366601385176181793212890625,"otherValues":[]},{"name":"Hospital de Sant Miquel","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q18696279\"\u003EHospital de Sant Miquel\u003C\/a\u003E","lat":41.72010000000000218278728425502777099609375,"lon":2.929399999999999781863380121649242937564849853515625,"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.35900000000000176214598468504846096038818359375,"lon":0.407750000000000001332267629550187848508358001708984375,"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.4565611111110001729684881865978240966796875,"lon":0.2020111111111100032911025436987983994185924530029296875,"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.95830000000000126192389870993793010711669921875,"lon":3.037549999999999972288833305356092751026153564453125,"otherValues":[]},{"name":"Q5783276","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q5783276\"\u003EQ5783276\u003C\/a\u003E","lat":37.67750000000000198951966012828052043914794921875,"lon":-1.6963888899999999271273054546327330172061920166015625,"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.32487211050000297518636216409504413604736328125,"lon":-1.917372468159999954195882310159504413604736328125,"otherValues":[]},{"name":"Convent de Santa M\u00f2nica","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q44692942\"\u003EConvent de Santa M\u00f2nica\u003C\/a\u003E","lat":41.37749999999999772626324556767940521240234375,"lon":2.175833333333299979273078861297108232975006103515625,"otherValues":[]},{"name":"Casa Salazar","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q5754529\"\u003ECasa Salazar\u003C\/a\u003E","lat":28.489722220000000874051693244837224483489990234375,"lon":-16.31555555999999995719917933456599712371826171875,"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.59609999999999985220711096189916133880615234375,"lon":-4.1213899999999998868815964669920504093170166015625,"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.6906000000000034333424991928040981292724609375,"lon":2.16105999999999998095745468162931501865386962890625,"otherValues":[]},{"name":"Palacio de Villapanes","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q6058251\"\u003EPalacio de Villapanes\u003C\/a\u003E","lat":36.67860599000000121350240078754723072052001953125,"lon":-6.134363858000000391257344745099544525146484375,"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.68562860198100139541566022671759128570556640625,"lon":-6.13784986453469993961107320501469075679779052734375,"otherValues":[]},{"name":"Q65925088","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q65925088\"\u003EQ65925088\u003C\/a\u003E","lat":43.3272839190999974334772559814155101776123046875,"lon":-1.9197907134200000722756840332294814288616180419921875,"otherValues":[]},{"name":"Antonio Machado High School","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q5917188\"\u003EAntonio Machado High School\u003C\/a\u003E","lat":41.7655340000000023792381398379802703857421875,"lon":-2.46664800000000017377033145749010145664215087890625,"otherValues":[]},{"name":"Casa Barber\u00e1n","title":"\u003Ca href=\"http:\/\/www.wikidata.org\/entity\/Q5754462\"\u003ECasa Barber\u00e1n\u003C\/a\u003E","lat":41.23662999999999811961970408447086811065673828125,"lon":-0.039803999999999999104272063732423703186213970184326171875,"otherValues":[]}]