On 1/11/11 2:35 PM, Hugh Williams wrote:
Hi Peter,

Can you provide a sample query or permalink from isqarql which gives this error please ?

The SAPRQL compiler error typically implies some form of SPARQL-FED query is being run for which sub queries are not supported.

Peter,

SPARQL-FED is currently part of the commercial edition that sits behind many of my PivotViewer demos. On the other hand, if you're executing from one of our endpoints, don't alias the SPARQL output variables (e.g. ?s as ?href ..) in the sub-query (basically the inner block targeted at the remote sparql endpoint).

Examples:

## Good
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX txn: <http://lod.taxonconcept.org/ontology/txn.owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dbpedia_owl: <http://dbpedia.org/ontology/>


select distinct ?s as ?href ?order ?sciname ?authority ?cname ?year ?o as ?image ?aligned
where { service <http://virtuoso.taxonconcept.org/sparql>
          {{

select distinct ?s ?order ?sciname ?authority ?cname ?year ?o ?aligned
                where {
                            ?s rdf:type txn:SpeciesConcept.
                          ?s txn:inDBpediaClade dbpedia_owl:Mammal.
                          ?s foaf:depiction  ?o.
                          ?s txn:hasScientificName ?sciname.
                          optional {?s umbel:isAligned ?aligned}.
                          optional {?s txn:inCoLOrder ?order}.
                          optional {?s txn:yearDescribed ?year}.
                          optional {?s txn:commonName ?cname}.
optional {?s txn:scientificNameAuthorship ?authority}.
                    }
                limit 1000

         }}
      }

##Bad

PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX txn: <http://lod.taxonconcept.org/ontology/txn.owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dbpedia_owl: <http://dbpedia.org/ontology/>


select distinct ?s as ?href ?order ?sciname ?authority ?cname ?year ?o as ?image ?aligned
where { service <http://virtuoso.taxonconcept.org/sparql>
          {{

select distinct ?s as ?href ?order ?sciname ?authority ?cname ?year ?o as ?image ?aligned ## note this line.
                where {
                            ?s rdf:type txn:SpeciesConcept.
                          ?s txn:inDBpediaClade dbpedia_owl:Mammal.
                          ?s foaf:depiction  ?o.
                          ?s txn:hasScientificName ?sciname.
                          optional {?s umbel:isAligned ?aligned}.
                          optional {?s txn:inCoLOrder ?order}.
                          optional {?s txn:yearDescribed ?year}.
                          optional {?s txn:commonName ?cname}.
optional {?s txn:scientificNameAuthorship ?authority}.
                    }
                limit 1000

         }}
      }



Kingsley

Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support
Twitter: http://twitter.com/OpenLink

On 11 Jan 2011, at 03:42, Peter DeVries wrote:

I am getting the following error when I try to run a SPARQL query on my endpoint that does work on other virtuoso endpoints.

The error message seems to imply that I have some setting turned off?

37000 Error SP031: SPARQL compiler: The support of subquery syntax is not enabled for the SERVICE http://lsd.taxonconcept.org/sparql (bit 0x100 is not set)


Is this something to change in the virtuoso.ini file or conductor, or is the result of not defining a subquery, or that I am using virtuoso-opensource.

Thanks!

-- Pete
---------------------------------------------------------------
Pete DeVries
Department of Entomology
University of Wisconsin - Madison
445 Russell Laboratories
1630 Linden Drive
Madison, WI 53706
TaxonConcept Knowledge Base <http://www.taxonconcept.org/> / GeoSpecies Knowledge Base <http://lod.geospecies.org/>
About the GeoSpecies Knowledge Base <http://about.geospecies.org/>
------------------------------------------------------------
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________
Virtuoso-users mailing list
[email protected] <mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl


_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


--

Regards,

Kingsley Idehen 
President&  CEO
OpenLink Software
Web: http://www.openlinksw.com
Weblog: http://www.openlinksw.com/blog/~kidehen
Twitter/Identi.ca: kidehen





Reply via email to