URI Syntax

     Hello,

  I have a silly little technical question: when parsing an XML/RDF
document, what is the easiest way to find out whether a string
representing a URI is a complete absolute URI,a relative URI or an
abbreviation?

  For example, I want to distinguish "http://example.org/myURI" from
"ex:myURI", "#myURI" or "myURI".

  Browsing through the RDF syntax definition, I find that q-names can
contain characters called "combining characters" and "extenders",
which I am unfamiliar with. The specs give a longs list of character
ranges for each. Is there a way to test whether a character is a
"combining character" or an "extender" other than copying the whole
list?

  Thanks!

     Take care
     Oliver

-- 
Oliver Ruebenacker, Computational Cell Biologist
Virtual Cell (http://vcell.org)
SBPAX: Turning Bio Knowledge into Math Models (http://www.sbpax.org)
http://www.oliver.curiousworld.org

Received on Thursday, 17 November 2011 16:20:10 UTC