- From: Michael Rys <mrys@microsoft.com>
- Date: Thu, 7 Feb 2002 09:51:42 -0800
- To: "TAN Kuan Hui" <kuanhui@mobileworkspace.com>, <www-ql@w3.org>
- Cc: "Jonathan Robie" <jonathan.robie@softwareag.com>, "Per Bothner" <per@bothner.com>
Note that parameterizing namespace and schema declarations basically means that you cannot compile the functions (since the type information becomes dynamic). This is not something I need in a v1.0 standard or implementation. Best regards Michael > -----Original Message----- > From: TAN Kuan Hui [mailto:kuanhui@mobileworkspace.com] > Sent: Wednesday, February 06, 2002 19:33 PM > To: www-ql@w3.org > Cc: Jonathan Robie; Michael Rys; Per Bothner > Subject: RE: Variable Declaration in Query Prolog > > > > >At 02:02 PM 2/6/2002 -0800, Michael Rys wrote: > >>Function libraries do not need set of variables to be passed. Function > >>libraries provide functions that have parameters. > >> > agree and theoretically isn't a good practice for functions to rely on > global variables for good reusuability. However, from the grammar, > we can't pass in Query Prolog components like schema/namespace > declaration as function parameters; quite the contrary, function > definitions > are always encapsulated within a Query Prolog, wouldn't that > make functions less reusable say for a different set of schemas > or namespaces ? I need time to further think on this. > > > > >Here is one example: I wrote a function library for querying RDF. Almost > >every function in that library needed to be able to reference a common > set > >of assertions. I had to pass the assertions into every function as a > >parameter, but first I had to normalize them, so referring to the source > >was not appropriate. > > > Hi Jonathan, you really lost me there, what do you mean exactly by > passing assertions into functions as parameter ? We can only pass > variable and at best a typed variable right ? > > Kuan Hui > > > >
Received on Thursday, 7 February 2002 12:52:30 UTC