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

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

From: Dan Brickley <danbri@w3.org>
Date: Thu, 17 Feb 2005 20:28:07 -0500
To: public-rdf-dawg-comments@w3.org
Message-ID: <20050218012807.GW29150@homer.w3.org>

Nice work on the new spec :)

http://www.w3.org/TR/2005/WD-rdf-sparql-query-20050217/ 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"

(editorial) Perhaps cross-references between that section and 3.1 i.e.
would help too?

Comparing those two examples, I am left wondering 
whether is in error by having:


...in the Query result table, rather than


...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...


Received on Friday, 18 February 2005 01:28:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:01:20 UTC