9 Replies Latest reply on Mar 31, 2008 4:58 PM by alwu-Oracle

    SPARQL query through Jena adaptor not work when string literals used

    630782
      Hi,

      When I executed the following SPARQL query through Oracle Jena adaptor:
      SELECT ?personHasFirstName WHERE
      {?personHasFirstName foaf:firstName ?name . }
      I got the expected results.

      However it won't return anything when I narrowed the query to match a particular name like below:
      SELECT ?personHasFirstName WHERE
      {?personHasFirstName foaf:firstName \"Julie\" . }

      I also tried the Filter approach:
      SELECT ?personHasFirstName WHERE {?personHasFirstName foaf:firstName ?name . FILTER (?name =\"Julie\") }
      It still doesn't return any results.

      I saw from the release notes about the bug dealing with "\". My guess is that the above behavior is caused by that bug. What is the suggested way to walk-around this? Thanks,

      Weihua