Whew!.   Well as it turns out there were a few things I needed to do to get 
this working.

1)      As suggested I created subproperties of the sp:arg  -  subj, prop, 
& toValue

2)      As suggested I pointed the ImportFromLocal to the 
project_instaces.owl

 

To test I used a url of 

http://localhost:8083/tbl/actions?action=sparqlmotion&id=UpdateInstance&prop=cmn:hasLocation&subj=pi:Doughnuts&toValue=pi:GardenDr

 

What I found in the debug step was that the prefix of pi: was unknown to 
the RDF.  I never defined a prefix for the namespace of the RDF I was 
working on (I had only defined the namespace), so the default prefix is 
assumed.  So if the instance was defined in the project_instance.owl my url 
args could leave off the prefix 
like:&prop=cmn:hasLocation&subj=Doughnuts&toValue=GardenDr

 

But that’s not what I really wanted because I expected more owl instance 
files in the future.

3)      So I added a prefix of ‘pi’ for the *
http://woo2theha.org/project_instances#*<http://woo2theha.org/project_instances#>in
 the project_instances.owl

 

That finally got things working.

 

Here is the new query:

 

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

DELETE  {

    ?subject ?property ?object .

}

INSERT  {

    ?subject ?property ?newValue .

}

WHERE {

    ?subject ?property ?object .

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

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

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

}

 

Scott, Thanks again for the help.
 
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