You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by "Iturraspe Barturen, Urtza" <ur...@tecnalia.com> on 2014/01/22 10:47:21 UTC
Error in Sparql using an URI with '+' symbol
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.
I try putting double slash, single slash but the problem that ignore this character?,
What can I do?, some help?
Thank you
Urtza Iturraspe Barturen
Investigador / Researcher
OPTIMA - Optimization Modelling & Analytics Area
ICT - European Software Institute Division
TECNALIA
Parque Tecnológico de Bizkaia, Edificio 202
E-48170 Zamudio (Spain)
mov.: 664 00 21 51
tel.: 902 760 002 / 946 430 850 (International calls)
urtza.iturraspe@tecnalia.com<ma...@tecnalia.com>
www.tecnalia.com<http://www.tecnalia.com/>
[faldon_mail]
**************** AVISO LEGAL **************** DISCLAIMER ****************
Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.
This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.
RE: Error in Sparql using an URI with '+' symbol
Posted by "Iturraspe Barturen, Urtza" <ur...@tecnalia.com>.
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.dollin@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)
Re: Error in Sparql using an URI with '+' symbol
Posted by Chris Dollin <ch...@epimorphics.com>.
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)