jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1360590 - /jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/Service.java
Date Thu, 12 Jul 2012 09:11:22 GMT
Author: andy
Date: Thu Jul 12 09:11:22 2012
New Revision: 1360590

URL: http://svn.apache.org/viewvc?rev=1360590&view=rev
Log:
Add comment about handling SERVICE from syntax (not).

Modified:
    jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/Service.java

Modified: jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/Service.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/Service.java?rev=1360590&r1=1360589&r2=1360590&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/Service.java (original)
+++ jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/Service.java Thu
Jul 12 09:11:22 2012
@@ -104,8 +104,27 @@ public class Service
 
         //Explain.explain("HTTP", opRemote, context) ;
         
-        Query query = OpAsQuery.asQuery(opRemote) ;
+        Query query ;
+        
+        // Comment (for the future?)
+//        if ( false )
+//        {
+//            // ***** Interacts with substitution.
+//            Element el = op.getServiceElement().getElement() ;
+//            if ( el instanceof ElementSubQuery )
+//                query = ((ElementSubQuery)el).getQuery() ;
+//            else
+//            {
+//                query = QueryFactory.create() ;
+//                query.setQueryPattern(el) ;
+//                query.setResultVars() ;
+//            }
+//        }
+//        else
+            query = OpAsQuery.asQuery(opRemote) ;
             
+        
+        
         Explain.explain("HTTP", query, context) ;
         String uri = op.getService().getURI() ;
         HttpQuery httpQuery = configureQuery(uri, context, query);



Mime
View raw message