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

Nice work on the new spec :)

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"
]]

(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?

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

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

cheers,

Dan

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