I use a private version of DBpedia on a Virtuoso 7 compiled by myself from
the stable branch.

Yes, "http://www.w3.org/2001/XMLSchema#date"; is the same thing than
str(xsd:date).

But yes your post is approximatively the same thing than my problem, so I
think the problem come from this function because doesn't matter which type
I try to compare it doesn't works with the "prefix version" but only with
the "full version" of a type.

Best.

Julien.


2013/10/25 Joshua TAYLOR <joshuaaa...@gmail.com>

> Also, just to be clear,
>
>  filter(datatype(?death) = "http://www.w3.org/2001/XMLSchema#date";).
>
> should be the same as
>
>  filter(datatype(?death) = str(xsd:date) ).
>
> right?
>
> On Fri, Oct 25, 2013 at 12:09 PM, Joshua TAYLOR <joshuaaa...@gmail.com>
> wrote:
> > Are you querying locally, or against the public endpoint? Have a look
> > at the "Additional Strange Results" in this Stack Overflow question
> > and answer:
> >
> > http://stackoverflow.com/a/18793319/1281433
> >
> > I had some weird results while querying DBpedia and trying to work
> > with dates and datetimes.  This may or may not be related.
> >
> > On Fri, Oct 25, 2013 at 11:35 AM, Julien Plu
> > <julien....@redaction-developpez.com> wrote:
> >> Hi,
> >>
> >> I think I found a bug with the datatype SPARQL function. This query as
> zero
> >> results :
> >>
> >> 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";).
> >>
> >>     OPTIONAL {?entity <http://dbpedia.org/ontology/deathDate> ?death .
> >>
> >>             filter(datatype(?death) =
> >> "http://www.w3.org/2001/XMLSchema#date";).
> >>
> >>     }
> >>
> >> }
> >>
> >>
> >> Have-I missed something or is-it really a bug from Virtuoso 7 ?
> >>
> >>
> >> Thanks in advance.
> >>
> >>
> >> Julien.
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> 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
> >>
> >
> >
> >
> > --
> > Joshua Taylor, http://www.cs.rpi.edu/~tayloj/
>
>
>
> --
> Joshua Taylor, http://www.cs.rpi.edu/~tayloj/
>
------------------------------------------------------------------------------
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