Hi Ivan,

thank you, the parantheses are indeed the solution to our problem.

The Virtuoso OpenSource version that produced the problem is 06.01.3126

We did not experience the problem with version 06.01.3127

Cheers
Martin

On 02.03.2011 11:07, Ivan Mikhailov wrote:
Hello Martin,

Expressions in SPARQL result list need parentheses, like

define sql:signal-void-variables 1 select ?s ?ld ?le (bif:length(?ld))
as ?l ...

The rationale for this syntax is that for some expressions it is
impossible to distinguish between one column with long expression or two
columns with shorter expressions, e.g.

select 5 - 3
can be readed as

select (5 - 3)
or
select (5) (- 3)

Best Regards,

Ivan Mikhailov
OpenLink Software
http://virtuoso.openlinksw.com


On Tue, 2011-03-01 at 15:26 +0100, Martin Gerlach wrote:
Hi,

On one of our Virtuoso OpenSource instances, I get the following
message

37000 Error SP030: SPARQL compiler, line 1: syntax error at 'bif:length' before 
'('

SPARQL query:
define sql:signal-void-variables 1 select ?s ?ld ?le bif:length(?ld) as ?l ...
...
The same thing happens with any standard sql: and bif: function.

It is a standard installation, no special or unusual settings.

Any ideas about what may be missing or misconfigured?

Cheers
Martin

--

______________________________________________________________________

Martin Gerlach
Senior Softwareentwickler
Research

Neofonie GmbH
Robert-Koch-Platz 4
10115 Berlin

T +49.30 24627 413
F +49.30 24627 120
[email protected]
http://www.neofonie.de

Handelsregister
Berlin-Charlottenburg: HRB 67460

Geschäftsführung
Thomas Kitlitschko
Dr. Mario Lenz


------------------------------------------------------------------------------
Free Software Download: Index, Search&  Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________ Virtuoso-users mailing list 
[email protected] 
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


--
------------------------------------------------------------------------

*Martin Gerlach*
Senior Softwareentwickler
Research

Neofonie GmbH
Robert-Koch-Platz 4
10115 Berlin

T +49.30 24627 *413*
F +49.30 24627 120
[email protected]
http://www.neofonie.de

Handelsregister
Berlin-Charlottenburg: HRB 67460

Geschäftsführung
Thomas Kitlitschko
Dr. Mario Lenz

Reply via email to