[Mulgara-general] Blank nodes in CONSTRUCT query?

Paul Gearon gearon at ieee.org
Fri Aug 6 14:31:15 UTC 2010


OK, I've found the problem. I can't fix it today, but it should be
done over the weekend.

There are actually a couple of bugs with CONSTRUCT. A CONSTRUCT query
is basically a SELECT query that must have a multiple of 3 columns.
However, there are a couple of other restrictions (all around blank
nodes) that have to be treated separately, and they weren't.

Paul

On Tue, Aug 3, 2010 at 3:23 PM, Paul Gearon <gearon at ieee.org> wrote:
> This one slipped past me since I got it at about the same time I lost
> my job and was madly trying to find a new one.
>
> I'll check it out today. Ping me tomorrow morning if you haven't heard from me.
>
> Paul
>
> On Tue, Aug 3, 2010 at 1:12 PM, Ford, Kevin <kefo at loc.gov> wrote:
>> Harking back to this thread [1], I can confirm that using blank nodes in CONSTRUCT queries results in an error.  I don't know when the problem was introduced, but I've tried every Mulgara release back to and including 2.1.4.  All report the same error:
>>
>>
>> Error executing command. Reason: java.lang.IllegalArgumentException: Failed to constrain all variables: $*0 not constrained in WHERE or GIVEN clauses
>>        at org.mulgara.query.Query.<init>(Query.java:186)
>>        at org.mulgara.query.ConstructQuery.<init>(ConstructQuery.java:45)
>>        at org.mulgara.sparql.SparqlInterpreter.buildConstructQuery(SparqlInterpreter.java:296)
>>        ...
>>
>> RequestURI=/webui/ExecuteQuery.html
>>
>>
>> Cordially,
>> Kevin
>>
>> [1] http://lists.mulgara.org/pipermail/mulgara-general/2010-May/001108.html
>> _______________________________________________
>> Mulgara-general mailing list
>> Mulgara-general at mulgara.org
>> http://lists.mulgara.org/mailman/listinfo/mulgara-general
>>
>


More information about the Mulgara-general mailing list