Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2006

Tip: Looking for answers? Try searching our database.

IRI validation and conversion

Thread view: 
Henri Sivonen - 17 Apr 2006 14:16 GMT
I'm looking for code (Open Source, non-viral license, runs on JDK 1.4.2)
for doing the following:

* Check if a string is an IRI per RFC 3987.
* Check if a string is an IRI reference per RFC 3987.
* Convert an IRI into an URI with IDN-awareness for the http scheme.
* Maximally IRIfy and URI with IDN-awareness for the http scheme.

Any suggestions?

The best candidate so far is the com.hp.hpl.jena.iri package.

Signature

Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/

Roedy Green - 17 Apr 2006 20:44 GMT
> * Check if a string is an IRI per RFC 3987.

http://rfc3987.rfc.8x.ca/
an IRI is an international URI, i.e. a URI with an extended character
set.

Very likely you might want some subset of the IRI spec.  

You might see what the Java URN and URI classes do. If they parse for
you, you might then use a regex for fine tuning.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Henri Sivonen - 24 Apr 2006 22:31 GMT
> > * Check if a string is an IRI per RFC 3987.
>
> http://rfc3987.rfc.8x.ca/
> an IRI is an international URI, i.e. a URI with an extended character
> set.

Yes.

> Very likely you might want some subset of the IRI spec.  

No, I want to check exactly for IRIs to the extent the spec is exact.

> You might see what the Java URN and URI classes do. If they parse for
> you, you might then use a regex for fine tuning.

The JDK classes won't be even nearly up to date until Mustang.

The library I already mentioned uses JFlex--not just regexps.

Signature

Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.