W3C home > Mailing lists > Public > semantic-web@w3.org > February 2011

Re: URI in a URI

From: Nathan <nathan@webr3.org>
Date: Fri, 04 Feb 2011 12:41:37 +0000
Message-ID: <4D4BF401.1020709@webr3.org>
To: Vincent Huang A <vincent.a.huang@ericsson.com>
CC: "semantic-web@w3.org" <semantic-web@w3.org>
Vincent Huang A wrote:
> Can I have a URI in another URI definition?
> For example, if I want to give a name to a temperature service coming from a sensor, can I say:
> http://example.com/sensors/sensor1/services#http://sweet.jpl.nasa.gov/2.1/propTemperature

well now, that's just one, valid, URI :) so long as it conforms to the 
syntax restrictions then you're fine.

note: be clear on the fact that it's only one URI though, not two URIs, 
or a "URI in a URI", and that #fragments have certain restrictions (see 
[1]), as in you can't have a '#' in a fragment.

[1] http://tools.ietf.org/html/rfc3986#section-3.5


Received on Friday, 4 February 2011 12:42:50 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 07:42:25 UTC