Thanks!! Error was solved , the problem was not in Sparql ;-) I have noticed that in http request symbol like + is escaped and We have to use an encodeURIComponent in javascript for not to quit plus symbol.
Sorry for that!! Best regards, -----Mensaje original----- De: Chris Dollin [mailto:chris.dol...@epimorphics.com] Enviado el: miƩrcoles, 22 de enero de 2014 11:08 Para: users@jena.apache.org Asunto: Re: Error in Sparql using an URI with '+' symbol On Wednesday, January 22, 2014 09:47:21 AM Iturraspe Barturen, Urtza wrote: > Good morning to everyone, > > I have a very simple SPARQL like this: > > PREFIX otn:<http://www.demanes.com/2013/> > PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> > PREFIX protege:<http://protege.stanford.edu/plugins/owl/protege#> > PREFIX > p1:<http://www.pms.ifi.uni-muenchen.de/OTN#Traditional_Woodland/> > PREFIX owl:<http://www.w3.org/2002/07/owl#> > PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> > PREFIX daml:<http://www.daml.org/2001/03/daml+oil#> > select ?z where {?x ?y ?z} > > Problem appear because daml Prefix has a '+' symbol and when I execute > this QueryFactory.create (query) in my code it produces an Error. Show code and error message. (Fed it to the SPARQL validator, which was perfectly happy with it.) Chris -- "The process will be long and ... unreliable." Box, /Star Cops/ Epimorphics Ltd, http://www.epimorphics.com Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT Epimorphics Ltd. is a limited company registered in England (number 7016688)