List Info

Thread: IRI support in a CPAN lib




IRI support in a CPAN lib
user name
2007-07-22 15:15:39
(interpreting Perl-XML as Perl-Web here, sorry)

background (I hope it's mostly accurate...):

IRIs are like URIs except they allow non-ascii chars
  http://japanese.example.
org/納豆
HTTP IRIs need to be converted to URLs in a request:
  GET /%E7%B4%8D%E8%B1%86 HTTP/1.1
  Host: japanse.example.org

Non-ascii chars in the domain section
  http://日本語.example.org/納豆
get converted to punycode before resolution.
  host xn--wgv71a119e.example.org

RDF uses IRIs (or at least, so decided the DAWG) and the
occasional
RDF program wants to do an HTTP GET on one of these puppies.
This is
kind of like slinging URIs around, but you don't want the
library to
do any normalizing ala
  $str =~ s/([^$uric#])/$URI::Escape::escapes{$1}/go;
as it does for URI::http.


Problem:
I want to use an IRI class in my RDF code. I looked in
  http://c
pan.org/modules/01modules.index.html
and didn't find relevent matches for '.*iri.*'. Anybody
got such a library secreted about their person?


-- 
-eric

office: +1.617.258.5741 NE43-344, MIT, Cambridge, MA 02144
USA
mobile: +1.617.599.3509

(ericw3.org)
Feel free to forward this message to any list for any
purpose other than
email address distribution.

_______________________________________________
Perl-XML mailing list
Perl-XMLlistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs

Re: IRI support in a CPAN lib
country flaguser name
Germany
2007-07-24 12:11:32
* Eric Prud'hommeaux wrote:
>I want to use an IRI class in my RDF code. I looked in
>  http://c
pan.org/modules/01modules.index.html
>and didn't find relevent matches for '.*iri.*'. Anybody
>got such a library secreted about their person?

The right list for this would be libwwwperl.org;
I am not sure what you
are asking exactly; you start out with a string that's an
IRI but no URI
and then what? Do you want to turn it into a proper HTTP
request? Do you
want IDN support in the LWP/HTTP modules? Do you want to
access compo-
nents of the IRI like the host or query parts? Or what
else?
-- 
Bjrn Hhrmann  mailto:bjoernhoehrmann.de  http://bjoern.hoehrmann.de

Weinh. Str. 22  Telefon: +49(0)621/4309674  http://www.bjoernsworld.de

68309 Mannheim  PGP Pub. KeyID: 0xA4357E78  http://www.websitedev.de/ 
_______________________________________________
Perl-XML mailing list
Perl-XMLlistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )