Jump to content

User:Pldx1/Listeria

From Wikipedia, the free encyclopedia
  1. https://wdq.wmflabs.org/api_documentation.html
  2. Wikidata:Wikidata:Glossary#Claims_and_statements

The one on overflow

[edit]
{{Wikidata list
|wdq=claim[31:532] and claim[131:(tree[191][][131])] and claim [18]
|section=
|sort=label
|columns=label:Article,description,p131:Place,P1140,p625,P18
|thumb=128
|min_section=2
}}

This list is using WDQ, but it should use the preferred SPARQL instead. To change that, replace the |wdq=claim[31:532] and claim[131:(tree[191][][131])] parameter with:

|sparql=SELECT ?item WHERE { ?item wdt:P31 wd:Q532 . ?item wdt:P131 ?sub0 . ?sub0 (wdt:P131)* wd:Q191 }
|sparql=SELECT ?item WHERE { ?item wdt:P31 wd:Q532 . ?item wdt:P131 ?sub0 . ?sub0 (wdt:P131)* wd:Q191 . ?item wdt:P18 ?dummy1 }


|columns=label:Article,description ,p131:Place  ,P1140   ,p625                ,P18
!Article              !description !Place       !EHAK id !coordinate location !image
  1. P31:Q532 is instance of, village
  2. P31 is located in, Q191 is Estonia
  3. and noclaim[string[description:"village in Estonia"]]: empty
  4. and string[description:"village in Estonia"]: empty
  5. Q37 is Lithuania


Ruisdael

[edit]
{{Wikidata list
|wdq=claim[170:213612] and claim [31:3305213]
|section=
|sort=571
|columns=P18:Image,label:Title,P571:Date,P195:Collection,P217:Inventory number,item:Wikidata
|thumb=128
|min_section=
|links=text
}}

{{Wikidata list end}}
  1. The list end seems required for manual refresh.
  2. 31:3305213 is P31:Q3305213, i.e. instance of, painting
  3. 170:213612 is P170:Q213612, i.e. created by, van Ruisdael

Lighthouses

[edit]
This page is a demo for automatically generated, Wikidata-based lists. Example: Dutch lighthouses.
{{Wikidata list
|sparql=SELECT ?item WHERE { ?item wdt:P31 wd:Q39715 .  ?item wdt:P131 ?sub0 .  ?sub0 (wdt:P131)* wd:Q55 }
|references=all
|section=131     <!-- p131 is places -->
|sort=label
|columns=item,label:Article,description,p131:Place,p580,p582,p625,p969,p18
|thumb=128
|min_section=2
}}
  1. P31:Q39715, is instance of, lighthouse
  2. P131*Q55 is location contains, Netherland


== Enkhuizen ==
{| class='wikitable sortable' style='width:100%'
q §item                      § label:Article                         §description   §p131:Place §P580  §P582 § p625                                         § p969                      § P18
. !item                      !Article                                !description   !Place      !start !end  !  coordinate location                         !located at street address  ! image
|-| [[:d:Q1180435|Q1180435]] | [[De Ven]]                            | lighthouse   | [[Enkhuizen]]    |     | {{Coord|52.741944|5.282222|display=inline}}  |                           | [[File: qsp .jpg|center|128px]]
|-| [[:d:Q1847968|Q1847968]] | [[:d:Q1847968|harbour entrance light of Enkhuizen]]| | [[Enkhuizen]]    |     | {{Coord|52.699372|5.293064|display=inline}}  | Tussen Twee Havens bij 1  | [[File: qsp .jpg|center|128px]]
|}