From: Juriy K. <kat...@gm...> - 2010-12-23 15:07:25
|
Hello everyone! I have the following question. In my semantic wiki I have a data about scientists. For each scientist I have the information about his place of birth. How I store the name of the city and geographical coordinates separately. For example I have the following on the page Christiaan Huygens: [[Place of birth coordinates::52.0698576, 4.2911114]] [[City of birth::The Hague]] [[Country of birth::Netherlands]] Does the other, more elegant way of storing the geo-information exist? For example, is it possible to input only coordinates and dynamically figure out the country name and the city name? Sincerely yours, Yury -- Yury V. Katkov Laboratory of intelligent systems of the Saint-Petersburg National University of Information Technologies, Mechanics and Optics, Russia http://ailab.ifmo.ru |
From: Jeroen De D. <jer...@gm...> - 2010-12-23 16:19:27
|
Hey, > For example, is it possible to input only coordinates and dynamically figure out the country name and the city name? No, but the reverse is possible. You can enter the country and city, and then set the coordinates to the geocoded value of that. This can be done using the #geocode parser function [0]. However, you will lose accuracy when only specifying country and city. You can use the #if parser function from the parser functions extension [1] to turn the coordinates field in your template optional, and only when no value is provided, do the geocoding. [0] http://mapping.referata.com/wiki/Geocode [1] http://www.mediawiki.org/wiki/Extension:ParserFunctions Cheers -- Jeroen De Dauw http://blog.bn2vs.com Don't panic. Don't be evil. -- On 23 December 2010 16:06, Juriy Katkov <kat...@gm...> wrote: > Hello everyone! > > I have the following question. In my semantic wiki I have a data about > scientists. For each scientist I have the information about his place of > birth. > How I store the name of the city and geographical coordinates separately. > For example I have the following on the page Christiaan Huygens: > [[Place of birth coordinates::52.0698576, 4.2911114]] > [[City of birth::The Hague]] > [[Country of birth::Netherlands]] > > Does the other, more elegant way of storing the geo-information exist? > For example, is it possible to input only coordinates and dynamically > figure > out the country name and the city name? > > Sincerely yours, > Yury > -- > Yury V. Katkov > Laboratory of intelligent systems > of the Saint-Petersburg National University of Information Technologies, > Mechanics and Optics, Russia > http://ailab.ifmo.ru > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > |
From: Yaron K. <ya...@gm...> - 2010-12-23 16:36:22
|
Let me add that, besides the technical challenges, there are inherent difficulties with doing the mapping in either direction, when dealing with historical data. Boundaries change, and place names change as well - as a resident of St. Petersburg, I'm sure you're aware of that. :) So I would argue for making users set all the data explicitly, even though it's more work. -Yaron On Thu, Dec 23, 2010 at 11:18 AM, Jeroen De Dauw <jer...@gm...>wrote: > Hey, > > > For example, is it possible to input only coordinates and dynamically > figure out the country name and the city name? > > No, but the reverse is possible. You can enter the country and city, and > then set the coordinates to the geocoded value of that. This can be done > using the #geocode parser function [0]. However, you will lose accuracy > when > only specifying country and city. You can use the #if parser function from > the parser functions extension [1] to turn the coordinates field in your > template optional, and only when no value is provided, do the geocoding. > > [0] http://mapping.referata.com/wiki/Geocode > [1] http://www.mediawiki.org/wiki/Extension:ParserFunctions > > Cheers > > -- > Jeroen De Dauw > http://blog.bn2vs.com > Don't panic. Don't be evil. > -- > > > On 23 December 2010 16:06, Juriy Katkov <kat...@gm...> wrote: > > > Hello everyone! > > > > I have the following question. In my semantic wiki I have a data about > > scientists. For each scientist I have the information about his place of > > birth. > > How I store the name of the city and geographical coordinates separately. > > For example I have the following on the page Christiaan Huygens: > > [[Place of birth coordinates::52.0698576, 4.2911114]] > > [[City of birth::The Hague]] > > [[Country of birth::Netherlands]] > > > > Does the other, more elegant way of storing the geo-information exist? > > For example, is it possible to input only coordinates and dynamically > > figure > > out the country name and the city name? > > > > Sincerely yours, > > Yury > > -- > > Yury V. Katkov > > Laboratory of intelligent systems > > of the Saint-Petersburg National University of Information Technologies, > > Mechanics and Optics, Russia > > http://ailab.ifmo.ru > > > > > ------------------------------------------------------------------------------ > > Learn how Oracle Real Application Clusters (RAC) One Node allows > customers > > to consolidate database storage, standardize their database environment, > > and, > > should the need arise, upgrade to a full multi-node Oracle RAC database > > without downtime or disruption > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Semediawiki-user mailing list > > Sem...@li... > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > -- WikiWorks · MediaWiki Consulting · http://wikiworks.com |
From: Edward S. <de...@vs...> - 2010-12-23 17:41:03
|
One other option you could consider is to make cities be a separate category in your wiki. Then each city would have coordinates and country as properties of the city. This would avoid potential errors if the data doesn't match. For instance, it would avoid someone entering Joe. Q. Scientist [[City of Birth::The Hague]] [[Country of Birth::Russia]]. Then you could have a page for each city listing the scientists born there (and possibly the location on a map, for those out-of-the way cities). -----Original Message----- From: Juriy Katkov [mailto:kat...@gm...] Sent: Thursday, December 23, 2010 10:07 AM To: Semantic MediaWiki users Subject: [Semediawiki-user] [SM] how to use input and use both coordinatesand names of geoobjects? Hello everyone! I have the following question. In my semantic wiki I have a data about scientists. For each scientist I have the information about his place of birth. How I store the name of the city and geographical coordinates separately. For example I have the following on the page Christiaan Huygens: [[Place of birth coordinates::52.0698576, 4.2911114]] [[City of birth::The Hague]] [[Country of birth::Netherlands]] Does the other, more elegant way of storing the geo-information exist? For example, is it possible to input only coordinates and dynamically figure out the country name and the city name? Sincerely yours, Yury -- Yury V. Katkov Laboratory of intelligent systems of the Saint-Petersburg National University of Information Technologies, Mechanics and Optics, Russia http://ailab.ifmo.ru ------------------------------------------------------------------------ ------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Semediawiki-user mailing list Sem...@li... https://lists.sourceforge.net/lists/listinfo/semediawiki-user This e-mail and any attachments are for the intended recipient(s) only and may contain proprietary, confidential material. If you are not the intended recipient, (even if the email address above is yours) do not use, retain, copy or disclose any part of this communication or any attachment as it is strictly prohibited and may be unlawful. If you believe that you have received this e-mail in error, please notify the sender immediately and permanently delete. This email may be a personal communication from the sender and as such does not represent the views of the company. |