Hi,

I'm using Jena 11.2.1. My graph has a triple that looks like this:

{s=http://www.oracle.com/osn/osn.owl#User100, 
p=http://www.oracle.com/osn/osn.owl#name, 
o=Cindy^^http://www.w3.org/2001/XMLSchema#string}

I want to use DELETE DATA, and my update stanza looks like this:

PREFIX w: <http://www.foo.com/osn/osn.owl#> 
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
DELETE DATA { w:User100 w:name "Cindy" . }

That triple is not removed from the graph.   So that's the first problem.

The next problem is that when I insert data into the graph, the XSD type 
information is lost:
PREFIX w: <http://www.foo.com/osn/osn.owl#> 
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
INSERT DATA { w:User100 w:name "Charles" . }

{s=http://www.oracle.com/osn/osn.owl#User100, 
p=http://www.oracle.com/osn/osn.owl#name, o=Charles}

When trying something like this:

// Throws parse errors
DELETE DATA { w:User100 w:name Cindy^^http://www.w3.org/2001/XMLSchema#string . 
}

How can I get INSERT DATA and DELETE DATA to work with literals? 

Thanks -

-- Cindy 



Reply via email to