Hi,
I would like to replace an object with a new object via following query (I'm using EDG):
DELETE {
?s ?p ?o .
}
INSERT {
?s ?p ?newO .
}
#SELECT DISTINCT ?o ?
newO
WHERE {
?s ?p ?o .
FILTER(STRSTARTS(STR(?o), "urn:") && STRENDS(STR(?o), "_P_Q"))
BIND(REPLACE(STR(?o), "^(.*)ttt:(.*)_P_Q$", "$2") AS ?newOB)
BIND(IRI(CONCAT("urn::", ?
newOB , "_Q")) AS ?newO)
}
but i get the following error:
Failed to execute SPARQL request: org.apache.jena.graph.Node$NotLiteral: urn:_P_Q is not a literal node
Could you tell how I can correct it?
Thanks,
Kasia