Hi Hugh,
Why the expected result contains *three* triples of <suject> <predicate>
string ?
SQL> sparql select * from <teste_datatype> where {?s ?p ?o};
> s
> p
> o
> VARCHAR
> VARCHAR
> VARCHAR
>
> _______________________________________________________________________________
>
> subject
> predicate
> 1
> subject
> predicate
> 2
> subject
> predicate
> string
> subject
> predicate
> string
> subject
> predicate
> string
>
>
Taking into consideration, the SPARQL 1.0 spec, I would expected just
*one*triple <suject> <predicate> string.
----------
11.4.7 datatype
IRI datatype (typed literal typedLit)
IRI datatype (simple literal simpleLit)
Returns the datatype IRI of typedLit; returns *xsd:string *if the parameter
is a *simple literal.*
----------
Best Regards,
Percy
2012/2/24 Hugh Williams <[email protected]>
> Hi Percy,
>
> Using “isql” from command line I do get the expected results:
>
> SQL> sparql insert data into <teste_datatype> { <subject> <predicate>
> "string", "string"^^xsd:string, "string"^^xsd:String, "1"^^xsd:int,
> "1"^^xsd:integer, 2, "2"^^xsd:int. };
> callret-0
> VARCHAR
>
> _______________________________________________________________________________
>
> Insert into <teste_datatype>, 7 (or less) triples -- done
>
> 1 Rows. -- 15 msec.
> SQL> sparql select * from <teste_datatype> where {?s ?p ?o};
> s
> p
> o
> VARCHAR
> VARCHAR
> VARCHAR
>
> _______________________________________________________________________________
>
> subject
> predicate
> 1
> subject
> predicate
> 2
> subject
> predicate
> string
> subject
> predicate
> string
> subject
> predicate
> string
>
> 5 Rows. -- 39 msec.
> SQL>
>
> Although querying via the SPARQL endpoint does display the internally
> stored datatype information as you report:
>
> sposubjectpredicate"1"^^<http://www.w3.org/2001/XMLSchema#int>subject
> predicate"2"^^<http://www.w3.org/2001/XMLSchema#int>subjectpredicatestring
> subjectpredicate"string"^^<http://www.w3.org/2001/XMLSchema#string>subject
> predicate"string"^^<http://www.w3.org/2001/XMLSchema#String>
>
>
>
> I shall seek clarification from development on why this is the case ...
>
> Best Regards
> Hugh Williams
> Professional Services
> OpenLink Software, Inc. // http://www.openlinksw.com/
> 10 Burlington Mall Road, Suite 265, Burlington MA 01803
> Weblog -- http://www.openlinksw.com/blogs/
> LinkedIn -- http://www.linkedin.com/company/openlink-software/
> Twitter -- http://twitter.com/OpenLink
> Google+ -- http://plus.google.com/100570109519069333827/
> Facebook -- http://www.facebook.com/OpenLinkSoftware
> Universal Data Access, Integration, and Management Technology Providers
>
> On 23 Feb 2012, at 20:49, Percy Enrique Rivera Salas wrote:
>
> All,
>
> I successfully inserted the data below, with *explicit datatypes* through
> the Sparql Endpoint (WebBrowser), I also tried using the iSQL and Conductor
> Importer
>
> insert data into <teste_datatype>
>> {
>> <subject> <predicate> "string",
>> "string"^^xsd:string,
>> "string"^^xsd:String,
>> "1"^^xsd:int,
>> "1"^^xsd:integer,
>> 2,
>> "2"^^xsd:int.
>> }
>>
>
> But, after the following query execution
>
> select *
>> from <teste_datatype>
>> where {?s ?p ?o}
>>
>
> I got these triples
>
> s p o subject predicate "1"^^<http://www.w3.org/2001/XMLSchema#int>
> subject predicate 2 subject predicate "string"^^<
> http://www.w3.org/2001/XMLSchema#string> subject predicate "string"^^<
> http://www.w3.org/2001/XMLSchema#String> subject predicate string
> I would expected something like
>
> s p o subject predicate 1 subject predicate 2 subject predicate string
> Is this a bug? or am I doing something wrong?
>
> Best Regards,
>
> Percy
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
>
> http://www.accelacomm.com/jaw/sfnl/114/51521223/_______________________________________________
> Virtuoso-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>
>
>