Re: Statements in queries?

On 6/14/05, Jeen Broekstra <jeen@aduna.biz> wrote:

Thanks Jeen.

> This kind of functionality is offered by the CONSTRUCT clause:
> 
> CONSTRUCT { ?group rdf:type my:Group ;
>                     my:label "dawg"  }
> WHERE { ?group rdf:type my:Group }
> 
> Basically CONSTRUCT allows you to specify a graph template for the
> result set in which you can introduce new properties and values if so
> required.

Yep, that's it.

> (personal note: it might be useful to include an example in the spec
>   to illustrate the use of CONSTRUCT a bit more).

That would help those of us with poor attention spans backed by short
memories  ;-)

Cheers,
Danny.


-- 

http://dannyayers.com

Received on Tuesday, 14 June 2005 11:02:18 UTC