Hi,
If I try to query after an object as string, and in the insert operation it
was typecasted to xsd:string it doenst match. Is this the correct behavior ?
We are confused because both typecasted and not typecasted points to
xsd:string.
See the example below:
#Explicit typecast (insert)
SQL> sparql insert into <teste_datatype> { <a> <string> "string
1"^^xsd:string . };
callret-0
VARCHAR
_______________________________________________________________________________
Insert into <teste_datatype>, 1 triples -- done
1 Rows. -- 14 msec.
#Don't explicit typecast (insert)
SQL> sparql insert into <teste_datatype> { <a> <string> "string 2". };
callret-0
VARCHAR
_______________________________________________________________________________
Insert into <teste_datatype>, 1 triples -- done
1 Rows. -- 5 msec.
#Verify datatype query. Is equal datatype .
SQL> sparql select ?o datatype(?o) from <teste_datatype> { <a> <string> ?o}
;
o
callret-1
VARCHAR
VARCHAR
_______________________________________________________________________________
string 1
http://www.w3.org/2001/XMLSchema#string
string 2
http://www.w3.org/2001/XMLSchema#string
2 Rows. -- 4 msec.
#The query to first insert. Return false.
SQL> sparql ask from <teste_datatype> { <a> <string> "string 1" . };
__ask_retval
INTEGER
_______________________________________________________________________________
0 Rows. -- 3 msec.
#The query to second insert. Return true.
SQL> sparql ask from <teste_datatype> { <a> <string> "string 2" . };
__ask_retval
INTEGER
_______________________________________________________________________________
1
1 Rows. -- 14 msec.
My virtuoso version:
./virtuoso-t -?
Virtuoso Open Source Edition (multi threaded)
Version 6.1.2.3127-pthreads as of Dec 16 2010
Compiled for Linux (x86_64-unknown-linux-gnu)
Copyright (C) 1998-2010 OpenLink Software
Best regards,
Renan Oliveira
-----------------------------------------------
Busca & Semântica - Globo.com
(21) 2483-6727
Y! glb_renan