|
Jan, the WHERE clause of all SPARQL queries is
applied to the current data graph. CONSTRUCT, INSERT, DELETE,
etc. are applied to the results of the WHERE clause. Therefore
the WHERE clause cannot recursively consider any INSERTs/DELETEs
to the data. To query the result of inserting some data, you will need to apply two queries: the insert, then the query. So it will be something like the following (I wasn't really able to understand the intent of your query): INSERT { #using GRAPH to explicitly state where the data is inserted in highly recommended _:0 a :GO . _:0 :represents ?who . } WHERE { ?who :knows ?whom . } ...then you can query the resulting graph: SELECT ?who ?whom WHERE { ?who :knows ?whom . NOT EXISTS { ?someGO :represents ?who . } . } ...which is a strange query because it cannot match anything after the INSERT. --
Scott Henninger Sr, Product & Support Engineer, TopQuadrant, Inc., tel: 402-429-3751 / fax: 703 991-8192 / main: 703 299-9330 Training: Semantic Technology Training and Intro to TopBraid - Sept. 12-15, 2011, Washington, DC TopBraid Advanced Products Training - Sept. 26-29, 2011, Washington, DC TQ Blog: Voyages of the Semantic Enterprise On 9/3/11 8:28 AM, Jan Polowinski wrote: --I'm trying to construct a graph depending on a) an existing graph + b) the already created part of the new graph. 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 |
- [topbraid-users] Understanding SPARQL INSERT Jan Polowinski
- Re: [topbraid-users] Understanding SPARQL INSERT Scott Henninger
- Re: [topbraid-users] Understanding SPARQL INSERT Jan Polowinski
- Re: [topbraid-users] Understanding SPARQL IN... Scott Henninger
- Re: [topbraid-users] Understanding SPARQL INSERT Holger Knublauch
