SPARQLing maths?

Hi I wanted to use cwm to do some maths.

So I wrote out the following query

PREFIX math: <http://www.w3.org/2000/10/swap/math#>
SELECT ?p
WHERE {
  ( 2 4 ) math:product ?p .
}

then I tried running it through cwm

hjs@bblfish:0$ cwm --sparql=addition.sparql --think --sparqlResults < / 
dev/null
loaded from file  0.163625955582
<?xml version="1.0"?>
<sparql xmlns="http://www.w3.org/2005/sparql-results#">
     <head>
          <variable name="p"/>
      </head>
      <results>
      </results>
</sparql>

I tried placing --think a little bit everywhere but with no success.
Is there a way to do this?

Henry


Home page: http://bblfish.net/

Received on Friday, 2 May 2008 13:21:13 UTC