W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > January to March 2010

Re: Base URI in updates?

From: Steve Harris <steve.harris@garlik.com>
Date: Fri, 5 Feb 2010 16:55:11 +0000
Cc: SPARQL Working Group <public-rdf-dawg@w3.org>
Message-Id: <C531E759-7268-4015-8DEB-8DA0E540D137@garlik.com>
To: Andy Seaborne <andy.seaborne@talis.com>
On 5 Feb 2010, at 16:23, Andy Seaborne wrote:
> On 05/02/2010 15:53, Steve Harris wrote:
>> On 5 Feb 2010, at 15:31, Andy Seaborne wrote:
>>
>>> This arose because of baseless RDF/XML and wanting to copy them from
>>> the their original URL to a harvesting store.
>>>
>>> What's the base URI when using SPARQL HTTP Update when using remote
>>> naming (?graph=)
>>>
>>> It looks to me like it's the whole of:
>>>
>>> http://server/service?graph=http://examples/myGraph
>>
>> FWIW, in 4store it's <http://examples/myGraph> in this example. In  
>> our
>> experiences this more matches user expectations with regard to  
>> relative
>> URIs.
>
> That's what I'd like it to be ... I don't think that HTTP allows it  
> though :-(
>
> http://www.ietf.org/rfc/rfc1808.txt
> 3.  Establishing a Base URL
>
>      .----------------------------------------------------------.
>      |  .----------------------------------------------------.  |
>      |  |  .----------------------------------------------.  |  |
>      |  |  |  .----------------------------------------.  |  |  |
>      |  |  |  |   (3.1) Base URL embedded in the       |  |  |  |
>      |  |  |  |         document's content             |  |  |  |
>      |  |  |  `----------------------------------------'  |  |  |
>      |  |  |   (3.2) Base URL of the encapsulating entity |  |  |
>      |  |  |         (message, document, or none).        |  |  |
>      |  |  `----------------------------------------------'  |  |
>      |  |   (3.3) URL used to retrieve the entity            |  |
>      |  `----------------------------------------------------'  |
>      |   (3.4) Base URL = "" (undefined)                        |
>      `----------------------------------------------------------'

In my (not very informed) opinion, 3.2 "Base URL of the encapsulating  
entity" would cover this case, if it was worded correctly in the HTTP  
update spec.

- Steve

-- 
Steve Harris, Garlik Limited
2 Sheen Road, Richmond, TW9 1AE, UK
+44 20 8973 2465  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, 5 February 2010 16:55:52 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:41 GMT