3 Replies Latest reply on Jan 21, 2015 4:56 PM by alwu-Oracle

    Bind variables in jena WLS SPARQL Queries

    M.E.R. van Boxel-Oracle

      Dear all,

       

      We have read about the possibilities of the jena support for bind variables in the documentation (http://docs.oracle.com/cd/E11882_01/appdev.112/e25609/sem_jena.htm#RDFRM248). In the following topic of jun 14 2014 (Bind Variables in SPARQL Queries) the problem was already addressed. However we are facing some other problems.

       

      We are using:

      * WLS 12.1.3.0.0

      * jena adapter 2.11.1.

      * Joseki 3.4.4.

      * ARQ 2.9.2.

       

      We try to run the following query on the joseki end-point.

       

      PREFIX foaf: <http://xmlns.com/foaf/0.1/>

      PREFIX vcard: <http://www.w3.org/2001/vcard-rdf/3.0#>

      PREFIX ORACLE_SEM_FS_NS: <http://oracle.com/semtech#no_fall_back,ALLOW_DUP=T,ODS=6,s2s>

      PREFIX ORACLE_SEM_HT_NS: <http://oracle.com/semtech#monitor>

      PREFIX ORACLE_SEM_UEAP_NS: <http://oracle.com/semtech#f$RDFVID%20in(?)>

      PREFIX ORACLE_SEM_UEPJ_NS: <http://oracle.com/semtech#f$RDFVID>

      PREFIX ORACLE_SEM_UEBV_NS: <http://oracle.com/semtech#1264839720472151591>

       

      SELECT ?f ?g

      WHERE

      { graph ?g { ?p vcard:N ?vn .

                    ?vn vcard:Family ?f .

                     ?p foaf:title "Sen." .}

      }

       

      The result we get back is however not using the bind variable. It returns the whole list without UEAP/UEPJ/UEBV.

       

      Is there something I missed in the documentation or do I need to set some variables for the use of bind variables?

       

      Kind regards,

      Max