On 10/25/13 11:35 AM, Julien Plu wrote:

select distinct count(?birth) count(?death)

where {

    ?entity <http://dbpedia.org/ontology/birthDate> ?birth .

    filter(datatype(?birth) = xsd:date).

OPTIONAL {?entity <http://dbpedia.org/ontology/deathDate> ?death .

filter(datatype(?death) = xsd:date).

}

}


And this query return the good results :

select distinct count(?birth) count(?death)

where {

    ?entity <http://dbpedia.org/ontology/birthDate> ?birth .

filter(datatype(?birth) = "http://www.w3.org/2001/XMLSchema#date <http://www.w3.org/2001/XMLSchema#string>").

OPTIONAL {?entity <http://dbpedia.org/ontology/deathDate> ?death .

filter(datatype(?death) = "http://www.w3.org/2001/XMLSchema#date <http://www.w3.org/2001/XMLSchema#string>").

}

}


Have-I missed something or is-it really a bug from Virtuoso 7 ?

It's a bug if you don't have this issue when using Virtuoso 6. That said, I would expect the following to work:

prefix xsd: <http://www.w3.org/2001/XMLSchema#>

select distinct count(?birth) count(?death)

where {

    ?entity <http://dbpedia.org/ontology/birthDate> ?birth .

    filter(datatype(?birth) = xsd:date).

OPTIONAL {?entity <http://dbpedia.org/ontology/deathDate> ?death .

filter(datatype(?death) = xsd:date).

}

}

Proof:

1. http://kingsley.idehen.net/c/DBYF6E -- query against LOD Cloud Cache .


--

Regards,

Kingsley Idehen 
Founder & CEO
OpenLink Software
Company Web: http://www.openlinksw.com
Personal Weblog: http://www.openlinksw.com/blog/~kidehen
Twitter/Identi.ca handle: @kidehen
Google+ Profile: https://plus.google.com/112399767740508618350/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen




Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to