Re: GRDDL Primer SPARQL Queries: Part 1 Scheduling

Lee Feigenbaum wrote:
> Harry Halpin <hhalpin@ibiblio.org> wrote on 06/19/2007 09:10:13 PM:
>
>   
>> This query still works, but it's a bit funky as it seems to produce
>> rather repetitive output. I vaguely remember Lee Feigenbaum having a
>> clever (if somewhat underhanded) fix for this at our tutorial in
>> WWW2007, but I cannot find record of it anywhere. LeeF? The problem is
>> that there are too many of the "same" results being produced by SPARQL:
>>
>> Here's the query:
>> http://www.w3.org/2001/sw/grddl-wg/doc29/schedulequery.rq
>>     
>
> This is what I found in #swig history:
>
> [23:01] LeeF: 
>        FILTER ( xs:string(?summ1) <= xs:string(?summ2) ). 
>        FILTER ( xs:string(?summ2) <= xs:string(?summ3) ).
>   
Thanks - solves problem and now checked into Primer.
> Lee
>
>
>   
>> Also, the 3 repeating FILTERS are ugly for a tutorial but I can see no
>> way around.
>>
>> The results are (using ARQ):
>>
>>
>>     
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>   
>> | start1                | stop1                 |
>> loc1 
>> |
>> summ1  
>> | summ2                                |
>> summ3  
>> |
>>
>>     
> =========================================================================================================================================================================================================================================================================================================================================================================
>   
>> | "2007-01-08"          | "2007-01-11"          | "Edinburgh,
>> UK"                                                          | "pick up
>> a lifetime\n      achievement award from the Web Design Conference" |
>> "Web Design Conference"@en                                | "Web
>> Conference"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> |
>> | "2007-01-08"          | "2007-01-11"          | "Edinburgh,
>> UK"                                                          | "pick up
>> a lifetime\n      achievement award from the Web Design Conference" |
>> "Web
>> Conference"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> 
>> | "Web Design
>> Conference"@en                                                   |
>> | "2007-01-08"^^xs:date | "2007-01-11"^^xs:date | "Edinburgh,
>> UK"@en                                                       | "Web
>> Design Conference"@en 
>> | "pick up a lifetime\n      achievement award from the Web Design
>> Conference" | "Web
>> Conference"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> |
>> | "2007-01-08"^^xs:date | "2007-01-11"^^xs:date | "Edinburgh,
>> UK"@en                                                       | "Web
>> Design Conference"@en 
>> | "Web
>> Conference"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> 
>> | "pick up a lifetime\n      achievement award from the Web Design
>> Conference" |
>> | "2007-01-08"^^xs:date | "2007-01-11"^^xs:date | "Edinburgh,
>> UK"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> | "Web
>> Conference"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> 
>> | "pick up a lifetime\n      achievement award from the Web Design
>> Conference" | "Web Design
>> Conference"@en                                                   |
>> | "2007-01-08"^^xs:date | "2007-01-11"^^xs:date | "Edinburgh,
>> UK"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> | "Web
>> Conference"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> 
>> | "Web Design Conference"@en                                | "pick up a
>> lifetime\n      achievement award from the Web Design Conference" |
>>
>>     
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>   
>> It would be better for the results just to be one row, not six, as users
>> may run this at home and get confused, as in:
>>
>> | "2007-01-08"^^xs:date | "2007-01-11"^^xs:date | "Edinburgh,
>> UK"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> | "Web
>> Conference"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> 
>> | "Web Design Conference"@en                                | "pick up a
>> lifetime\n      achievement award from the Web Design Conference" |
>>
>> -- 
>>       -harry
>>
>> Harry Halpin,  University of Edinburgh 
>> http://www.ibiblio.org/hhalpin 6B522426
>>
>>     
>
>   


-- 
		-harry

Harry Halpin,  University of Edinburgh 
http://www.ibiblio.org/hhalpin 6B522426

Received on Sunday, 24 June 2007 20:13:51 UTC