W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > March 2006

Comments on STRING

From: <Faisal.Alkhateeb@inrialpes.fr>
Date: Mon, 27 Mar 2006 12:31:30 +0200
Message-ID: <1143455490.4427bf02eef90@listes-serv.inrialpes.fr>
To: public-rdf-dawg-comments@w3.org

Hello,

  Regadring the string in sparql, if we have the following DATA:

DATA:
@prefix foaf:       <http://xmlns.com/foaf/0.1/> .

_:a  foaf:name       "Robert"@EN.
_:a  foaf:name       "Roberto"@ES.
_:a  foaf:mbox       <mailto:bob@work.example> .

And the following query:

PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?name ?mbox
 WHERE { ?x foaf:name  ?name ;
            foaf:mbox  ?mbox .
         FILTER ( lang(?name) = "es" ) }

I think that this query fails to match "es" in the FILTER. 

And what about if we have 'ES' or '''ES''',  does the query match the DATA or 
not?
Should we transform the literals to a normal form?


Best regards,
Faisal
INRIA Rhône-Alpes
 
Received on Monday, 27 March 2006 10:31:53 GMT

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