This query runs fine:

 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
 PREFIX dataone: <http://dataone.org#>
 SELECT DISTINCT ?dataset ?label WHERE { GRAPH <http://keywords-with-dois> {
{ ?substancesSubclass rdfs:subClassOf
<http://dataone.org/mappings/#373873005> option(transitive)   . }
 ?dataset dataone:hasKeyword ?substancesSubclass .
?indexedTerm dataone:fromDOI ?dataset . ?dataset dataone:hasTitle
?label .} } LIMIT 10 OFFSET 0

while this  next query gives me the error "Virtuoso 37000 Error SP031:
SPARQL compiler: Internal error: sparp_gp_deprecate(): equiv replaces
filter but under deprecation"

 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
 PREFIX dataone: <http://dataone.org#>
 SELECT DISTINCT ?dataset ?label WHERE { GRAPH <http://keywords-with-dois> {
 { ?substancesSubclass rdfs:subClassOf
<http://dataone.org/mappings/#373873005> option(transitive)   . }
UNION { ?substancesSubclass rdfs:subClassOf
<http://dataone.org/mappings/#320072000> option(transitive)   . }
 ?dataset dataone:hasKeyword ?substancesSubclass .
?indexedTerm dataone:fromDOI ?dataset . ?dataset dataone:hasTitle
?label .} } LIMIT 10 OFFSET 0

http://dataone.org/mappings/#373873005 and
http://dataone.org/mappings/#320072000 happen to be in the subclass
relationship but I have the same result when the classes in the union
argument clauses are not.
The query clearly does not include a filter..

--
Patrice Seyed
Postdoctoral Fellow, DataONE, University of New Mexico &
Tetherless World Constellation, Rensselaer Polytechnic Institute
http://www.dataone.org/working_groups/data-integration-and-semantics
http://tw.rpi.edu/web/person/PatriceSeyed
Blog: http://apseyed.wordpress.com/

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to