Re: [Virtuoso-users] MODIFY statement doesn't work properly

2012-01-12 Thread Percy Enrique Rivera Salas
Hugh, By the way, I got the same error in VOS 6.1.4 Virtuoso 22023 Error SR007: Function sprintf needs a string or UNAME or NULL as argument 2, not an arg of type INTEGER (189) Best Regards, Percy 2012/1/12 Hugh Williams > Hi Percy, > > Note, Ivan does most of the work on the Virtuoso SPAR

Re: [Virtuoso-users] MODIFY statement doesn't work properly

2012-01-12 Thread Percy Enrique Rivera Salas
Hi Ivan, Hugh Worked just perfect =) Thank you for your reply Hugh: Yes I ran against an open source 6.1.3 but I plan to move to the new VOS release Best Regards, Percy 2012/1/12 Hugh Williams > Hi Percy, > > Note, Ivan does most of the work on the Virtuoso SPARQL engine so you > should foll

Re: [Virtuoso-users] MODIFY statement doesn't work properly

2012-01-12 Thread Hugh Williams
Hi Percy, Note, Ivan does most of the work on the Virtuoso SPARQL engine so you should follow his advise ... Although I would like to point out that even your last query runs successfully for me against an open source 6.1.4 or commercial 6.3 build, thus are you running against an open source 6

Re: [Virtuoso-users] MODIFY statement doesn't work properly

2012-01-12 Thread Ivan Mikhailov
Percy, Two additional notes. 1. The reported error is a result of an error in CONSTRUCT's error diagnostics, will fix that. 2. Note that the query selects everything from all graphs (and thus makes inserts), whereas you probably intended to select from only. To limit the selec

Re: [Virtuoso-users] MODIFY statement doesn't work properly

2012-01-12 Thread Ivan Mikhailov
Hello Percy, I'd write either MODIFY delete {?s ?p ?o} insert {?s_new ?p ?o} where { { SELECT iri(bif:replace( str(?s),"http://test.com/link","http://test.com/extra/link"; ) ) AS ?s_new ?s ?p ?o WHERE {?s ?p ?o filter (regex (str(?s), "http://test.com/link";)) } }

Re: [Virtuoso-users] MODIFY statement doesn't work properly

2012-01-12 Thread Percy Enrique Rivera Salas
Hi Hugh, I provided a wrong example =( the right one is the following Virtuoso 22023 Error SR007: Function sprintf needs a string or UNAME or NULL as argument 2, not an arg of type INTEGER (189) MODIFY delete {?s ?p ?o} insert {?s_new ?p ?o} where { { SELECT bif:replace(st

Re: [Virtuoso-users] MODIFY statement doesn't work properly

2012-01-11 Thread Hugh Williams
Hi Percy, In what way does it now work as the query itself runs on my machine but doesn’t modify anything as I don’t have such data, so are you getting and error or unexpected results are occurring ? Please provide some output of what you are seeing as not working ? Best Regards Hugh Williams

[Virtuoso-users] MODIFY statement doesn't work properly

2012-01-11 Thread Percy Enrique Rivera Salas
Dear All, The following MODIFY Statement doesn't work properly, I think is because the variable *?url* and *?new_url* is an IRI (not a Literal) MODIFY delete {?s ?p *?url*} insert {?s ?p *?new_url*} where { { SELECT ?s ?p bif:replace(str(?url),"http://test.com/link","; http