W3C home > Mailing lists > Public > public-rdf-wg@w3.org > October 2012

Re: Proposal to NOT address I18N-ISSUE-183: Use of types questionable?

From: Richard Cyganiak <richard@cyganiak.de>
Date: Sun, 21 Oct 2012 20:20:57 +0100
Cc: RDF-WG WG <public-rdf-wg@w3.org>, Internationalization Core Working Group <www-international@w3.org>, Gavin Carothers <gavin@carothers.name>
Message-Id: <6FBBDE2A-9EB1-4204-9BA9-53BB1E326966@cyganiak.de>
To: Eric Prud'hommeaux <eric@w3.org>

I have to disagree. Neither untyped integers nor untyped doubles are hard to find; examples for integers include world rankings (e.g., 34th in the world) and unit multipliers (e.g., 9 for billions); examples for doubles include ratios (e.g., change compared to previous year) and, indeed, structured typed values:

  :landArea [ :unit :km2; :value 9.827E6 ];

The current example does not just lack rigour, but shows two examples of poor practice:

1. the use of integers where a more appropriate XSD type (gYear) exists; don't do that!
2. the use of floating point values for currencies; don't do that!

Also, a census does not produce GDP figures. Call it </stat-facts2007> or whatever.

(who often hangs out with statistics people)

On 17 Oct 2012, at 17:53, Eric Prud'hommeaux wrote:

> Proposal to NOT address I18N-ISSUE-183: Use of types questionable?
> ===============================================================
> Issue: In the example [[
>  @prefix : <http://example.org/stats> .
>  <http://somecountry.example/census2007>
>      :censusYear 2007 ;              # xsd:integer
>      :birthsPerPerson .0135 ;        # xsd:decimal
>      :gdpDollars 14074.2E9 ;         # xsd:double
> ]], 2007 and 14074.2E9 should be typed.
> Discussion: Untyped integers and doubles are hard to come by. The datatypes for some, like gene sequence location, don't spring as readily to the average reader's mind, but they are typed. While the current example doesn't demonstrate the most rigorous data modelling, it illustrates the parsing of integer, decimal and double barewords.
> Proposal: no change, noting that proposals from I18N (or anyone else) are welcome and easily incorporated after LC.
> Please indicate whether this addresses the stated issue.
> -- 
> -ericP
Received on Sunday, 21 October 2012 19:21:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:04:22 UTC