Great, thanks!  By the way I tried to delete this using Triples View by loading 
up all the triples from all the graphs and then sorting the predicate.  After I 
had deleted all the triples with this predicate and I looked at the Triple's 
view again, I saw some more triples with this predicate (which I deleted).  I 
am very sure that I had deleted all the relevant predicates in the first round, 
based on the Sort results.  I don't understand why I was seeing some more 
afterwards...  Is it possible that TBC was not really loading all the triples 
in the first round?  I suppose I could have used filter-by to load only 
relevant triples in the Triples View.  Also, is it bad practice to do batch 
delete like in Triples View?

Thanks for your help.
Naicong

From: [email protected] [mailto:[email protected]] 
On Behalf Of Holger Knublauch
Sent: Sunday, May 22, 2011 3:21 PM
To: [email protected]
Subject: Re: [topbraid-users] Question about DELETE


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
[email protected]<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]<mailto:[email protected]>
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

-- 
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
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Reply via email to