Hi Paul,
> 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.
You were right, the list seems to be outdated. I just temporarily
modified an article which used the infobox "Infobox Ortsteil einer
Gemeinde in Deutschland" and everything was extracted flawlessly.
> 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.
Let's just say we have an infobox like:
{{ Infobox settlement
| area =
| elevation =
...
}}
If valid units of the values were km2/mi2 (area) and m/ft (elevation)
- the user would then have to specify the unit when using the
template, e.g. "area = 23 km2" - you'd have two independent
categories. In the mapping you'd have to make a condition based on
which unit string is contained in the area property. The same holds
true for the elevation property. But as far as I understood the syntax
of mappings you cannot nest the conditions, can you? Am I right with
the assumption that conditions have to be at the first level and that
the conditional mapping statements have to be whole templatemappings?
It would be nifty to be able to define the mapping like this:
{{ TemplateMapping
| mapToClass = Settlement
| mappings =
<!-- AREA mapping based on a condition -->
{{ ConditionalMapping
| cases =
{{ Condition
| templateProperty = area
| operator = contains
| value = km2
| mapping =
{{ PropertyMapping | templateProperty = area |
ontologyProperty = area | unit = squareKilometre }}
}}
{{ Condition
| templateProperty = area
| operator = contains
| value = mi2
| mapping =
{{ PropertyMapping | templateProperty = area |
ontologyProperty = area | unit = squareMiles }}
}}
}}
<!-- ELEVATION mapping based on a condition -->
{{ ConditionalMapping
| cases =
{{ Condition
| templateProperty = area
| operator = contains
| value = m
| mapping =
{{ PropertyMapping | templateProperty = area |
ontologyProperty = area | unit = metre }}
}}
{{ Condition
| templateProperty = area
| operator = contains
| value = ft
| mapping =
{{ PropertyMapping | templateProperty = area |
ontologyProperty = area | unit = feet }}
}}
}}
}}
Do you take my point?
Cheers,
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