Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
resolving lookup-list data out of sub-templates #305
This is a hard or maybe impossible problem to solve. Still I'll ask.
On the bg.wikipedia, it seems that a lot of the data about settlements is modularized into lookup lists in sub-templates.
A whole bunch of other data is keyed on the екатте code.
I don't grok them, but https://bg.wikipedia.org/w/index.php?title=Шаблон:Селище_в_България lists a bunch of "Auxiliary templates" including eg
Opening the last one https://bg.wikipedia.org/w/index.php?title=Шаблон:Селище_в_България/Община_2&action=edit we see a bunch of tabular data keyed on екатте, eg
This maps settlement with екатте=3753 to Община=VTR04, which is the BG NSI code for that Община.
The extraction http://mappings.dbpedia.org/server/extraction/bg/extract?title=Змеица&revid=&format=turtle-triples&extractors=custom is missing all of the data that is "hidden" in lookup tables.
Is this even possible to fix?