[Mulgara-dev] Fw: URI escaped things don't work...
William Mills
wmills_92105 at yahoo.com
Tue Mar 18 16:26:18 UTC 2008
insert <librange:build%7B1-3%7D.msg.corp.yahoo.com> <atom:expandsto> 'build1.msg.corp.yahoo.com' into <frustration:rolesdb> ;
Exception in thread "main" java.lang.Error: Bad URI syntax in resource: java.net.URISyntaxException: Illegal character in fragment at index 75: http://frustration.corp.yahoo.com/mulgara/rolesdb/primitives/librange#build{1-3}.msg.corp.yahoo.com
at org.mulgara.itql.ItqlInterpreter.toURI(ItqlInterpreter.java:3458)
at org.mulgara.itql.ItqlInterpreter.toNode(ItqlInterpreter.java:3388)
at org.mulgara.itql.ItqlInterpreter.getStatements(ItqlInterpreter.java:2859)
at org.mulgara.itql.ItqlInterpreter.insertStatements(ItqlInterpreter.java:2747)
at org.mulgara.itql.ItqlInterpreter.outAInsertCommand(ItqlInterpreter.java:2010)
at org.mulgara.itql.analysis.DepthFirstAdapter.caseAInsertCommand(DepthFirstAdapter.java:365)
at org.mulgara.itql.node.AInsertCommand.apply(AInsertCommand.java:45)
at org.mulgara.itql.analysis.DepthFirstAdapter.caseACommandStart(DepthFirstAdapter.java:51)
at org.mulgara.itql.node.ACommandStart.apply(ACommandStart.java:30)
at org.mulgara.itql.analysis.DepthFirstAdapter.caseStart(DepthFirstAdapter.java:31)
at org.mulgara.itql.node.Start.apply(Start.java:33)
at org.mulgara.itql.ItqlInterpreter.executeCommand(ItqlInterpreter.java:572)
at org.mulgara.itql.ItqlInterpreterBean.executeQuery(ItqlInterpreterBean.java:715)
at org.mulgara.itql.ItqlSession.executeScript(ItqlSession.java:868)
at org.mulgara.itql.ItqlSession.main(ItqlSession.java:242)
----- Original Message ----
From: Paul Gearon <gearon at ieee.org>
To: Mulgara Developers <mulgara-dev at mulgara.org>
Sent: Tuesday, March 18, 2008 8:56:25 AM
Subject: Re: [Mulgara-dev] Fw: URI escaped things don't work...
On Mar 17, 2008, at 10:59 PM, William Mills wrote:
> OK, so I found that XML escaping works, so the following succeeds:
>
> insert <librange:build&x7B;
> 1-3&x7D;.msg.corp.yahoo.com><atom:expandsto>
> 'build1.msg.corp.yahoo.com' into<frustration:rolesdb> ;
>
> but it is unfortunately escaped on the way out when using the SOAP
> interface (this is the expected icky behavior).
>
> Why allow XML escaping on URIs and not URI escaping?
RDF has a historical relationship with XML. Most RDF is (or was)
expected to go through XML, and certainly the guy who designed the
query language had XML in mind every step of the way (he even had a
half-built XML form of the language).
As for not permitting URI escaping.... I have no idea. What error do
you get when you try it? Maybe it's just a simple tweak to fix it?
Paul
> ----- Forwarded Message ----
> From: William Mills <wmills_92105 at yahoo.com>
> To: Mulgara Dev <mulgara-dev at mulgara.org>
> Sent: Monday, March 17, 2008 8:38:21 PM
> Subject: URI escaped things don't work...
>
> I am encountering a problem with properly (I think) URI escaped
> strings. The following works as expected:;
>
> insert <role:dev> <atom:contains> 'build{1-3}.msg.corp.yahoo.com'
> into <frustration:rolesdb> ;
>
> But neither of the following work:
>
> insert <librange:build%7B1-3%7D.msg.corp.yahoo.com>
> <atom:expandsto> 'build1.msg.corp.yahoo.com' into
> <frustration:rolesdb> ;
>
> insert <librange:build{1-3}.msg.corp.yahoo.com><atom:expandsto>
> 'build1.msg.corp.yahoo.com' into<frustration:rolesdb> ;
>
> What's the deal?
>
> thanks,
>
> -bill
>
>
>
>
>
> _______________________________________________
> Mulgara-dev mailing list
> Mulgara-dev at mulgara.org
> http://mulgara.org/mailman/listinfo/mulgara-dev
_______________________________________________
Mulgara-dev mailing list
Mulgara-dev at mulgara.org
http://mulgara.org/mailman/listinfo/mulgara-dev
More information about the Mulgara-dev
mailing list