Ok,
but if you increase the LIMIT to lets say 100, then you might probably
see for [1]
http://dbpedia.org/sparql?default-graph-uri=&query=prefix+dbpedia-owl%3A+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E%0D%0ASELECT+*+WHERE+%7B%0D%0A++++%3Fs+dbpedia-owl%3AbirthDate+%3Fo1.%0D%0A++++%3Fs+dbpedia-owl%3AbirthDate+%3Fo2.%0D%0A++++FILTER%28%21sameTerm%28%3Fo1%2C+%3Fo2%29%29%0D%0A%7D+LIMIT+100&format=text%2Fhtml&CXML_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=30000&debug=on
and there are some rows where both dates are the same, like e.g.
http://dbpedia.org/resource/Ava_Devine 1974-01-22 1974-01-22
http://dbpedia.org/resource/Avet_Terterian 1929-07-29 1929-07-29
http://dbpedia.org/resource/Avigdor_Kahalani 1944-06-16 1944-06-16
http://dbpedia.org/resource/Avraham_Biran 1909-10-23 1909-10-23
And there is also a difference between using '!=' and '< || >' like here
[2]
http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=select+COUNT%28DISTINCT+%3Fs%29+where+%7B%3Fs+dbpedia-owl%3AbirthDate+%3Fo1.%3Fs+dbpedia-owl%3AbirthDate+%3Fo2.FILTER%28%3Fo1+%21%3D+%3Fo2%29%7D&format=text%2Fhtml&timeout=30000&debug=on
and here
[3]
http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=select+COUNT%28DISTINCT+%3Fs%29+where+%7B%3Fs+dbpedia-owl%3AbirthDate+%3Fo1.%3Fs+dbpedia-owl%3AbirthDate+%3Fo2.FILTER%28%3Fo1+%3C+%3Fo2+%7C%7C+%3Fo2+%3C+%3Fo1%29%7D&format=text%2Fhtml&timeout=30000&debug=on
Lorenz
On 11/22/2013 09:58 PM, Kingsley Idehen wrote:
On 11/22/13 2:55 PM, Lorenz Bühmann wrote:
Hi,
I'm wondering if it's a bug when I try to run the following SPARQL
query on http://dbpedia.org/sparql
SELECT * WHERE {
?s dbpedia-owl:birthDate ?o1.
?s dbpedia-owl:birthDate ?o2.
FILTER(!sameTerm(?o1, ?o2))
} LIMIT 100
which is supposed to return resources which have more than one
birthDate, but also returns resource with only one birthDate, e.g.
http://dbpedia.org/resource/Avet_Terterian 1929-07-29 1929-07-29
Kind regards,
Lorenz
I see:
[1]
http://dbpedia.org/sparql?default-graph-uri=&query=prefix+dbpedia-owl%3A+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E%0D%0ASELECT+*+WHERE+%7B%0D%0A++++%3Fs+dbpedia-owl%3AbirthDate+%3Fo1.%0D%0A++++%3Fs+dbpedia-owl%3AbirthDate+%3Fo2.%0D%0A++++FILTER%28%21sameTerm%28%3Fo1%2C+%3Fo2%29%29%0D%0A%7D+LIMIT+10&format=text%2Fhtml&CXML_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=30000&debug=on
-- DBpedia
[2]
http://lod.openlinksw.com/sparql?default-graph-uri=&query=prefix+dbpedia-owl%3A+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E%0D%0ASELECT+*+WHERE+%7B%0D%0A++++%3Fs+dbpedia-owl%3AbirthDate+%3Fo1.%0D%0A++++%3Fs+dbpedia-owl%3AbirthDate+%3Fo2.%0D%0A++++FILTER%28%21sameTerm%28%3Fo1%2C+%3Fo2%29%29%0D%0A%7D+LIMIT+10&format=text%2Fhtml&CXML_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=30000&debug=on
-- LOD Cloud Cache .
Kingsley
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users
--
Regards,
Kingsley Idehen
Founder & CEO
OpenLink Software
Company Web:http://www.openlinksw.com
Personal Weblog:http://www.openlinksw.com/blog/~kidehen
Twitter Profile:https://twitter.com/kidehen
Google+ Profile:https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile:http://www.linkedin.com/in/kidehen
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users