W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > April to June 2004

RE: Building a bridge from RDF to the web?

From: Howard Katz <howardk@fatdog.com>
Date: Tue, 25 May 2004 06:31:18 -0700
To: "Seaborne, Andy" <andy.seaborne@hp.com>, "Thompson, Bryan B." <BRYAN.B.THOMPSON@saic.com>, <public-rdf-dawg@w3.org>
Message-ID: <IKEOLCDFPBBPPAHGNKKOEELKELAA.howardk@fatdog.com>

Andy,

Just to respond to one little snippet of your reply to Bryan (see below):

> From Jonathan Robie's talk:
> http://www.w3.org/2004/Talks/tp-robie/slide4-0.html
>
> declare namespace rdf = "rdf.tagsalad.org";
>
> for $artist in rdf:instance-of-class(rdf:predicate-domain("c:creates"))
> let $artifact := rdf:join-on-property($artist, "c:creates"),
>     $museum := rdf:join-on-property($artifact, "c:exhibited")
> return
>     <result>
>        <artist>{ $artist }</artist>
>        <artifact>{ $artifact }</artifact>
>        <museum>{ $museum }</museum>
>     </result>
>
> ---------------------
>
> Can one write in Xquery:
>    $var1 $var2 := someQueryFunction("graph pattern")
> If so, then this would be a more compact form.

You can't do that in XQuery. Function results, and in general the results of
evaluating any expression in the language, are bound to a single variable
only. However, since all results are sequences, a variable can be (and
generally is) bound to two or more different items at the same time. I don't
know if that amounts to the same thing from your perspective or not.

Howard

> Bryan - is this what you had in mind?
>
> 	Andy

      [snip ... ]

> >
> > [1] http://www.w3.org/2004/Talks/tp-robie/
> > [2] http://rdfweb.org/people/damian/treehugger/
> > [3] http://www.openrdf.org/doc/users/ch05.html#d0e1101
>
Received on Tuesday, 25 May 2004 09:31:05 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:19 GMT