On 10/11/11 14:15, Nadav Hoze wrote:
Hi,
I want to update triples that I have in my model with datetime now.
Is it possible to define a script and run it with jena TDB
programmatically , or just write a delete and insert query statement
with datetime now.
Thanks,
*Nadav Hoze*
You could do something like:
PREFIX : <http://example/>
DELETE { ?x :p ?then }
INSERT { ?x :p ?now }
WHERE
{
BIND (now() AS ?now)
}
now() is a SPARQL 1.1 function that returns an xsd:dateTime for some
point in time for the execution.
Andy