Hi,

  What is the syntax for querying multiple named RDF graphs in Virtuoso.  I am 
trying to execute the following query but it does not return any results.  

select  ?name  ?class ?definition
from <http://purl.org/commons/hcls/20070416>
where
{   graph <http://purl.org/commons/hcls/20070416/classrelations>
        {?class rdfs:subClassOf go:GO_0008150}
?class rdfs:label ?name.
?class obo:hasDefinition ?def.
?def rdfs:label ?definition
filter(regex(?name,"[Dd]endrite"))
}
    

but if I use the query below I get the expected results,

select  ?name  ?class ?definition
 from <http://purl.org/commons/hcls/20070416>
 from <http://purl.org/commons/hcls/20070416/classrelations>
 where
 {   graph <http://purl.org/commons/hcls/20070416/classrelations>
         {?class rdfs:subClassOf go:GO_0008150}
 ?class rdfs:label ?name.
 ?class obo:hasDefinition ?def.
 ?def rdfs:label ?definition
 filter(regex(?name,"[Dd]endrite"))
 }
 


Is it necessary that the query should have multiple from clauses (one for each 
named graph that is used in the query.)

Kunal

       
---------------------------------
Never miss a thing.   Make Yahoo your homepage.

Reply via email to