owlim-discussion  

Re: [Owlim-discussion] Filter

Ivan Peikov
Tue, 11 May 2010 05:17:16 -0700

Hi Arjon,

The thing with typed literals is that you often cannot use them directly in 
comparisons. In the current case the ?income variable is of type 
http://dbpedia.org/ontology/usDollar which cannot be directly compared to a 
numeric value (SPARQL doesn't know its semantics). In order to do the 
comparison you should first convert it to a numeric type e.g. xsd:double and 
then do comparisons with it. This would make the following filter:

  FILTER (xsd:double(str(?income)) > 1000000000)

This is something not related to OWLIM directly but to SPARQL in general.
However, I discovered that there is a problem with such a construct in OWLIM 
and therefore such filters don't work correctly in the current deployment of 
LDSR. The problem is now fixed and will be deployed within days to 
ldsr.ontotext.com so you will be able to utilize it.

Thanks for reporting!


Cheers,
Ivan

On Monday 10 May 2010 19:21:11 Buikstra, A.P.F. wrote:
> Hi guys,
>
> Quick question,
>
> I'm running into I was expecting to work with Filter:
> http://tinyurl.com/34pg6yp
> While without filter it just works:
> http://tinyurl.com/2w3fwws
>
> Any idea where I am messing up?
>
> Thanks,
>
> Arjon Buikstra


_______________________________________________
OWLIM-discussion mailing list
OWLIM-discussion@ontotext.com
http://ontotext.com/mailman/listinfo/owlim-discussion