Re: Loops and conditionals with SPARQL

On 30 Nov 2009, at 13:44, leyla.garcia@ebusiness-unibw.org wrote:

> Hello there,
>
> I have an object property which can appear more than once. It  
> defines min
> and max values for prices which should not overlap and I need to  
> check it.
...
> I think I can do it with SPARQL and loops. For each price I need to  
> look
> at the others and see if values are overlapping so I coudl get the  
> set of
> all overlapping elements. Something like:
...
> Is something like that possible? How can I accomplish this check? do I
> have to do it programatically, perhaps in Java, with regular loops?

The easiest way would be in Java with regular loops, but it may also  
be possible to do it in SPARQL.

In the proposed SPARQL 1.1 I think you could do it with a subSELECT,  
but I don't have an implementation to hard to try it on.

- Steve

Received on Monday, 30 November 2009 15:58:12 UTC