I have seen lots of great examples of the INSERT and the DELETE sparql
syntax, but not so much on the MODIFY.
Specifically what I am looking todo is modify a text property I have added
to an instance. For example I created an instace of a class Person. One
of the properties on a Person would be has:LastName. I wanted to write an
updateQuery that would
1) Find the instance of the Person I wanted to change. I am thinking I
would pass the uri name to identify the correct instance.
2) Update the has:LastName property.
I have 2 separate scripts currently for Insert and Delete. They work well.
My insert script uses an RDF from a URL as its input and inserts the data
into my ta_Ontology. The Delete uses the rdf from workspace and a URI name
I pass into the script.
Without much thought I put the two together thinking I could Insert a
property into an existing instance and then delete the old property. However
the script I jammed together does nothing.
Does anyone have any advice on how to construct a Modify script?
DELETE {
GRAPH
<*http://org.woo2theha.tb/ta_Ontology*<http://org.woo2theha.tb/ta_Ontology>>
{
?s ?property ?object .
} .
}
INSERT {
GRAPH
<*http://org.woo2theha.tb/ta_Ontology*<http://org.woo2theha.tb/ta_Ontology>>
{
?s ?property ?object .
} .
}
WHERE {
BIND (spif:buildURI("ta_Ontology:{?arg1}") AS ?subject) .
?subject ?prop ?object .
}
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary
Network (EVN), TopBraid Composer, TopBraid Live,
TopBraid Ensemble, SPARQLMotion, SPARQL Web Pages 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