Frans, On 17 Mar 2014, at 15:53, Frans Knibbe | Geodan <frans.kni...@geodan.nl> wrote:
> On 2013-11-08 7:37, Quentin wrote: >> Is it likely that Virtuoso 7 will come to support xsd:boolean without >> integer conversion? >> >> > A good question. I have just noticed that when I import boolean literals > they are converted to integers. That's using Virtuoso 7.1. Apparently it > has to do with there not being a boolean SQL datatype in Virtuoso. And I > can imagine there is no urgency to have that, because other SQL > datatypes can manage the boolean concept quite well. But I suspect that > is plenty of need for a boolean datatype in RDF output. > > Is there a known workaround for this problem? Some trick to have the > ones or zeroes converted to true or false in RDF output? For instance, > is it possible to attach a function to a certain set of objects, to be > executed when the object value is read? [Hugh] Coincidentally this ongoing issue with xsd:boolean was being discussed internally earlier today and a fix for this will be available later this week such that xsd:boolean types can be inserted and queried as follows: Data Creation: with graph <g1> insert { <strue> <p1> "true"^^xsd:boolean . <sfalse> <p1> "false"^^xsd:boolean } Queries: select * from <g1> where {?s ?p "false"^^xsd:boolean} and select * from <g1> where {?s ?p "0"^^xsd:boolean} return same solution ... Regards Hugh > > Regards, > Frans > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Virtuoso-users mailing list > Virtuoso-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/virtuoso-users ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Virtuoso-users mailing list Virtuoso-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/virtuoso-users