Well I broke something and I don’t understand how.

 

I have this updateQuery where I take in 3 args and pull in an rdf.  I have 
tested the update via a get request from a browser and the script returns a 
confirmation that it ran correctly.  I even held it once in dubug to verify 
it was querying correctly (which it did).  However, the script never 
updates the rdf.

 

Here is my setup:

I have 4 owl files in my workspace. Common.owl – which holds common 
classes. Project_Classes.owl – which imports Common.owl and defines classes 
that are unique to this project. Project_Instances.owl – which imports 
Project_Classes.owl (and thus Common.owl) and holds only instances of 
classes. Then finally my sms.owl which imports the Project_Instances.owl 
and is where I define my scripts.
  
Prefix
 
Namespace Uri
 
cmn
 
http://woo2theha.org/common#
 
sms
 
http://woo2theha.org/sms#
 
pc
 
http://woo2theha.org/project_classes#
 
pi
 
http://woo2theha.org/project_instances#

 

 

So in the script (pictured below) my ImportRDFFromWorkspace points to my 
sms.owl

 

The args look like arg1=cmn:hasLocation, arg2=pi:Doughnuts_Operation, 
arg3=pi:GarderDr

 

The query looks like:

 

WITH <http://woo2theha.org/project_instances>

DELETE  {

    ?subject ?property ?object .

}

INSERT  {

    ?subject ?property ?newValue .

}

WHERE {

    ?subject ?property ?object .

    BIND (spif:buildURI(?arg1) AS ?property) .

    BIND (spif:buildURI(?arg2) AS ?subject) .

    BIND (spif:buildURI(?arg3) AS ?newValue) .

}

 

<https://lh4.googleusercontent.com/-GLFjJrBcyAs/UHxDiF2XIyI/AAAAAAAABRQ/wCmZ0qv1mgQ/s1600/Query+Graph.png>
 
If anyone has any ideas of what I may be doing wrong, or just where to look 
in TB for the next clue as why this script will run correctly but doesn't 
change the rdf that would be great.
Thanks

Jim 

-- 
-- 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


Reply via email to