Re: [Virtuoso-users] Sparql using delete insert problem

2013-05-28 Thread Vishesh Handa
On Wed, May 15, 2013 at 8:57 PM, Jerven Bolleman wrote: > Hi Vishesh, > > Wouldn't the following work? > > WITH > DELETE { nao:lastModified ?mod . } > INSERT { nao:lastModified "2012-01-29T16:29:11Z"^^xsd:dateTime . } > WHERE { OPTIONAL { nao:lastModified ?mod .} } > > The first example you po

Re: [Virtuoso-users] Sparql using delete insert problem

2013-05-15 Thread Jerven Bolleman
Hi Vishesh, Wouldn't the following work? WITH DELETE { nao:lastModified ?mod . } INSERT { nao:lastModified "2012-01-29T16:29:11Z"^^xsd:dateTime . } WHERE { OPTIONAL { nao:lastModified ?mod .} } The first example you posted would not match in the case where the nao:lastModified ?mod did not

Re: [Virtuoso-users] Sparql using delete insert problem

2013-05-15 Thread Vishesh Handa
Hey Ivan On Tue, May 14, 2013 at 8:44 PM, Ivan Mikhailov wrote: > Hello Vishesh, > > The query says: > > For every triple nao:lastModified ?mod found in database (if > any), > > prepare future removal of nao:lastModified ?mod > and > prepare insertion of nao:lastModified > "2012-01-29T16:29:11

Re: [Virtuoso-users] Sparql using delete insert problem

2013-05-14 Thread Ivan Mikhailov
Hello Vishesh, The query says: For every triple nao:lastModified ?mod found in database (if any), prepare future removal of nao:lastModified ?mod and prepare insertion of nao:lastModified "2012-01-29T16:29:11Z"^^xsd:dateTime . When all (if any) operations are prepared, perform the actual edi

[Virtuoso-users] Sparql using delete insert problem

2013-05-14 Thread Vishesh Handa
Hey guys I've been trying to update some statements in a graph, and I have been using the following query - WITH DELETE { nao:lastModified ?mod . } INSERT { nao:lastModified "2012-01-29T16:29:11Z"^^xsd:dateTime . } WHERE { nao:lastModified ?mod . } This works fine in the case when the nao:l