3 Replies Latest reply: Aug 10, 2011 1:05 PM by alwu-Oracle RSS

    WITH CLAUSE in SPARQL - Running SPARQL query using JENA

    880207
      Hi,

      Can anybody help me how to use WITH Clause in SPARQL. Below is my Query. I am using Jena 2.6.3 to Run my Query.

      "PREFIX assc: <http://www./.../> " +
      "WITH " +
           "( " +
                          " select ?associate" +
                          " where {?associate assc:belongsTo <http://www./../Relationship>} " +
                          " AS :associateList" +
           " )" +

                     " select ?client ?associate " +
                     " where { ?client assc:Sees ?associate . ?associate assc:belongsTo <http://www./../Relationship> ." +
                     " :associateList(?associate) }" ;

      Thanks and Regards,
      Manish Hardasmalani