On 9/26/13 5:32 AM, Vianney le Clément wrote:
Hello,When trying to run the following query on the dbpedia dataset, Virtuoso 06.01.3127 returns the error Virtuoso 22003 Error SR087: Non numeric argument(s) to arithmetic operation. -- PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX dbpont: <http://dbpedia.org/ontology/> PREFIX dbpprop: <http://dbpedia.org/property/> SELECT * WHERE { ?place1 rdf:type dbpont:Place ; dbpprop:augHighC ?temp1 . ?place2 rdf:type dbpont:Place ; dbpprop:augHighC ?temp2 . FILTER ( ?temp1 - ?temp2 > 5 ) } ORDER BY ?temp1 ?temp2 LIMIT 1 -- The error also happens on the public dbpedia sparql endpoint at http://dbpedia.org/sparql with Virtuoso 07.00.3203. Removing the ORDER BY claus or the FILTER makes Virtuoso happy. However, the full query is perfectly valid in SPARQL and should yield a result. What's going on? Thanks, Vianney
Yep! This is a bug. Proof:1. http://lod.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0APREFIX+dbpont%3A+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E%0D%0APREFIX+dbpprop%3A+%3Chttp%3A%2F%2Fdbpedia.org%2Fproperty%2F%3E%0D%0A%0D%0ASELECT+*%0D%0AWHERE+%7B%0D%0A++++%3Fplace1+rdf%3Atype+dbpont%3APlace+%3B%0D%0A++++++++++++dbpprop%3AaugHighC+%3Ftemp1+.%0D%0A++++%3Fplace2+rdf%3Atype+dbpont%3APlace+%3B%0D%0A++++++++++++dbpprop%3AaugHighC+%3Ftemp2+.%0D%0A++++FILTER+%28+%3Ftemp1+-+%3Ftemp2+%3E+5+%29%0D%0A%7D+ORDER+BY+%3Ftemp1+%3Ftemp2+LIMIT+1&format=text%2Fhtml&timeout=30000&debug=on -- lod.openlinksw.com in the host-cname (authority) part of URI
2. http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0APREFIX+dbpont%3A+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E%0D%0APREFIX+dbpprop%3A+%3Chttp%3A%2F%2Fdbpedia.org%2Fproperty%2F%3E%0D%0A%0D%0ASELECT+*%0D%0AWHERE+%7B%0D%0A++++%3Fplace1+rdf%3Atype+dbpont%3APlace+%3B%0D%0A++++++++++++dbpprop%3AaugHighC+%3Ftemp1+.%0D%0A++++%3Fplace2+rdf%3Atype+dbpont%3APlace+%3B%0D%0A++++++++++++dbpprop%3AaugHighC+%3Ftemp2+.%0D%0A++++FILTER+%28+%3Ftemp1+-+%3Ftemp2+%3E+5+%29%0D%0A%7D+ORDER+BY+%3Ftemp1+%3Ftemp2+LIMIT+1&format=text%2Fhtml&timeout=30000&debug=on -- dbpedia.org in the host-cname (authority) part of URI .
It will be resolved quickly. Kingsley
------------------------------------------------------------------------------ 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=60133471&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/Identi.ca handle: @kidehen Google+ Profile: https://plus.google.com/112399767740508618350/about LinkedIn Profile: http://www.linkedin.com/in/kidehen
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=60133471&iu=/4140/ostg.clktrk
_______________________________________________ Virtuoso-users mailing list Virtuoso-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/virtuoso-users