<?xml version="1.0" encoding="UTF-8" ?>


<!--  RSS generated by JIRA #108 at Thu Jun 20 01:40:59 CEST 2013 -->

<rss version="0.92">






<channel>
    <title>openRDF.org Issue Tracker</title>
    <link>http://www.openrdf.org/issues</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>
    <item>
        







<title>[SES-800] Unimplemented/Unsupported method prepareQuery in org.openrdf.repository.http.HTTPRepositoryConnection</title>
<link>http://www.openrdf.org/issues/browse/SES-800</link>

    
        <description>Method prepareQuery in HTTPRepositoryConnection throws UnsupportedOperationException()&lt;br/&gt;
causes problem when connecting to a HTTPRepository, which itself is using a remote repository as store </description>
    
    
        <environment></environment>
    
        <key id="12370">SES-800</key>
        <summary>Unimplemented/Unsupported method prepareQuery in org.openrdf.repository.http.HTTPRepositoryConnection</summary>
        <type id="4">Improvement</type>
    
        <priority id="3">Major</priority>
    
        <status id="5">Resolved</status>
        
        <resolution id="1">Fixed</resolution>
        
    
        
        <assignee username="jeen">Jeen Broekstra</assignee>
        
    

    
        
        <reporter username="kpentchev">Konstantin Pentchev</reporter>
        
    

        
        <created>Wed, 20 Jul 2011 15:01:10 +0200 (CEST)</created>
    <updated>Wed, 24 Aug 2011 09:07:05 +0200 (CEST)</updated>

    
        
        
            
            
                
                    <version>2.4.2</version>
                
            
        
    

    
        
        
            
            
                
                    <fixVersion>2.5.0</fixVersion>
                
            
        
    

    
        
        
            
            
                
                    <component>HTTPRepository</component>
                
            
        
    

    
    
        <due></due>
    
    
        <votes>0</votes>
    
    

    
    
        <comments>
            
            <comment author="jeen" created="Wed, 20 Jul 2011 22:51:42 +0200 (CEST)" level="">This is actually not a new problem in Sesame 2.4, but has always been implemented (or rather, not implemented) this way. &lt;br/&gt;
&lt;br/&gt;
prepareQuery is listed as an optional operation in the API, and in the HTTPRepository it&apos;s not implemented for performance-reasons: supporting this method requires determining the query type on the client side, which implies a parsing step. Not only is that expensive, but HTTPRepository currently has no dependency on the SPARQL parser.&lt;br/&gt;
&lt;br/&gt;
I guess we might be able to implement this using a regular expression though. Need to have a think about it.&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
</comment>
            
            <comment author="jeen" created="Thu, 21 Jul 2011 00:36:33 +0200 (CEST)" level="">I have checked in an implementation for this method in HTTPRepositoryConnection, using regular expressions and some other string manipulation tricks, but I am not convinced it&apos;s foolproof (even though it passes a few unit tests I came up with), and it&apos;s probably not very efficient. I have updated the javadoc to stress that the preferred way of preparing queries is still to use the more specific prepareTuple/Boolean/GraphQuery methods. </comment>
            
            <comment author="jeen" created="Thu, 21 Jul 2011 00:37:59 +0200 (CEST)" level="">I would like some feedback from people on this fix before I mark it resolved.</comment>
            
        </comments>
    
    

        



        <customfields>
        
            
        </customfields>
    </item>
</channel>


</rss>  