Problem running query for SparqlSource{http://localhost:9999/blazegraph/sparql; unauthenticated}: Bad Request SPARQL-QUERY: queryStr=CONSTRUCT { } WHERE { { VALUES ?item { } } } java.util.concurrent.ExecutionException: org.openrdf.query.MalformedQueryException: CONSTRUCT WHERE only permits statement patterns in the WHERE clause.
I'll see if I can replicate the problem using Fuseki.
The local data in the blazegraph does have some rdf:type
statements
in it, yes?
On 2 May 2017 at 15:19, Mikel Egaña Aranguren
--
Chris "allusive" Dollin
--
You received this message because you are subscribed to the Google Groups "linked-data-api-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linked-data-api-discuss+unsub...@googlegroups.com.
Hi Mikel
Are the subjects ?s blank nodes or named
resources?
(Elda rejects blank nodes as items in the query,
that is, the bindings of ?item, because you can't
then request properties of those same blank nodes.)
Chris
[Do you have exposable data that I can try here? A
minimal dataset that shows the problem?]
On 3 May 2017 at 09:30, Mikel Egaña Aranguren
<mikel.egana.aranguren@gmail.com> wrote:
> thanks;
>
> yes, the local data includes rdf:type predicates. The following query:
>
> SELECT *
> WHERE {
> ?s rdf:type ?o
> }
>
> Works fine at the blazegraph SPARQL endpoint
>
> regards
>
> 2017-05-02 16:48 GMT+02:00 'chris dollin' via linked-data-api-discuss
>>
>> I'll see if I can replicate the problem using Fuseki.
>> The local data in the blazegraph does have some rdf:type
>> statements
>> in it, yes?
>>
>>
>> On 2 May 2017 at 15:19, Mikel Egaña Aranguren
>> > email to linked-data-api-discuss+unsub...@googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>> Chris "allusive" Dollin
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "linked-data-api-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to linked-data-api-discuss+unsub...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
> Mikel Egaña Aranguren, Ph.D.
>
> https://mikel-egana-aranguren.github.io
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "linked-data-api-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> For more options, visit https://groups.google.com/d/optout.
--
Chris "allusive" Dollin
--
You received this message because you are subscribed to the Google Groups "linked-data-api-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linked-data-api-discuss+unsub...@googlegroups.com.
Thanks for the data.
Could you run the query below against your data? This is the
SELECT query that /anything generates.
SELECT ?item
WHERE
{ ?item <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?v1
FILTER ( ! isBlank(?item) )
}
OFFSET 0
LIMIT 10
(This is to help establish where the empty query is coming
from when we don't expect it. But in any case, Elda will
generate empty queries when there are no items -- eg when
the offset gets pushed outside the result set size -- and as far
as I (and the SPARQL validator) can see the empty queries
are legal.)
Chris
On 3 May 2017 at 11:00, Mikel Egaña Aranguren
<mikel.egana.aranguren@gmail.com> wrote:
>
>
> 2017-05-03 11:51 GMT+02:00 'chris dollin' via linked-data-api-discuss
>>
>> Hi Mikel
>>
>> Are the subjects ?s blank nodes or named
>> resources?
>
>
> Hi;
>
> the subjects are resources named by URIs, there are no blank nodes.
>
>>
>>
>> (Elda rejects blank nodes as items in the query,
>> that is, the bindings of ?item, because you can't
>> then request properties of those same blank nodes.)
>>
>> Chris
>>
>> [Do you have exposable data that I can try here? A
>> minimal dataset that shows the problem?]
>
>
> This is the actual complete dataset (in blazegraph I store it in the default
> graph):
>
> https://raw.githubusercontent.com/opendata-euskadi/LOD-datasets/URIs-con-ID-envezde-RECURSO/calidad-aire-en-euskadi-2017/rdf/statements.nq
>
> In fact I have just realised that the rdf:type triples are the first ones on
> the file.
>
> Thanks
>
> Regards
>
>
>
>>
>>
>>
>>
>> On 3 May 2017 at 09:30, Mikel Egaña Aranguren
>> <mikel.egana.aranguren@gmail.com> wrote:
>> > thanks;
>> >
>> > yes, the local data includes rdf:type predicates. The following query:
>> >
>> > SELECT *
>> > WHERE {
>> > ?s rdf:type ?o
>> > }
>> >
>> > Works fine at the blazegraph SPARQL endpoint
>> >
>> > regards
>> >
>> > 2017-05-02 16:48 GMT+02:00 'chris dollin' via linked-data-api-discuss
>> >>
>> >> I'll see if I can replicate the problem using Fuseki.
>> >> The local data in the blazegraph does have some rdf:type
>> >> statements
>> >> in it, yes?
>> >>
>> >>
>> >> On 2 May 2017 at 15:19, Mikel Egaña Aranguren
>> >> > email to linked-data-api-discuss+unsub...@googlegroups.com.
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >>
>> >>
>> >>
>> >> --
>> >> Chris "allusive" Dollin
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups
>> >> "linked-data-api-discuss" group.
>> >> To unsubscribe from this group and stop receiving emails from it, send
>> >> an
>> >> email to linked-data-api-discuss+unsub...@googlegroups.com.
>> >> For more options, visit https://groups.google.com/d/optout.
>> >
>> >
>> >
>> >
>> > --
>> > Mikel Egaña Aranguren, Ph.D.
>> >
>> > https://mikel-egana-aranguren.github.io
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "linked-data-api-discuss" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to linked-data-api-discuss+unsub...@googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>> Chris "allusive" Dollin
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "linked-data-api-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to linked-data-api-discuss+unsub...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
> Mikel Egaña Aranguren, Ph.D.
>
> https://mikel-egana-aranguren.github.io
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "linked-data-api-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> For more options, visit https://groups.google.com/d/optout.
--
Chris "allusive" Dollin
--
You received this message because you are subscribed to the Google Groups "linked-data-api-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linked-data-api-discuss+unsub...@googlegroups.com.
I assume that was against the default graph, yes?
I wonder where the "no results" is coming from.
Chris
On 3 May 2017 at 12:54, Mikel Egaña Aranguren
<mikel.egana.aranguren@gmail.com> wrote:
>
>
> 2017-05-03 13:10 GMT+02:00 'chris dollin' via linked-data-api-discuss
>> <mikel.egana.aranguren@gmail.com> wrote:
>> >
>> >
>> > 2017-05-03 11:51 GMT+02:00 'chris dollin' via linked-data-api-discuss
>> >>
>> >> Hi Mikel
>> >>
>> >> Are the subjects ?s blank nodes or named
>> >> resources?
>> >
>> >
>> > Hi;
>> >
>> > the subjects are resources named by URIs, there are no blank nodes.
>> >
>> >>
>> >>
>> >> (Elda rejects blank nodes as items in the query,
>> >> that is, the bindings of ?item, because you can't
>> >> then request properties of those same blank nodes.)
>> >>
>> >> Chris
>> >>
>> >> [Do you have exposable data that I can try here? A
>> >> minimal dataset that shows the problem?]
>> >
>> >
>> > This is the actual complete dataset (in blazegraph I store it in the
>> > default
>> > graph):
>> >
>> >
>> > https://raw.githubusercontent.com/opendata-euskadi/LOD-datasets/URIs-con-ID-envezde-RECURSO/calidad-aire-en-euskadi-2017/rdf/statements.nq
>> >
>> > In fact I have just realised that the rdf:type triples are the first
>> > ones on
>> > the file.
>> >
>> > Thanks
>> >
>> > Regards
>> >
>> >
>> >
>> >>
>> >>
>> >>
>> >>
>> >> On 3 May 2017 at 09:30, Mikel Egaña Aranguren
>> >> <mikel.egana.aranguren@gmail.com> wrote:
>> >> > thanks;
>> >> >
>> >> > yes, the local data includes rdf:type predicates. The following
>> >> > query:
>> >> >
>> >> > SELECT *
>> >> > WHERE {
>> >> > ?s rdf:type ?o
>> >> > }
>> >> >
>> >> > Works fine at the blazegraph SPARQL endpoint
>> >> >
>> >> > regards
>> >> >
>> >> > 2017-05-02 16:48 GMT+02:00 'chris dollin' via linked-data-api-discuss
>> >> > <linked-data-api-discuss@googlegroups.com>:
>> >> >>
>> >> >> I'll see if I can replicate the problem using Fuseki.
>> >> >> The local data in the blazegraph does have some rdf:type
>> >> >> statements
>> >> >> in it, yes?
>> >> >>
>> >> >>
>> >> >> On 2 May 2017 at 15:19, Mikel Egaña Aranguren
>> >> >> > email to linked-data-api-discuss+unsub...@googlegroups.com.
>> >> >> > For more options, visit https://groups.google.com/d/optout.
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Chris "allusive" Dollin
>> >> >>
>> >> >> --
>> >> >> You received this message because you are subscribed to the Google
>> >> >> Groups
>> >> >> "linked-data-api-discuss" group.
>> >> >> To unsubscribe from this group and stop receiving emails from it,
>> >> >> send
>> >> >> an
>> >> >> email to linked-data-api-discuss+unsub...@googlegroups.com.
>> >> >> For more options, visit https://groups.google.com/d/optout.
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Mikel Egaña Aranguren, Ph.D.
>> >> >
>> >> > https://mikel-egana-aranguren.github.io
>> >> >
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups
>> >> > "linked-data-api-discuss" group.
>> >> > To unsubscribe from this group and stop receiving emails from it,
>> >> > send
>> >> > an
>> >> > email to linked-data-api-discuss+unsub...@googlegroups.com.
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >>
>> >>
>> >>
>> >> --
>> >> Chris "allusive" Dollin
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups
>> >> "linked-data-api-discuss" group.
>> >> To unsubscribe from this group and stop receiving emails from it, send
>> >> an
>> >> email to linked-data-api-discuss+unsub...@googlegroups.com.
>> >> For more options, visit https://groups.google.com/d/optout.
>> >
>> >
>> >
>> >
>> > --
>> > Mikel Egaña Aranguren, Ph.D.
>> >
>> > https://mikel-egana-aranguren.github.io
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "linked-data-api-discuss" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to linked-data-api-discuss+unsub...@googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>> Chris "allusive" Dollin
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "linked-data-api-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to linked-data-api-discuss+unsub...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
> Mikel Egaña Aranguren, Ph.D.
>
> https://mikel-egana-aranguren.github.io
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "linked-data-api-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> For more options, visit https://groups.google.com/d/optout.
--
Chris "allusive" Dollin
--
You received this message because you are subscribed to the Google Groups "linked-data-api-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linked-data-api-discuss+unsub...@googlegroups.com.
OK.
First, a red herring. The message Mikel reported
CONSTRUCT
{ }
WHERE
{ { VALUES ?item { } } }
is actually concealing the ?item values because they
are <URI>s and the browser (or mailer) is discarding
them as bad html.
Chris
On 3 May 2017 at 13:48, Mikel Egaña Aranguren
<mikel.egana.aranguren@gmail.com> wrote:
>
>
> 2017-05-03 14:27 GMT+02:00 'chris dollin' via linked-data-api-discuss
>>
>> I assume that was against the default graph, yes?
>
>
> Yes, against the default graph
>
> Thanks
>
>
>>
>>
>> I wonder where the "no results" is coming from.
>>
>> Chris
>>
>> On 3 May 2017 at 12:54, Mikel Egaña Aranguren
>> <mikel.egana.aranguren@gmail.com> wrote:
>> >
>> >
>> > 2017-05-03 13:10 GMT+02:00 'chris dollin' via linked-data-api-discuss
>> >> <mikel.egana.aranguren@gmail.com> wrote:
>> >> >
>> >> >
>> >> > 2017-05-03 11:51 GMT+02:00 'chris dollin' via linked-data-api-discuss
>> >> > <linked-data-api-discuss@googlegroups.com>:
>> >> >>
>> >> >> Hi Mikel
>> >> >>
>> >> >> Are the subjects ?s blank nodes or named
>> >> >> resources?
>> >> >
>> >> >
>> >> > Hi;
>> >> >
>> >> > the subjects are resources named by URIs, there are no blank nodes.
>> >> >
>> >> >>
>> >> >>
>> >> >> (Elda rejects blank nodes as items in the query,
>> >> >> that is, the bindings of ?item, because you can't
>> >> >> then request properties of those same blank nodes.)
>> >> >>
>> >> >> Chris
>> >> >>
>> >> >> [Do you have exposable data that I can try here? A
>> >> >> minimal dataset that shows the problem?]
>> >> >
>> >> >
>> >> > This is the actual complete dataset (in blazegraph I store it in the
>> >> > default
>> >> > graph):
>> >> >
>> >> >
>> >> >
>> >> > https://raw.githubusercontent.com/opendata-euskadi/LOD-datasets/URIs-con-ID-envezde-RECURSO/calidad-aire-en-euskadi-2017/rdf/statements.nq
>> >> >
>> >> > In fact I have just realised that the rdf:type triples are the first
>> >> > ones on
>> >> > the file.
>> >> >
>> >> > Thanks
>> >> >
>> >> > Regards
>> >> >
>> >> >
>> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> On 3 May 2017 at 09:30, Mikel Egaña Aranguren
>> >> >> <mikel.egana.aranguren@gmail.com> wrote:
>> >> >> > thanks;
>> >> >> >
>> >> >> > yes, the local data includes rdf:type predicates. The following
>> >> >> > query:
>> >> >> >
>> >> >> > SELECT *
>> >> >> > WHERE {
>> >> >> > ?s rdf:type ?o
>> >> >> > }
>> >> >> >
>> >> >> > Works fine at the blazegraph SPARQL endpoint
>> >> >> >
>> >> >> > regards
>> >> >> >
>> >> >> > 2017-05-02 16:48 GMT+02:00 'chris dollin' via
>> >> >> > linked-data-api-discuss
>> >> >> > <linked-data-api-discuss@googlegroups.com>:
>> >> >> >>
>> >> >> >> I'll see if I can replicate the problem using Fuseki.
>> >> >> >> The local data in the blazegraph does have some rdf:type
>> >> >> >> statements
>> >> >> >> in it, yes?
>> >> >> >>
>> >> >> >>
>> >> >> >> On 2 May 2017 at 15:19, Mikel Egaña Aranguren
>> >> >> >> > email to linked-data-api-discuss+unsub...@googlegroups.com.
>> >> >> >> > For more options, visit https://groups.google.com/d/optout.
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >> Chris "allusive" Dollin
>> >> >> >>
>> >> >> >> --
>> >> >> >> You received this message because you are subscribed to the
>> >> >> >> Groups
>> >> >> >> "linked-data-api-discuss" group.
>> >> >> >> To unsubscribe from this group and stop receiving emails from it,
>> >> >> >> send
>> >> >> >> an
>> >> >> >> email to linked-data-api-discuss+unsub...@googlegroups.com.
>> >> >> >> For more options, visit https://groups.google.com/d/optout.
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > Mikel Egaña Aranguren, Ph.D.
>> >> >> >
>> >> >> > https://mikel-egana-aranguren.github.io
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > You received this message because you are subscribed to the Google
>> >> >> > Groups
>> >> >> > "linked-data-api-discuss" group.
>> >> >> > To unsubscribe from this group and stop receiving emails from it,
>> >> >> > send
>> >> >> > an
>> >> >> > email to linked-data-api-discuss+unsub...@googlegroups.com.
>> >> >> > For more options, visit https://groups.google.com/d/optout.
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Chris "allusive" Dollin
>> >> >>
>> >> >> --
>> >> >> You received this message because you are subscribed to the Google
>> >> >> Groups
>> >> >> "linked-data-api-discuss" group.
>> >> >> To unsubscribe from this group and stop receiving emails from it,
>> >> >> send
>> >> >> an
>> >> >> email to linked-data-api-discuss+unsub...@googlegroups.com.
>> >> >> For more options, visit https://groups.google.com/d/optout.
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Mikel Egaña Aranguren, Ph.D.
>> >> >
>> >> > https://mikel-egana-aranguren.github.io
>> >> >
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups
>> >> > "linked-data-api-discuss" group.
>> >> > To unsubscribe from this group and stop receiving emails from it,
>> >> > send
>> >> > an
>> >> > email to linked-data-api-discuss+unsub...@googlegroups.com.
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >>
>> >>
>> >>
>> >> --
>> >> Chris "allusive" Dollin
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups
>> >> "linked-data-api-discuss" group.
>> >> To unsubscribe from this group and stop receiving emails from it, send
>> >> an
>> >> email to linked-data-api-discuss+unsub...@googlegroups.com.
>> >> For more options, visit https://groups.google.com/d/optout.
>> >
>> >
>> >
>> >
>> > --
>> > Mikel Egaña Aranguren, Ph.D.
>> >
>> > https://mikel-egana-aranguren.github.io
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "linked-data-api-discuss" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to linked-data-api-discuss+unsub...@googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>> Chris "allusive" Dollin
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "linked-data-api-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to linked-data-api-discuss+unsub...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
> Mikel Egaña Aranguren, Ph.D.
>
> https://mikel-egana-aranguren.github.io
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "linked-data-api-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> For more options, visit https://groups.google.com/d/optout.
--
Chris "allusive" Dollin
--
You received this message because you are subscribed to the Google Groups "linked-data-api-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linked-data-api-discuss+unsub...@googlegroups.com.
The form
CONSTRUCT { } WHERE { ... }
is not a CONSTRUCT-WHERE form; that looks like:
CONSTRUCT WHERE {}https://www.w3.org/TR/sparql11-query/#constructWhere
and then the patterns in {} are quite restricted as per the error message.