>
> Add a configuration value decimalSeparator whose value may be dot or
> comma: "," or ".". Bit hard to read... We would also need a
> configuration value groupSeparator.


+1 to this. Accepted values:
- "dot" or "."
- "comma" or ","
- "space" or " "
(it is the case that groupSeparators are spaces sometimes)

Cheers,
Pablo

On Wed, May 30, 2012 at 4:29 PM, Jona Christopher Sahnwaldt <j...@sahnwaldt.de
> wrote:

> Hi Maria,
>
> thanks for the report!
>
> The problem is that the number is displayed with a comma as the
> decimal separator, but in the source text of the page [1], the decimal
> separator is a dot:
>
> | área                 = 282.569
>
> The template [2] that generates the HTML from the source expects the
> number to use a dot and formats it appropriately for
> Brazilian/Portuguese:
>
> {{formatnum:{{{área}}}}}
>
> To fix this problem, we will have to extend our extraction framework,
> so that users can specify which decimal separator is used in the
> values of a certain template property.
>
> @developers: We will have to discuss what's the best way to do this...
>
> - Add a configuration value decimalSeparator whose value may be dot or
> comma: "," or ".". Bit hard to read... We would also need a
> configuration value groupSeparator.
>
> - Add a configuration value numberFormat that takes a language code,
> in this case "en".
>
> - Add a configuration value numberFormat that takes a decimal
> separator and a group separator: ".,". Bit hard to read...
>
> Any other ideas?
>
> JC
>
> [1] http://pt.wikipedia.org/w/index.php?title=Rio_Rufino&action=edit
> [2]
> http://pt.wikipedia.org/w/index.php?title=Predefinição:Info/Município_do_Brasil&action=edit
> [3]
> http://mappings.dbpedia.org/index.php/Mapping_pt:Info/Município_do_Brasil#.C3.A1rea
>
> On Wed, May 30, 2012 at 1:06 PM, María Poveda <mpov...@fi.upm.es> wrote:
> > Hello everybody,
> >
> >   I was having a look at DBpedia data about cities as for example the
> area
> > total property. I would like to know how do you deal with different
> decimal
> > separators and grouping separators between countries. For example I found
> > that in  http://pt.wikipedia.org/wiki/Rio_Rufino the area total is
> 282,569
> > km² and I think the "," is a decimal separator according to the Brazilian
> > convention [1] . However in the DBpedia dataset I found the following
> value:
> > 2.82569E11. My guess is that separator is being used as grouping
> separator
> > as it is the convention in United Kingdom [2] for example.
> >
> > I would be very thankful if you can enlighten me.
> >
> > Cheers,
> >
> > María
> >
> > [1]
> >
> http://publib.boulder.ibm.com/infocenter/forms/v3r0m0/topic/com.ibm.help.forms.doc/locale_spec/i_xfdl_r_formats_pt_BR.html
> > [2]
> >
> http://publib.boulder.ibm.com/infocenter/forms/v3r0m0/topic/com.ibm.help.forms.doc/locale_spec/i_xfdl_r_formats_en_GB.html
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > Dbpedia-discussion mailing list
> > Dbpedia-discussion@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
> >
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Dbpedia-developers mailing list
> dbpedia-develop...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dbpedia-developers
>

>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dbpedia-discussion mailing list
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to