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

Re: URI in a URI

From: Steve Harris <steve.harris@garlik.com>
Date: Fri, 4 Feb 2011 13:37:33 +0000
Cc: "semantic-web@w3.org" <semantic-web@w3.org>
Message-Id: <20F02733-FBC3-4033-8888-BB028CA7F839@garlik.com>
To: Vincent Huang A <vincent.a.huang@ericsson.com>
You can describe it using a bnode, or UUID URI, or some such, for example, in Turtle:

[
	:service <http://example.com/sensors/sensor1/services> ;
	:reading <http://sweet.jpl.nasa.gov/2.1/propTemperature> ;
	rdf:value 12.0 ;
] .

This is a common way to express n-ary relations in RDF.

- Steve

On 2011-02-04, at 13:22, Vincent Huang A wrote:

> Hi Andrea,
>  
> Thanks for your reply. What I want to do is to give an identity to a service. I could use
> http://example.com/sensors/sensor1/services#Temperature
> but, I want to use a well-defined name for the service.
> http://sweet.jpl.nasa.gov/2.1/propTemperature is used as a well-defined name instead of the word “Temperature”.
>  
> I can have a sensor RDF with the property inside, then I will not be able to have a URI for the service.
>  
> Regards,
>  
> Vincent
>  
>  
> From: semantic-web-request@w3.org [mailto:semantic-web-request@w3.org] On Behalf Of Andrea Splendiani
> Sent: den 4 februari 2011 14:02
> To: Vincent Huang A
> Cc: semantic-web@w3.org
> Subject: Re: URI in a URI
>  
> Hi,
>  
> Technically yes (but you may have to escape something).
>  
> Design wise, you want to say:
> Sensor (uri) property (uri) value.
> You have a triple.
> So should be your sensor URL returning an rdf doc with the property inside.
>  
> Said that, if you need the composed uri for some other reason... That works.
>  
> Ciao,
> Andrea
> 
> Apologies for typos, sent from an iPad
> 
> Il giorno Feb 4, 2011, alle ore 12:24, Vincent Huang A <vincent.a.huang@ericsson.com> ha scritto:
> 
> 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
>  
> Thanks,
>  
> Vincent
> 

-- 
Steve Harris, CTO, Garlik Limited
1-3 Halford Road, Richmond, TW10 6AW, UK
+44 20 8439 8203  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10 9AD
Received on Friday, 4 February 2011 13:38:09 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 21:45:41 GMT