W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > February 2005

Re: lang example in new spec: s/mbox/name/ ?

From: Eric Prud'hommeaux <eric@w3.org>
Date: Wed, 23 Feb 2005 11:04:19 -0500
To: Dan Brickley <danbri@w3.org>
Cc: public-rdf-dawg-comments@w3.org
Message-ID: <20050223160419.GB21895@w3.org>
All places where I claim to have "fixed" something refer to fixes in
the editor's draft [SED]

On Thu, Feb 17, 2005 at 08:28:07PM -0500, Dan Brickley wrote:
> 
> Nice work on the new spec :)

you're such a sweet-talker.

> http://www.w3.org/TR/2005/WD-rdf-sparql-query-20050217/
> 
> 11.2.1.7 sop:lang
> 
> Unless I misunderstand the example, I would have
> expected "lang(?name)" in the following example, 
> since ?name binds to the lang-tagged literal, whereas
> ?mbox binds to the non-Literal (and hence not
> lang-tagged) mailbox node.
> [[
> PREFIX foaf: <http://xmlns.com/foaf/0.1/>
> SELECT ?name1
>  WHERE ( ?x foaf:name  ?name )
>        ( ?x foaf:mbox  ?mbox )
>        AND lang(?mbox) EQ "ES"
> ]]

fixed.
[[
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?name ?mbox
 WHERE ( ?x foaf:name  ?name )
       ( ?x foaf:mbox  ?mbox )
       AND lang(?name) EQ "ES"
=>
	name	  	mbox
"Roberto"@ES 	<mailto:bob@work.example>
]]

> (editorial) Perhaps cross-references between that section and 3.1 i.e.
> http://www.w3.org/TR/2005/WD-rdf-sparql-query-20050217/#matchingRDFLiterals
> would help too?

haven't figured out where to work that in yet.
suggestions?

> Comparing those two examples, I am left wondering 
> whether 11.2.1.7 is in error by having:
> 
> 	"Roberto"
> 
> ...in the Query result table, rather than
> 
> 	"Roberto"@en

fixed

> ...since ?name is binding to the entire literal
> including lang tag, not just the 'payload' text.
> I'd also have expected "SELECT ?name, ?mbox"
> rather than "SELECT ?name1", thinking about it...

fixed


[SED] http://www.w3.org/2001/sw/DataAccess/rq23/
-- 
-eric

office: +81.466.49.1170 W3C, Keio Research Institute at SFC,
                        Shonan Fujisawa Campus, Keio University,
                        5322 Endo, Fujisawa, Kanagawa 252-8520
                        JAPAN
        +1.617.258.5741 NE43-344, MIT, Cambridge, MA 02144 USA
cell:   +81.90.6533.3882

(eric@w3.org)
Feel free to forward this message to any list for any purpose other than
email address distribution.

Received on Wednesday, 23 February 2005 16:41:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:47 GMT