On May 21, 2011, at 8:05 AM, Li, Naicong wrote:

> So, is there a simple away to say to delete the triples of the same pattern 
> (?a ?b ?c) in ALL the imported graphs?

In SPARQL 1.1 this can be expressed by iterating over all graphs in the imports 
closure:

DELETE {
        GRAPH ?g {
                ?a ?b ?c
        }
}
WHERE {
        ?graph a owl:Ontology .
        ?graph owl:imports* ?g .
        FILTER (?g != <http://www.w3.org/2002/07/owl>)
        ?a ?b ?c .
}

Regards,
Holger

-- 
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
topbraid-users@googlegroups.com
To unsubscribe from this group, send email to
topbraid-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Reply via email to