|
From: Tomasz P. <tom...@gm...> - 2013-01-05 18:28:10
|
Ah, and indeed. When I changed my query to DELETE/INSERT the same
problem occured for the exact same reason.
This may be problematic. The Set#ContainsVariable() method is used 32
times throughout the library and the indexer is used 141 times so it
will be easy to break something. How well is this covered with tests?
Regards,
Tom
On Sat, Jan 5, 2013 at 6:51 PM, Tomasz Pluskiewicz
<tom...@gm...> wrote:
> Hi Rob
>
> I am having additional issues with running my update query.
>
> An equivalent select (without graph ?g {}) returns some data. However
> when I try to create new graphs nothing happens.
>
> I started debugging and discovered that when evaluating the insert
> command, all the results are skipped at InserCommand.cs.
>
> The problem is that VDS.RDF.Query.Algebra.Set holds variable names
> without the question mark and in the insert command they are prefixed.
>
> The quick fix is to add a Substring(1) call when looking for graph
> variablt in the set. Will similar change be required elsewhere in the
> code?
>
> Regards,
> Tom
>
> PS
> When I went into debugger I and enable breaking on exceptions thrown I
> seem to be getting a lot of Null pointer exceptions in
> MultiDictionary. This doesn't seem to be the cause as I had though
> initially but definitiely will have adverse effects on performance.
|