Jim; A couple of things to note here. The servlet infrastructure changes in 3.5 or so. sparqlmotion is now a direct servlet address, so your URI should use 'http://[host]:[port]/tbl/sparqlmotion' instead of 'http://[host]:[port]/tbl/actions?actions=sparqlmotion'. The actions servlet hasn't been removed, but the sparqlmotion servlet address is the preferred methid.
There is an example at http://www.topquadrant.com/products/SPARQLMotion_docs/SPARQLMotion_ex_dbpediaCapitals.html Generally speaking it's a good practice use full URIs instead of qnames in a Web service call. The only way the server knows the prefix definitions is to load the file and find the prefix definitions. If it's not defined, you get the sort of problems you experienced here. -- Scott On Oct 18, 9:48 am, Jim <[email protected]> wrote: > 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=UpdateInstan... > > 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
