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?

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?

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?

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

Reply via email to