1 Reply Latest reply on Oct 1, 2010 9:48 PM by 715399

    SPARQL - ?session variable

    801615
      I discovered that if I use ?session as a variable name in my SPARQL query through Jena Adapter then exception is thrown:

      Query:

      SELECT DISTINCT ?session WHERE
      {
      ?session rdf:type rf:RF_Session .
      }

      Exception:

      2010-10-01 10:09:27,654 INFO (jena.OracleSemQueryPlan) - Final clause = SELECT session$RDFVTYP, session FROM table(sdo_rdf_match('(?session <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://owl.sjm.com/rf#RF_Session>) ', sdo_rdf_models('VIRTUAL_MODEL','rdf_model_rf_abox','rdf_model_st_abox','rdf_model_rf_abox_inf'), null, null, null, NULL,' ALLOW_DUP=T USE_CID=T '))

      2010-10-01 10:09:27,670 ERROR (handler.QueryService) - java.sql.SQLException: ORA-00936: missing expression

      Is session some kind of internal keyword which messes up SEM_MATCH query? Is there any other such a keyword which should be avoided in SPARQL variables?

      Thanks,
      Best regards
      Jürgen

      PS! Just found out that *?comment* is another such variable

      Edited by: user8793616 on 2010-okt-01 02:11