Dear all,
To start off, I'm really not sure if this is the correct forum to pose 
my question, so I initially apologize
and I kindly ask to re-direct me to the proper forum, if anyone of you 
knows.

I have a problem with a SPARQL query I send over a remote client to the 
public SPARQL endpoint of DBpedia.
The query is the following:

select ?s1, ?s2 where { {
select ?s1, ?s2 where {
?s1 ?x ?o1 .
?o1 bif:contains ' ( "Pierre" AND "Marie" AND "Curie" AND "University" 
AND "UPMC" ) ' option ( score ?sc ) .
?s1 rdfs:label ?s2 .
?s1 rdf:type dbo:EducationalInstitution . }
order by desc ( ?sc * 3e-1 + sql:rnk_scale ( <LONG::IRI_RANK> ( ?s1 ) ) )
limit 100 } .
FILTER (lang(?s2) = "en") }
limit 2

If I type it in the query box of http:dbpedia.org/sparql, everything is 
fine.

However, when I construct the query and send it over a remote client 
like this:

http://dbpedia.org/sparql?query=select%20?s1,%20?s2%20where%20{%20{%20select%20?s1,%20?s2%20where%20{%20?s1%20?x%20?o1%20.%20?o1%20bif:contains%20%27%20(%20%22Pierre%22%20AND%20%22Marie%22%20AND%20%22Curie%22%20AND%20%22University%22%20AND%20%22UPMC%22%20)%27%20option%20(%20score%20?sc%20)%20.%20?s1%20rdfs:label%20?s2%20.%20?s1%20rdf:type%20dbo:EducationalInstitution%20.%20}%20order%20by%20desc%20(%20?sc%20*%203e-1%20%2B%20sql:rnk_scale%20(%20%3CLONG::IRI_RANK%3E%20(%20?s1%20)%20)%20)%20limit%20100%20}%20.%20FILTER%20(%20lang(?s2)%20%3D%20%22en%22)%20}%20limit%202&entailment=rdfs&timeout=2000

there is a problem; the following error page appears:
> Virtuoso 37000 Error SQ156: Internal Optimized compiler error : col is not 
> supposed to be virtual in sqldf.c:1496.
> Please report the statement compiled.
>
> SPARQL query:
> define sql:big-data-const 0 select ?s1, ?s2 where { { select ?s1, ?s2 where { 
> ?s1 ?x ?o1 . ?o1 bif:contains ' ( "Pierre" AND "Marie" AND "Curie" AND 
> "University" AND "UPMC" )' option ( score ?sc ) . ?s1 rdfs:label ?s2 . ?s1 
> rdf:type dbo:EducationalInstitution . } order by desc ( ?sc * 3e-1 + 
> sql:rnk_scale ( <LONG::IRI_RANK> ( ?s1 ) ) ) limit 100 } . FILTER ( lang(?s2) 
> = "en") } limit 2

The funny thing is that if let's say reduce the query by removing e.g. 
one of the keywords, then the query runs fine:

http://dbpedia.org/sparql?query=select%20?s1,%20?s2%20where%20{%20{%20select%20?s1,%20?s2%20where%20{%20?s1%20?x%20?o1%20.%20?o1%20bif:contains%20%27%20(%20%22Pierre%22%20AND%20%22Marie%22%20AND%20%22Curie%22%20AND%20%22University%22%20)%27%20option%20(%20score%20?sc%20)%20.%20?s1%20rdfs:label%20?s2%20.%20?s1%20rdf:type%20dbo:EducationalInstitution%20.%20}%20order%20by%20desc%20(%20?sc%20*%203e-1%20%2B%20sql:rnk_scale%20(%20%3CLONG::IRI_RANK%3E%20(%20?s1%20)%20)%20)%20limit%20100%20}%20.%20FILTER%20(%20lang(?s2)%20%3D%20%22en%22)%20}%20limit%202&entailment=rdfs&timeout=2000

Do you think there might be a problem with the length of the URL in 
Virtuoso?
Has anyone of you come up with such a problem before?

Thank you in advance.
Your help will be greatly appreciated.
Sorry again if this is not the correct forum to report this.

Best Regards,
Nick


-- 
***************************************************************
* Dr. Nick Bassiliades, Associate Professor                   *
* Dept. of Informatics, Aristotle University of Thessaloniki  *
* 54124 Thessaloniki, Greece                                  *
*                                                             *
* Tel: +302310997913   E-mail: nbass...@csd.auth.gr           *
* Fax: +302310997913   URL: http://tinyurl.com/bassiliades    *
* =========================================================== *
* Intelligent Systems Group - http://intelligence.csd.auth.gr *
***************************************************************


------------------------------------------------------------------------------
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to