Hi Bastian -------- Original-Nachricht -------- > Datum: Wed, 6 Apr 2011 09:54:11 +0200 > Von: Bastian Gorholt <[email protected]> > An: [email protected] > Betreff: [Dbpedia-discussion] Conditional mapping not working?
> Hi again, > > I just tried to use a conditional mapping and somehow failed. In the > infobox "Ortsteil einer Gemeinde in Deutschland" > (http://de.wikipedia.org/wiki/Vorlage:Infobox_Ortsteil_einer_Gemeinde_in_Deutschland) > you have a property whose semantic changes depending on whether > another property is set or not set: > - "Höhe" = average elevation, if "Höhe-bis" is not set, > - "Höhe" = minimum elevation, otherwise. > So I applied a conditional mapping to distinguish the two cases. > Unfortunately if the otherwise branch holds true for a page then no > template extraction for this page is performed, at all! If you test > the mapping of > http://mappings.dbpedia.org/index.php/Mapping_de:Infobox_Ortsteil_einer_Gemeinde_in_Deutschland > you will recognize this behaviour at the first two entries displayed > (Hellerau and Pillnitz). So what is wrong with the mapping? Your mapping seems to be correct. But the articles that are not extracted uses the "Infobox Ortsteil einer Gemeinde", which is a redirect to "Infobox Ortsteil einer Gemeinde in Deutschland" since december 2010. It is probably that the list with the redirects used by the extraction server is outdated. To prove this you could find an article that uses the "Infobox Ortsteil einer Gemeinde in Deutschland", is extracted and has set the "Höhe-bis" property. > A second issue: > Are there any possibilities of performing a more general conditional > mapping? Sometimes it would be useful to have some conditions which > are independent of each other. Say if in the former infobox there > would have been the option to set the unit of area by appending "acre" > or "km2" to the actual value. How would you realize the additional > condition? Do you mean nested conditions? If the unit is given in an extra property, it could work, i never tried it and i couldn't found an example. > And a third one: > What if there was the need of linking several conditions? If the user > could also choose the unit of elevation there would be the need to > "and" the "Höhe-bis"-set condition and the "Höhe"-contains-"acre" > condition. Is that possible? AND and OR operators aren't implemented yet. regards, paul > Thanks for your help in advance, > Bastian > >------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > _______________________________________________ > Dbpedia-discussion mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ Dbpedia-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
