From: <tr...@do...> - 2013-06-14 07:14:20
|
<p>The following issue has been added to a project that you are monitoring.</p> <table border="0"> <tr> <td width="90px" valign="top"><b>Title:</b></td> <td>SparqlQuery with fulltext returns results with unbound variables that are normally bound without fulltext</td> </tr> <tr> <td><b>Project:</b></td> <td>Query.FullText (dotNetRDF.Query.FullText.dll)</td> </tr> <tr> <td><b>Created By:</b></td> <td>Max</td> </tr> <tr> <td><b>Milestone:</b></td> <td>Unassigned</td> </tr> <tr> <td><b>Category:</b></td> <td>Lucene</td> </tr> <tr> <td><b>Priority:</b></td> <td>Unassigned</td> </tr> <tr> <td><b>Type:</b></td> <td>Bug</td> </tr> <tr> <td><b>Description:</b></td> </tr> <tr> <td colspan="2"><p> Hi Rob,</p> <p> here is a sequel to my issue at <a href="http://stackoverflow.com/questions/16121518/sparql-issue-on-bind-clause">http://stackoverflow.com/questions/16121518/sparql-issue-on-bind-clause</a><br /> <br /> I added a Lucene search engine to my query and I experience weird query behaviour whenever I perform a fulltext search.<br /> <br /> Without search, this query returns the expected result with all bound variables:<br /> <br /> SELECT DISTINCT ?result ?isWebSite WHERE { ?<br /> result a my:Organization .<br /> BIND(IF (EXISTS { ?result a my:PersonalSite . } , true , false) AS ?isWebSite) .<br /> ?result rdfs:label ?label .<br /> } ORDER BY DESC(?isWebSite) ASC(?label)<br /> <br /> here is a result I get :<br /> ?result=urn:nodes#1690 , ?isWebSite=true^^http://www.w3.org/2001/XMLSchema#boolean<br /> <br /> If I add a search the query, the query is transformed as :<br /> <br /> SELECT DISTINCT ?result ?isWebSite WHERE {<br /> _:sparql-autos2 rdf:rest rdf:nil .<br /> _:sparql-autos1 rdf:rest _:sparql-autos2 .<br /> _:sparql-autos2 rdf:first ?score .<br /> _:sparql-autos1 search:textMatch _:sparql-autos3 .<br /> _:sparql-autos1 rdf:first ?result .<br /> BIND(IF (EXISTS { ?result a my:PersonalSite . } , true , false) AS ?isWebSite) .<br /> _:sparql-autos3 rdf:first "securite~" .<br /> _:sparql-autos3 rdf:rest rdf:nil .<br /> ?result a my:Organization .<br /> ?result rdfs:label ?label .<br /> } ORDER BY DESC(?isWebSite) DESC(?score) ASC(?label)<br /> </p> <p> the matches are performed correctly but the ?isWebSite variable is trimmed out as unboud from the SparqlResult : the result for the same node turns out as <br /> ?result=urn:nodes#1690</p> <p> Could you please take a look at this ?</p> <p> Thanks in advance,<br /> Max.</p></td> </tr> </table> <p> More information on this issue can be found at <a href="http://www.dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=364" target="_blank">http://www.dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=364</a></p> <p style="text-align:center;font-size:8pt;padding:5px;"> If you no longer wish to receive notifications, please visit <a href="http://www.dotnetrdf.org/tracker/Account/UserProfile.aspx" target="_blank">your profile</a> and change your notifications options. </p> |