Nathan wrote:
> Hi Guys,
>
> Quick bug report:
> 37000 Error SP031: SPARQL compiler: Internal error:
> sparp_find_triple_of_var_or_retval(): triple not found for strong match
>
> SPARQL query:
> define sql:signal-void-variables 1 define input:default-graph-uri
> <http://dbpedia.org> SELECT * WHERE
> {
> ?s ?p ?o . FILTER( lang(?o) = "en" ) . ?o bif:contains '"xmpp"'
> option(score ?attributeScore)
> OPTIONAL { ?s rdfs:label ?flabel }
> OPTIONAL { ?s <http://dbpedia.org/property/abstract> ?fabstract }
> }
>
> to replicate include option(score ?score) to any bif:contains query then
> add 2 or more OPTIONAL { } sections to the query, works fine with one.
>
> Many Regards,
>
> Nathan
>
workaround:
SELECT * WHERE
{
{ ?s ?p ?o . FILTER( lang(?o) = "en" ) . ?o bif:contains '"xmpp"'
option(score ?attributeScore) }
OPTIONAL { ?s rdfs:label ?flabel }
OPTIONAL { ?s <http://dbpedia.org/property/abstract> ?fabstract }
}
note the additional {} prior to optional statements
regards!