Comments on STRING


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

@prefix foaf:       <> .

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

And the following query:

PREFIX foaf: <>
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 
Should we transform the literals to a normal form?

Best regards,
INRIA Rhône-Alpes

Received on Monday, 27 March 2006 10:31:53 UTC