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

------------------------------------------------------------------------------
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

Reply via email to