Hi Oliver,
I have reported this issue to development to look into, will let you know when
there is a fix ...
Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc. // http://www.openlinksw.com/
Weblog -- http://www.openlinksw.com/blogs/
LinkedIn -- http://www.linkedin.com/company/openlink-software/
Twitter -- http://twitter.com/OpenLink
Google+ -- http://plus.google.com/100570109519069333827/
Facebook -- http://www.facebook.com/OpenLinkSoftware
Universal Data Access, Integration, and Management Technology Providers
On 17 May 2014, at 19:20, Olivier Rossel <olivier.ros...@gmail.com> wrote:
> Hello,
>
> I try this query on dbpedia.org:
>
> SELECT DISTINCT ?Label0 WHERE {
> <http://dbpedia.org/resource/Albert_Einstein_Medical_Center>
> <http://www.w3.org/2000/01/rdf-schema#label> ?Label0 .
> <http://dbpedia.org/resource/Albert_Einstein_Medical_Center>
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
> <http://dbpedia.org/ontology/Building>
> } LIMIT 50
>
> which works fine.
>
> I now try to generalize my query this way:
> SELECT DISTINCT ?Label0 WHERE {
> { {BIND (<http://dbpedia.org/resource/Albert_Einstein_Medical_Center> as
> ?Building)} }
> ?Building <http://www.w3.org/2000/01/rdf-schema#label> ?Label0 .
> ?Building <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
> <http://dbpedia.org/ontology/Building>
> } LIMIT 50
>
> but I get this error message:
> Virtuoso 37000 Error SP031: SPARQL compiler: The list of return values
> contains '*' but the pattern does not contain variables
>
> This message is cryptic for me.
> Could you please help me?
>
> PS: fyi, the final query I need to run is much smarter w.r.t BIND. Something
> like:
>
> SELECT DISTINCT * WHERE {
> {
> {BIND (<http://dbpedia.org/resource/Albert_Einstein_Medical_Center> as
> ?Building)}
> UNION
> {BIND (<http://dbpedia.org/resource/another_building> as ?Building)}
> UNION
> {BIND ("Empire State Building" as ?Label0)}
> }
> ?Building <http://www.w3.org/2000/01/rdf-schema#label> ?Label0 .
> ?Building <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
> <http://dbpedia.org/ontology/Building>
> } LIMIT 50
>
> Can anyone comment this usage of BIND? of the feasibility of such a query?
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs_______________________________________________
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users