Dave Reynolds wrote:
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.
Interesting...
Sorry, I assumed I would have had the same answer no matter the input format.
But, the validator (in Joseki) is giving different answers for the same data.
In particular, when N-Triples format is used as input, there is no error.
I've just tried with Fuseki and it's fine, good! :-)
I have a large N-Triples or N-Quads file, what's the best way (i.e. the more
strict the better for me) to validate the data in it, before ingestion?
Thanks a lot.
Paolo
Dave