GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Coordinates templates in Wikipedia  XML
Forum Index -> General
Author Message
bernard



Joined: 18/08/2006 11:54:14
Messages: 29
Offline

Hello

There are (too) many templates to insert coordinates in Wikipedia. See current discussion of this issue at http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Geographical_coordinates . And this is for english Wikipedia only ... every other language uses its own templates ...

I was wondering which templates are effectively taken into account by geonames import of Wikipedia dump, and which one(s) are recommended to use in Wikipedia (en, fr ...) to be sure that they will be harvested correctly.

See for example coordinates included in the infobox for every French commune in fr Wikipedia, see e.g., http://fr.wikipedia.org/wiki/Guillestre . I guess the format is not supported, since the articles having coordinates formatted this way do not appear in geonames wikipedia links.
marc



Joined: 08/12/2005 07:39:47
Messages: 1599
Offline

Hi Bernard

I fully agree, the proliferation of coordinate templates in wikipedia is annoying. I simply don't understand why everybody feels they have to invent new templates over an over again. It makes it impossible to parse all templates and we have to focus on the most often used templates and forget about the others.

At the time of this writing geonames parses the following wikipedia templates :

{{coor dms|46|57|08.66|N|7|26|22.50|E|region:CH_type:landmark}}
{{Koordinate Artikel ...
{{koordynaty ...
{{Mapit-US-cityscale ...

The template for French communities is not yet supported by geonames.

Regards

Marc

[WWW]
bernard



Joined: 18/08/2006 11:54:14
Messages: 29
Offline

OK so you would recommend to use, at least for english Wikipedia, the standard dms templates generated by http://de.giswiki.net/hjl_get_CoorE.htm
And if I remember well, as long as the english Wikipedia article is geotagged, the matching articles in other languages are also harvested, right?
marc



Joined: 08/12/2005 07:39:47
Messages: 1599
Offline

Yes this should be perfect and tagging the English article is sufficient.


Marc

[WWW]
marc



Joined: 08/12/2005 07:39:47
Messages: 1599
Offline

The French Communities are now parsed and included in the search and in the display :

http://www.geonames.org/wikipedia-search.html?q=Guillestre&lang=fr

Marc

[WWW]
bernard



Joined: 18/08/2006 11:54:14
Messages: 29
Offline

Marc

Well done, once again. BTW the "Guillestre" search you give as example made me discover "Molandier" ... which has nothing to do with "Canton de Guillestre" to which it was rattached by mistake in Wikipedia. I just corrected that in Wikipedia, so I can know at which point the geonames full text search will be in sync. I guess the query is on your local dump of Wikipedia, not a runtime query on Wikipedia. Right?
marc



Joined: 08/12/2005 07:39:47
Messages: 1599
Offline

Bernard

It will take some weeks or months till your change will be visible on geonames. The newest available wikipedia dump for the French version is of Oct 14 2006. This is the one I have loaded yesterday :
http://geonames.wordpress.com/2006/11/05/wikipedia-load-3/

I don't know when the next dump will be available on the wikipedia download section : http://download.wikipedia.org/

Cheers

Marc

[WWW]
kentaur



Joined: 11/11/2006 20:45:05
Messages: 3
Offline

Hallo,

how to get coordinates template used in Estonian wikipedia harvested by geonames?

There's heavily used template for Estonian populated places.

{{EestiAsula
| nimi =
| lipu_pilt =
| lipu_link =
| vapi_pilt =
| vapi_link =
| pindala =
| elanikke =
| lat_deg =
| lat_min =
| lat_sec =
| lon_deg =
| lon_min =
| lon_sec =
| maakond =
}}

lat is N, and lon E

-raul-

marc



Joined: 08/12/2005 07:39:47
Messages: 1599
Offline

Hi Kentaur

The source code (java) for the parser is not yet in the cvs tree. Would you like to contribute to it? If yes, I will move the code to sourceforge.
Otherwise I will see what I can to myself and include it in the parser.

Marc

[WWW]
kentaur



Joined: 11/11/2006 20:45:05
Messages: 3
Offline

I'm not familiar with cvs. But if you can post here the code snippet used for harvesting {{coor dms|...}} template, then I can provide my version for harvesting this 'Populated place of Estonia' template.

marc



Joined: 08/12/2005 07:39:47
Messages: 1599
Offline

Hi Kentaur

I would not use the code for the {{coor template. The Estonian template has 'named parameters' and I would use the parameter names for parsing. Some thing like :

Code:
         koord = koord.replaceAll(" ","");
         int idx = koord.indexOf("lon_deg=") + 8;
         int lenght =  koord.indexOf("|", idx) - idx;
 
         double lng = Double.parse(koord.substring(idx, idx + lenght));
 


Marc

[WWW]
kentaur



Joined: 11/11/2006 20:45:05
Messages: 3
Offline

ok,
about other fields 'nimi' means 'name'
and
'elanikke' stands for population, it's used like
Code:
 elanikke = 76
 or
 elanikke = 76 (2006)
 or
 elanikke = 76 (13.1.2006)
 


Anonymous



Hello,
Take a look at:
http://de.wikipedia.org/wiki/Wikipedia:WikiProjekt_Georeferenzierung/Wikipedia-World

Unfurtunaly, in the moment your Toolserver-database is down, but you can get the first csv and sql version of our datas.

I work together with Stefan Kühn. My name ist Kolossos, ok it isn't my real name.
http://de.wikipedia.org/wiki/Benutzer:Kolossos

Greetings
Anonymous



Now I have a login.
I forgot to say, we have also an english page:
http://de.wikipedia.org/wiki/Wikipedia:WikiProjekt_Georeferenzierung/Wikipedia-World/en

We work on universal skript for all languages. Because we have both other fulltime jobs, we would welcome any help.

Greetings
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team