Skip to content

Commit

Permalink
+Houten (not really recovery, just simple data transformation)
Browse files Browse the repository at this point in the history
  • Loading branch information
grammarware committed Nov 12, 2012
1 parent d2646c5 commit 019177e
Show file tree
Hide file tree
Showing 9 changed files with 987 additions and 4 deletions.
273 changes: 273 additions & 0 deletions Houten/Houten.wiki
Original file line number Diff line number Diff line change
@@ -0,0 +1,273 @@
De gemeente [[Houten]] telt 182 [[gemeentelijk monument|gemeentelijke monumenten]]. Zie ook de [[Lijst van rijksmonumenten in Houten (gemeente)]].

{| class="wikitable sortable"
|-
!width=150|Object
!width=150|Oorspronkelijke functie
!width=60|Bouwjaar
!width=175|Architect
!width=175|Adres
!width=100|Afbeelding
|----
|Burgemeester Wallerweg
|[[Bestand:Factory icon.svg|12px]] Wagenmakerij
|
|
|[[Burgemeester Wallerweg]] 7
|[[Bestand:Burgemeester Wallerweg-7 Houten Nederland.JPG|120px]]
|----
|De Poort
|[[Bestand:Gfi-set01-hostel.svg|12px]]Woonhuis
|
|
|[[De Poort (Houten)|De Poort]] 36
|[[Bestand:De-Poort-36 Houten Nederland.JPG|120px]]
|----
|De Poort
|[[Bestand:Gfi-set01-hostel.svg|12px]]Koetshuis van de Grund
|
|
|[[De Poort (Houten)|De Poort]] 40
|[[Bestand:De-Poort-38 Houten Nederland.JPG|120px]]
|----
|De Grund
|[[Bestand:Gfi-set01-hostel.svg|12px]] Woonhuis - Gemeentehuis
|[[1877]]
|
|[[De Poort (Houten)|De Poort]] 42
|[[Bestand:De-Poort-40 Houten Nederland.JPG|120px]]
|----
|Herenweg
|[[Bestand:Gfi-set01-hostel.svg|12px]] Woonhuis
|
|
|[[Herenweg (Houten)|Herenweg]] 12
|[[Bestand:Herenweg-12 Houten Nederland.JPG|120px]]
|----
|Herenweg
|[[Bestand:Gfi-set01-hostel.svg|12px]] Woonhuis
|[[1882]]
|
|[[Herenweg (Houten)|Herenweg]] 21
|[[Bestand:Herenweg-21 Houten Nederland.JPG|120px]]
|----
|Houtensewetering
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|
|
|[[Houtensewetering]] 15
|[[Bestand:Houtensewetering-15 Houten Nederland.JPG|120px]]
|----
|Houtensewetering
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|[[1928]]
|
|[[Houtensewetering]] 19
|[[Bestand:Houtensewetering-19 Houten Nederland.JPG|120px]]
|----
|Houtensewetering
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|
|
|[[Houtensewetering]] 23
|[[Bestand:Houtensewetering-23 Houten Nederland.JPG|120px]]
|----
|Houtensewetering
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|
|
|[[Houtensewetering]] 25
|[[Bestand:Houtensewetering-25 Houten Nederland.JPG|120px]]
|----
|Willems Hoeve
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|[[1900]]
|
|[[Houtensewetering]] 29
|[[Bestand:Houtensewetering-29 Houten Nederland.JPG|120px]]
|----
|Houtensewetering
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|
|
|[[Houtensewetering]] 35
|[[Bestand:Houtensewetering-35 Houten Nederland.jpg|120px]]
|----
|Houtensewetering
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|
|
|[[Houtensewetering]] 37
|[[Bestand:Houtensewetering-37 Houten Nederland.JPG|120px]]
|----
|Houtensewetering
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|
|
|[[Houtensewetering]] 39
|[[Bestand:Houtensewetering-39 Houten Nederland.JPG|120px]]
|----
|Zelden Rust
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|
|
|[[Houtensewetering]] 41
|[[Bestand:Houtensewetering-41 Zelden-Rust-Houten Nederland.JPG|120px]]
|----
|Houtensewetering
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|
|
|[[Houtensewetering]] 43
|[[Bestand:Houtensewetering-43 Houten Nederland.JPG|120px]]
|----
|Arbeid Adelt
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|
|
|[[Houtensewetering]] 45
|[[Bestand:Houtensewetering-45-Arbeid-Adelt Houten Nederland.JPG|120px]]
|----
|Koningin Julianastraat
|[[Bestand:Gfi-set01-hostel.svg|12px]] Woonhuis
|
|
|[[Koningin Julianastraat (Houten)|Koningin Julianastraat]] 2
|[[Bestand:Koningin-Julianastraat Houten Nederland.JPG|120px]]
|----
|Loerikseweg
|[[Bestand:Gfi-set01-hostel.svg|12px]] Woonhuizen
|
|
|[[Loerikseweg]] 19 en 21
|[[Bestand:Loerikseweg-19-21 Houten Nederland.JPG|120px]]
|----
|Loerikseweg
|[[Bestand:Gfi-set01-hostel.svg|12px]] Woonhuis
|
|
|[[Loerikseweg]] 23
|[[Bestand:Loerikseweg-23 Houten Nederland.JPG|120px]]
|----
|Lupine-oord
|[[Bestand:Gfi-set01-hostel.svg|12px]] Woonhuis
|
|
|[[Lupine-oord]] 52
|[[Bestand:Lupine-oord-52 Houten Nederland-01.JPG|120px]]
|----
|Oud Wulfseweg
|[[Bestand:Japanese Map symbol (Hospital).svg|12px]] Rusthuis
|
|
|[[Oud Wulfseweg]] 4
|[[Bestand:Oud-Wulfseweg-4 Houten Nederland.JPG|120px]]
|----
|Oud Wulfseweg
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|
|
|[[Oud Wulfseweg]] 19
|[[Bestand:Oud-Wulfseweg-19 Houten Nederland.JPG|120px]]
|----
|Oud Wulfseweg
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|
|
|[[Oud Wulfseweg]] 20
|[[Bestand:Oud- Wulfseweg-20 Houten Nederland.JPG|120px]]
|----
|Oud Wulfseweg
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|
|
|[[Oud Wulfseweg]] 22
|[[Bestand:Oud- Wulfseweg-22 Houten Nederland.JPG|120px]]
|----
|Plein
|[[Bestand:Gfi-set01-hostel.svg|12px]] Woonhuis
|
|
|[[Plein (Houten)|Plein]] 3
|[[Bestand:Plein-3 Houten Nederland.JPG|120px]]
|----
|Plein
|[[Bestand:Education - Grad Hat.svg|12px]] Gereformeerde school
|
|
|[[Plein (Houten)|Plein]] 9
|[[Bestand:Kruitvat Plein-9 Houten Nederland.JPG|120px]]
|----
|Prins Bernhardweg
|[[Bestand:Gfi-set01-hostel.svg|12px]] Woonhuizen
|
|
|[[Prins Bernhardweg (Houten)|Prins Bernhardweg]] 9
|[[Bestand:Prins-Bernhardweg-9 Houten Nederland.JPG|120px]]
|----
|Prins Bernhardweg
|[[Bestand:Gfi-set01-hostel.svg|12px]] Woonhuizen
|
|
|[[Prins Bernhardweg (Houten)|Prins Bernhardweg]] 11-13-15 en 17
|[[Bestand:Prins-Bernhardweg Houten Nederland.JPG|120px]]
|----
|Smalspoor (vroeger de [[Beusichemseweg]])
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|
|
|[[Staatsspoor (Houten)|Smalspoor]] 5
|[[Bestand:Smalspoor-5 Houten Nederland.JPG|120px]]
|----
|[[Het Oude Station (Houten)|Oude Station]]
|[[Bestand:Sinnbild LKW.svg|12px]] Transport
|[[1868]]
|[[Gerrit van Diesen]]
|[[Stationserf]] 95-97 en 99
|[[Bestand:Oude-Station Houten.JPG|120px]]
|----
|Vlierweg
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|
|
|[[Vlierweg]] 3
|[[Bestand:Vlierweg-3 Houten Nederland.JPG|120px]]
|----
|Vlierweg
|[[Bestand:Gfi-set01-hostel.svg|12px]] Woonhuis
|
|
|[[Vlierweg]] 4
|[[Bestand:Vlierweg-4 Houten Nederland.JPG|120px]]
|----
|Vlierweg (Eben Haezer)
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|
|
|[[Vlierweg]] 91
|[[Bestand:Vlierweg-91_Eben-Haezer_Houten_Nederland-01.JPG|120px]]
|----
|Wickenburghseweg
|[[Bestand:Hooiberg.svg|12px]] Boerderij
|
|
|[[Wickenburghseweg]] 23
|[[Bestand:Wickenburghseweg-23_'t-Goy_Nederland.JPG|120px]]
|----
|Wickenburghseweg
|[[Bestand:Gfi-set01-hostel.svg|12px]] Woonhuis
|
|
|[[Wickenburghseweg]] 35
|[[Bestand:Wickenburghseweg-35_'t-Goy_Nederland.JPG|120px]]
|----
|}

{{Appendix|2=
* [https://www.houten.nl/over-gemeente-houten/monumenten-archeologie-en-kunst/monumenten/ Gemeente Houten - ''Monumenten'']
}}
{{commonscat|gemeentelijke monumenten in Houten}}

[[Categorie:Gemeentelijk monument in Houten| ]]
[[Categorie:Lijsten van gemeentelijke monumenten|Houten]]

30 changes: 30 additions & 0 deletions Houten/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
http://nl.wikipedia.org/w/index.php?title=Lijst_van_gemeentelijke_monumenten_in_Houten&oldid=33481953&action=raw
->
Houten.wiki

Target data model:
{{Tabelrij gemeentelijk monument
| object =
| bouwjaar =
| architect =
| adres =
| postcode = postcode (wordt niet getoond)
| plaats =
| lat =
| lon =
| gemcode = de unieke cbs-code voor elke gemeente
| objnr = de unieke code voor het object toegend door de gemeente
| kadaster = het kadastraal nummer (wordt niet getoond)
| aangewezen = datum dat het aagewezen is in categorie (wordt niet getoond)
| oorspr_fun = het oorspronkelijke functie (boerderij, bedrijf, enz), wordt niet getoond
| image =
}}
Input:
Object,Oorspronkelijke functie,Bouwjaar,Architect,Adres,Afbeelding

Output:
http://nl.wikipedia.org/wiki/Lijst_van_gemeentelijke_monumenten_in_Houten

Notes:
- manually replace the original header with the following:
{{Tabelkop gemeentelijke monumenten|prov-iso=nl-ge|gemeente=[[Houten]]|plaats_kop=Plaats}}
58 changes: 58 additions & 0 deletions Houten/convert.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#! /usr/bin/env python

import os, sys
debug = False

rcrds = []
buff = []

if __name__ == '__main__':
f = open('Houten.wiki','r')
# where:
# 0 = before the list
# 1 = inside the list
# 2 = after the list
where = 0
for line in map(lambda x:x.strip(),f.readlines()):
if where == 0:
if line == '|----':
where = 1
rcrds.append([])
print line
elif where == 1:
if line == '|}':
where = 2
buff.append(line)
elif line == '|----':
rcrds.append([])
else:
rcrds[-1].append(line[1:])
elif where == 2:
buff.append(line)
else:
print 'WTF?!'
f.close()
if len(rcrds[-1])==0:
rcrds.pop()
# print 'Got', len(rcrds), 'lines.'
uniq = 0
for r in rcrds:
uniq +=1
print '''{{Tabelrij gemeentelijk monument
| object = %s
| bouwjaar = %s
| architect = %s
| adres = %s
| postcode =
| plaats = [[Houten]]
| lat =
| lon =
| gemcode = 0321
| objnr = wikinr_%i
| kadaster =
| aangewezen =
| oorspr_fun = %s
| image = %s
}}''' % (r[0],r[2],r[3],r[4],uniq,r[1],r[5].split(':')[1].split('|')[0])
for line in buff:
print line
Loading

0 comments on commit 019177e

Please sign in to comment.