Hi Paolo,

On Wed, 2011-10-26 at 14:34 +0100, Paolo Castagna wrote: 
> Dave Reynolds wrote:
> > On Wed, 2011-10-26 at 13:38 +0100, Paolo Castagna wrote:
> > 
> >> I am not sure if these two triples in my data are both "correct", are they?
> >>
> >> ----
> >> <foo:bar1> <foo:p> "6.0"^^<http://www.w3.org/2001/XMLSchema#int> .
> >> <foo:bar2> <foo:p> "6.0"^^<http://www.w3.org/2001/XMLSchema#integer> .
> >> ----
> > 
> > No. The lexical forms for int and integer do not allow ".". See:
> > http://www.w3.org/TR/xmlschema-2/#integer etc and
> > http://www.w3.org/TR/xmlschema11-2/#integer etc
> > 
> > Perhaps that's why they aren't cannonicalized by TDB.
> 
> Thank you Dave.
> 
> I still do not understand why I do not see errors or warnings when
> I validate my data with http://sparql.org/data-validator.html [1]

Humm. When I go to [1] and type in:

    <foo:bar1> <foo:p> "6.0"^^<http://www.w3.org/2001/XMLSchema#int> .

Select "Turtle" (default) and press the validate button then I see the
error:

"""
[line: 10, col: 20] Lexical form '6.0' not valid for datatype
http://www.w3.org/2001/XMLSchema#int
<foo:bar1>  <foo:p>  "6.0"^^<http://www.w3.org/2001/XMLSchema#int> .
"""

Not sure what might be different in your case.

Dave


Reply via email to