Re: Datatype normalization

On Fri, 12 Nov 2010 11:33:12 +0000
Nathan <nathan@webr3.org> wrote:

> What reason would there be not to just infer/pull the type and
> convert to a typed literal?

It probably is sensible to do it, but not in a general RDF library.
Why? Because probably the place where you're going to be able to do it
most reliably/usefully will be where the value is actually used to do
something.

Replacing your { ex:prop rdfs:range xsd:decimal . } with an ex:costs
property (same range), the specific programming which actually processes
these as prices, rather than the generic programming which is
processing them as typed literals, will have better knowledge of what
the data is supposed to look like, so how best to clean it up.

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>

Received on Friday, 12 November 2010 22:16:35 UTC