RE: URI Syntax

This section of the URI specification should also help when deciding if
the URI is absolute, relative, or abbreviated:

"a URI reference
   (Section 4.1) may be a relative-path reference, in which case the
   first path segment cannot contain a colon (":") character."

http://tools.ietf.org/html/rfc3986#section-3.3

Jeff

> -----Original Message-----
> From: Tim Berners-Lee [mailto:timbl@w3.org]
> Sent: Thursday, November 17, 2011 11:47 AM
> To: Oliver Ruebenacker
> Cc: semantic-web@w3.org
> Subject: Re: URI Syntax
> 
> 
> In RDF/XML, the syntax does not allow qnames where URIs are allowed,
> so you don't have to be able to distinguish.
> 
> Tim
> 
> On 2011-11 -17, at 16:19, Oliver Ruebenacker wrote:
> 
> >     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 17:01:07 UTC