W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2006

[UPD] The intention behind fn:put()

From: Torsten Grust <grust@in.tum.de>
Date: Tue, 8 Aug 2006 15:46:38 +0200
Message-Id: <303FE337-DF69-42F6-987B-6E9E7EB33AFA@in.tum.de>
To: public-qt-comments@w3.org

Dear all,

   this is a brief question with which I hope to get a clearer  
picture of the original intention behind the new built-in function  
fn:put() that has been added to the current XQuery Update Facility  

In 2.5.1., the draft says: ''[fn:put($node as node(), $uri as  
xs:string)] stores a document or element to the location specified by  
an xs:anyURI. This function is normally invoked to create a resource  
on an external storage system such as a file system or a database.''

What's the intended interpretation of 'external' in the above?

At least two interpretations come to mind:

(1) The node (and its descendants) are serialized/packaged up/encoded  
and then submitted to an *external system* ('external' in the sense  
of, e.g. 'remote, different host on a network'), maybe even via an  
HTTP PUT command (this is what the name fn:put() could suggest).

(2) The node (and its descendants) are serialized/packaged up/encoded  
in such a way that a system *external to the core query processor*  
(e.g., an underlying database back-end) can receive it and then store  
it for later access).

In both interpretations it is conceivable that an fn:doc() call using  
the same URI used during the fn:put() invocation can retrieve the  
node and its descendants.

(Please note that I realize that the interpretation of the URI used  
in fn:put() is implementation-defined and configurable such that, at  
the end of the day, I can realize both above interpretations and  
several more.  I am asking for the original intention that led to the  
proposal of fn:put().)

Thanks and cheers,
   | Prof. Dr. Torsten Grust                         grust@in.tum.de |
   |                                 http://www-db.in.tum.de/~grust/ |
   |     Database Systems - Technische Universität München (Germany) |
Received on Tuesday, 8 August 2006 13:46:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:13 UTC