|
From: <tr...@do...> - 2014-08-29 13:58:14
|
<p>A new comment has been added to the following issue.</p>
<table border="0">
<tr>
<td width="90px" valign="top"><b>Title:</b></td>
<td>SparqlParser error on BIND keyword</td>
</tr>
<tr>
<td><b>Project:</b></td>
<td>Core Library (dotNetRDF.dll)</td>
</tr>
<tr>
<td><b>Created By:</b></td>
<td>Max</td>
</tr>
<tr>
<td><b>Date:</b></td>
<td>2014-08-29 02:57 PM</td>
</tr>
<tr>
<td><b>Comment:</b></td>
</tr>
<tr>
<td colspan="2"><p>
Actually the query is generated dynamically so not beautified. I believe this is an obscure case that passed trhough the net ;) The query is :</p>
<p>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#><br />
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#><br />
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#><br />
SELECT ?ct48 ?ct47 ?ct52 ?ct54 ?ct55 ?ct62 ?ct57 ?ct59 ?ct60 ?ct64 ?ct76 ?ct78 ?ct80 ?ct82 ?ct83 ?ct84 ?ct68 ?ct71 ?ct73 WHERE {<br />
BIND (EXISTS { ?this <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <urn:schema-test#PortalSite> . } as ?ct48) <br />
{ SELECT ?_rtVar28 ?_rtVar30 (struuid() as ?ct52) WHERE {<br />
?_rtVar28 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <urn:schema-test#Organization> .<br />
?_rtVar28 <http://www.w3.org/2000/01/rdf-schema#label> ?_rtVar30 .<br />
FILTER(NOT EXISTS { ?_rtVar28 <urn:schema-test#deletedOn> ?_rtVar31 . })<br />
} ORDER BY ASC(STR(?_rtVar30)) LIMIT 10 }<br />
BIND (1 as ?ct47)<br />
BIND (1 as ?ct54)<br />
BIND (?_rtVar30 as ?ct55)<br />
BIND (1 as ?ct62) <br />
OPTIONAL {<br />
{ SELECT ?_rtVar28 ?_rtVar29 (struuid() as ?ct57) WHERE { ?_rtVar28 <urn:schema-test#hasActivity> / <urn:schema-test#isPartOf>* / <http://www.w3.org/2000/01/rdf-schema#label> ?_rtVar29 . } }<br />
BIND (1 as ?ct59)<br />
BIND (?_rtVar29 as ?ct60) <br />
}<br />
OPTIONAL {<br />
{ SELECT ?_rtVar28 ?_rtVar24 ?_rtVar27 ?_rtVar26 ?_rtVar25 WHERE {<br />
?_rtVar24 <urn:schema-test#country> ?_rtVar25 .<br />
?_rtVar24 <urn:schema-test#postalCode> ?_rtVar27 .<br />
?_rtVar24 <urn:schema-test#locality> ?_rtVar26 .<br />
?_rtVar28 <urn:schema-test#address> ?_rtVar24 .<br />
} }<br />
BIND (1 as ?ct64)<br />
BIND (?_rtVar27 as ?ct76)<br />
BIND (?_rtVar26 as ?ct78)<br />
BIND (1 as ?ct80)<br />
BIND (?_rtVar25 as ?ct82)<br />
BIND (1 as ?ct83)<br />
BIND (1971 as ?ct84) <br />
OPTIONAL {<br />
{ SELECT ?_rtVar24 ?_rtVar23 (struuid() as ?ct68) WHERE { ?_rtVar24 <urn:schema-test#streetAddress> ?_rtVar23 . } }<br />
BIND (?_rtVar23 as ?ct71)<br />
BIND (1 as ?ct73) <br />
} <br />
} <br />
}</p>
<p>
The error occurs at line 17 of the query => BIND (1 as ?ct59)</p>
<p>
A debug shows that at line 3360 the "next" token is still BIND instead of (<br />
whereas every switch case around the Token.BIND case seem to dequeue before calling the corresponding TryParse method.<br />
</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=428" target="_blank">http://www.dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=428</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>
|