From mlu at as-guides.com Wed Jun 3 12:18:25 2009 From: mlu at as-guides.com (Michael Ludwig) Date: Wed Jun 3 01:40:12 2009 Subject: [xquery-talk] Define no-overlaps constraint based on two integers (range index?) Message-ID: <4A263FE1.4040903@as-guides.com> I have a lot of documents in an XML database (Oracle Berkeley DB XML), which look like this: Huhu Do you see any possibility to define an index on a database (on *any* database) such that no two documents with an overlapping period from @start to @end can exist? Both @start and @end are integers. Given the above document, no document may start or end in the interval between 100123 and 100456. I know this problem is rather general, unrelated to XQuery, and not even specific to DBXML, of which I've already consulted the forum: http://forums.oracle.com/forums/message.jspa?messageID=3482507 I also know this problem could have an XQuery solution coded at the application level, based on equality indices on @start and @end. Pointers to better places to ask this are as welcome as hints to a solution. I'm not sure what this kind of index is called; I thought of "contiguity index", or "range index", or "interval index", but can't find much in Google. Does anyone know? Michael Ludwig From mike at saxonica.com Wed Jun 3 12:26:01 2009 From: mike at saxonica.com (Michael Kay) Date: Wed Jun 3 02:45:47 2009 Subject: [xquery-talk] Define no-overlaps constraint based on two integers(range index?) In-Reply-To: <4A263FE1.4040903@as-guides.com> References: <4A263FE1.4040903@as-guides.com> Message-ID: I think you'll be extraordinarily lucky to find a product that does this for you automatically, and efficiently. However it's easy enough to check the condition by hand, with reasonable efficiency so long as you can access everything in the collection efficiently: let $ranges := for $doc in collection(...) return let $sortedRanges := { for $range in $ranges order by xs:integer($range/@start) return $range } let $valid := empty($sortedRanges/range[xs:integer(@start) le xs:integer(preceding-sibling::range/@end)]) return $valid If scanning the collection is too expensive, then you can maintain a document "by hand" that contains the ranges redundantly. Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay > -----Original Message----- > From: talk-bounces@x-query.com > [mailto:talk-bounces@x-query.com] On Behalf Of Michael Ludwig > Sent: 03 June 2009 10:18 > To: talk@x-query.com > Subject: [xquery-talk] Define no-overlaps constraint based on > two integers(range index?) > > I have a lot of documents in an XML database (Oracle Berkeley > DB XML), which look like this: > > Huhu > > Do you see any possibility to define an index on a database (on *any* > database) such that no two documents with an overlapping > period from @start to @end can exist? Both @start and @end > are integers. Given the above document, no document may start > or end in the interval between > 100123 and 100456. > > I know this problem is rather general, unrelated to XQuery, > and not even specific to DBXML, of which I've already > consulted the forum: > > http://forums.oracle.com/forums/message.jspa?messageID=3482507 > > I also know this problem could have an XQuery solution coded > at the application level, based on equality indices on @start > and @end. > > Pointers to better places to ask this are as welcome as hints > to a solution. I'm not sure what this kind of index is > called; I thought of "contiguity index", or "range index", or > "interval index", but can't find much in Google. Does anyone know? > > Michael Ludwig > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk From adam.retter at googlemail.com Wed Jun 3 12:27:21 2009 From: adam.retter at googlemail.com (Adam Retter) Date: Wed Jun 3 02:46:58 2009 Subject: OT - Re: [xquery-talk] Define no-overlaps constraint based on two integers (range index?) Message-ID: As you broaden your question to ask about "*any* database", I can give you a brief overview of how this could be done in the eXist XML Native Database. The functionality to restrict the ability to store a document based on criteria in other documents (in this case start and end value attributes) could be defined in a Trigger, this Trigger could be implemented in either XQuery or Java. If the Trigger was written in XQuery you could take advantage of configurable indexes in eXist to speed up your search of 'overlapping documents', to do so you would create a range indexes on both the start and end attributes. If you wish to further discuss the functionality available in eXist to achieve this, may I suggest that the eXist mailing list would be better suited. Cheers Adam. 2009/6/3 Michael Ludwig : > I have a lot of documents in an XML database (Oracle Berkeley DB XML), > which look like this: > > ?Huhu > > Do you see any possibility to define an index on a database (on *any* > database) such that no two documents with an overlapping period from > @start to @end can exist? Both @start and @end are integers. Given the > above document, no document may start or end in the interval between > 100123 and 100456. > > I know this problem is rather general, unrelated to XQuery, and not > even specific to DBXML, of which I've already consulted the forum: > > http://forums.oracle.com/forums/message.jspa?messageID=3482507 > > I also know this problem could have an XQuery solution coded at the > application level, based on equality indices on @start and @end. > > Pointers to better places to ask this are as welcome as hints to a > solution. I'm not sure what this kind of index is called; I thought of > "contiguity index", or "range index", or "interval index", but can't > find much in Google. Does anyone know? > > Michael Ludwig > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk > -- Adam Retter From mlu at as-guides.com Wed Jun 3 15:47:30 2009 From: mlu at as-guides.com (Michael Ludwig) Date: Wed Jun 3 05:47:52 2009 Subject: [xquery-talk] Define no-overlaps constraint based on two integers (range index?) In-Reply-To: <4A263FE1.4040903@as-guides.com> References: <4A263FE1.4040903@as-guides.com> Message-ID: <4A2670E2.8040006@as-guides.com> Michael and Adam, thanks for your answers. Michael Ludwig schrieb: > I'm not sure what this kind of index is called; I thought of > "contiguity index", or "range index", or "interval index", but > can't find much in Google. In an SQL server, it's a CHECK clause plus two indices on the INTEGER columns, and that's about what it translates to in an XQuery server. Maybe this is too simple to merit a name of its own. Michael Ludwig From derstubbi at gmx.de Mon Jun 8 18:08:40 2009 From: derstubbi at gmx.de (derstubbi@gmx.de) Date: Mon Jun 8 08:08:52 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: <4A2670E2.8040006@as-guides.com> References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> Message-ID: <20090608150840.308680@gmx.net> Hi, I have several questions concerning XQuery : 1) how can I use a xml-file stored in a database ? I tried with eXist but i did not work: let $path :='http://localhost:8080/exist/rest/db/my.xml' ...doc(path )... -> FileNotFoundException: http://localhost:8080/exist/rest/db/Abteilung_DocIDinRepo.xml (I tried several other paths and combinations) When I use the path in my browser, I can see the file. What am I doing wrong ? 2)Is there (or will there be) possibility to make a database-connection just with XQuery ? So that I can give host, port, login, passwort, etc and XQuery is able to connect to the database ? Am I correct, that at the moment it is only possible if you use XQuery executed from java (or an other programming language, that is able to create a connection) ? 3) When will there be a new/newer specification of XQuery (->XQuery 2.0) Is it possible to get an overview of the planed changes and new possibilities ? Greetings, ND -- GMX FreeDSL mit DSL 6.000 Flatrate und Telefonanschluss nur 17,95 Euro/mtl.! http://dslspecial.gmx.de/freedsl-aktionspreis/?ac=OM.AD.PD003K11308T4569a From houghtoa at oclc.org Mon Jun 8 12:15:06 2009 From: houghtoa at oclc.org (Houghton,Andrew) Date: Mon Jun 8 08:14:21 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: <20090608150840.308680@gmx.net> References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> Message-ID: <6548F17059905B48B2A6F28CE3692BAA03C6F546@OAEXCH4SERVER.oa.oclc.org> > From: talk-bounces@x-query.com [mailto:talk-bounces@x-query.com] On > Behalf Of derstubbi@gmx.de > Sent: Monday, June 08, 2009 11:09 AM > To: talk@x-query.com > Subject: [xquery-talk] XQuery and databases - XQuery 2.0 > > Hi, > I have several questions concerning XQuery : > > 1) > how can I use a xml-file stored in a database ? > I tried with eXist but i did not work: > > let $path :='http://localhost:8080/exist/rest/db/my.xml' > ...doc(path )... > > -> FileNotFoundException: > http://localhost:8080/exist/rest/db/Abteilung_DocIDinRepo.xml > (I tried several other paths and combinations) > > When I use the path in my browser, I can see the file. > What am I doing wrong ? Did you try ...doc($path)... Andy. From wolfgang at exist-db.org Mon Jun 8 18:29:28 2009 From: wolfgang at exist-db.org (Wolfgang) Date: Mon Jun 8 08:28:37 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: <20090608150840.308680@gmx.net> References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> Message-ID: <4A2D2E58.9070401@exist-db.org> Hi, > how can I use a xml-file stored in a database ? > I tried with eXist but i did not work: please ask product specific questions on the corresponding mailing lists. How you access a stored document depends on the database product you use. There's no general answer to this. > let $path :='http://localhost:8080/exist/rest/db/my.xml' > ...doc(path )... > > -> FileNotFoundException: http://localhost:8080/exist/rest/db/Abteilung_DocIDinRepo.xml > (I tried several other paths and combinations) Just use a relative URI: doc("/db/my.xml"). The xquery is running on the server. It knows and has access to all documents stored there. There's no need to use an HTTP URI here. > 2)Is there (or will there be) possibility to make a database-connection just with XQuery ? So that I can give host, port, login, passwort, etc and XQuery is able to connect to the database ? > Am I correct, that at the moment it is only possible if you use XQuery executed from java (or an other programming language, that is able to create a connection) ? Mmmmh, the query engine is running on top of the database, so it has a connection to that server. I guess what you are asking for is a way to access resources stored on a different server than the one which is running the query? You can retrieve external documents via an HTTP URL, just as you tried above. However, eXist will retrieve those documents and parse them locally. You loose the benefits of indexes and the like. If you are asking for distributed search: we (eXist) do not provide such a feature right now, though some work is underway. You may have a look at some of the commercial xmldbs if you need this. Wolfgang From mike at saxonica.com Mon Jun 8 18:11:38 2009 From: mike at saxonica.com (Michael Kay) Date: Mon Jun 8 09:09:49 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: <4A2D2E58.9070401@exist-db.org> References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com><20090608150840.308680@gmx.net> <4A2D2E58.9070401@exist-db.org> Message-ID: > > > let $path :='http://localhost:8080/exist/rest/db/my.xml' > > ...doc(path )... > > > > -> FileNotFoundException: > > -> http://localhost:8080/exist/rest/db/Abteilung_DocIDinRepo.xml > > (I tried several other paths and combinations) > > Just use a relative URI: doc("/db/my.xml"). The xquery is > running on the server. It knows and has access to all > documents stored there. There's no need to use an HTTP URI here. > Or if you really do want eXist simply to return the whole document, and then to run client-side queries against the returned document, you could use a free-standing (non-database) query processor like Saxon on the client side. Sometimes if you want to do intensive processing that will use most of the data in the document, and if you know exactly what document you want to process, then it can make sense to do this processing on the client side. Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay From derstubbi at gmx.de Mon Jun 8 19:46:37 2009 From: derstubbi at gmx.de (hans uwe) Date: Mon Jun 8 09:41:45 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: <6548F17059905B48B2A6F28CE3692BAA03C6F546@OAEXCH4SERVER.oa.oclc.org> References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> <6548F17059905B48B2A6F28CE3692BAA03C6F546@OAEXCH4SERVER.oa.oclc.org> Message-ID: <20090608164637.308710@gmx.net> Of course ;) (that was a error due to copy and paste into the email ... -------- Original-Nachricht -------- > Datum: Mon, 8 Jun 2009 11:15:06 -0400 > Von: "Houghton,Andrew" > An: derstubbi@gmx.de, talk@x-query.com > Betreff: RE: [xquery-talk] XQuery and databases - XQuery 2.0 > > From: talk-bounces@x-query.com [mailto:talk-bounces@x-query.com] On > > Behalf Of derstubbi@gmx.de > > Sent: Monday, June 08, 2009 11:09 AM > > To: talk@x-query.com > > Subject: [xquery-talk] XQuery and databases - XQuery 2.0 > > > > Hi, > > I have several questions concerning XQuery : > > > > 1) > > how can I use a xml-file stored in a database ? > > I tried with eXist but i did not work: > > > > let $path :='http://localhost:8080/exist/rest/db/my.xml' > > ...doc(path )... > > > > -> FileNotFoundException: > > http://localhost:8080/exist/rest/db/Abteilung_DocIDinRepo.xml > > (I tried several other paths and combinations) > > > > When I use the path in my browser, I can see the file. > > What am I doing wrong ? > > Did you try ...doc($path)... > > > Andy. > > > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk -- GRATIS f?r alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 From derstubbi at gmx.de Mon Jun 8 20:25:20 2009 From: derstubbi at gmx.de (derstubbi@gmx.de) Date: Mon Jun 8 10:20:25 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com><20090608150840.308680@gmx.net> <4A2D2E58.9070401@exist-db.org> Message-ID: <20090608172520.308710@gmx.net> > > Just use a relative URI: doc("/db/my.xml"). The xquery is > > running on the server. It knows and has access to all > > documents stored there. There's no need to use an HTTP URI here. Hello, I am not running the query in the server. I use xquery "standalone", triggered with java or VB.net using saxon. > Or if you really do want eXist simply to return the whole document, and > then > to run client-side queries against the returned document, you could use a > free-standing (non-database) query processor like Saxon on the client > side. > Sometimes if you want to do intensive processing that will use most of the > data in the document, and if you know exactly what document you want to > process, then it can make sense to do this processing on the client side. Yes,I want to retrieve a whole document, even on a different server, and normally I get the full name. If I want to retrieve more documents, I could use collections, right? (I have not used collections yet) I am able to retrieve xml-documents from a repository, which runs on a tomcat-server. But in that case I need the id of the document (thats ok). So I searched a way to get documents from a "normal" database, and at first I tried eXist. Is there a way that you would prefer? Maybe something I didn't even think of !?! -- GRATIS f?r alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 From wolfgang at exist-db.org Mon Jun 8 20:46:05 2009 From: wolfgang at exist-db.org (Wolfgang) Date: Mon Jun 8 10:41:12 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: <20090608172520.308710@gmx.net> References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com><20090608150840.308680@gmx.net> <4A2D2E58.9070401@exist-db.org> <20090608172520.308710@gmx.net> Message-ID: <4A2D4E5D.6080400@exist-db.org> > I am not running the query in the server. I use xquery "standalone", triggered with java or VB.net using saxon. Sure, you can use saxon on the client to query a document stored in eXist. As Michael already said, this makes sense in some cases. However, to avoid misunderstandings: please note that your query will not benefit from any database features this way and you will be using eXist as a plain container. To benefit from indexes, you have to use eXist's own query engine (I think this applies to all other xmldb's as well). > Yes,I want to retrieve a whole document, even on a different server, and normally I get the full name. Ok, your original approach should work then. Using saxon I can query a document stored in eXist with e.g. doc("http://localhost:8080/exist/rest/db/examples.xml")//query > If I want to retrieve more documents, I could use collections, right? (I have not used collections yet) What constitutes a collection is implementation dependent. If you are using saxon on the client, you need to create a saxon collection. Wolfgang From Andy.K.Chang at aexp.com Mon Jun 8 14:53:39 2009 From: Andy.K.Chang at aexp.com (Andy K Chang) Date: Mon Jun 8 13:36:49 2009 Subject: [xquery-talk] Andy K Chang is out of office Message-ID: I will be out of the office starting 06/08/2009 and will not return until 06/09/2009. American Express made the following annotations on Mon Jun 08 2009 14:55:35 ------------------------------------------------------------------------------ "This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you." American Express a ajouté le commentaire suivant le Mon Jun 08 2009 14:55:35 Ce courrier et toute pièce jointe qu'il contient sont réservés au seul destinataire indiqué et peuvent renfermer des renseignements confidentiels et privilégiés. Si vous n'êtes pas le destinataire prévu, toute divulgation, duplication, utilisation ou distribution du courrier ou de toute pièce jointe est interdite. Si vous avez reçu cette communication par erreur, veuillez nous en aviser par courrier et détruire immédiatement le courrier et les pièces jointes. Merci. ****************************************************************************** ------------------------------------------------------------------------------- From derstubbi at gmx.de Tue Jun 9 17:21:22 2009 From: derstubbi at gmx.de (derstubbi@gmx.de) Date: Tue Jun 9 07:22:00 2009 Subject: Fwd: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: <20090608150840.308680@gmx.net> References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> Message-ID: <20090609142122.320210@gmx.net> To pick up point 3) I just read that the XQuery 1.1. specification exists (ok, it is "just" a working draft), but is not (really) used today. And I also read that there are "insufficient resources to continue development of the Static Typing feature". What does that mean ? Is there no more development for XQuery at all ? What are/were the ideas for future XQuery ? point 1) I am still not able to run this : let $path :=doc('http://localhost:8080/exist/rest/db/myConfig.xml') return { $path } -> java.io.FileNotFoundException: http://localhost:8080/exist/rest/db/myConfig.xml I run the XQuery with java/saxon. The file is imported into the eXist databse. It can be retrieved with using the path in my browser... What is the mistake ? thanking you in anticipation, ND -------- Original-Nachricht -------- Datum: Mon, 08 Jun 2009 17:08:40 +0200 Von: derstubbi@gmx.de An: talk@x-query.com Betreff: [xquery-talk] XQuery and databases - XQuery 2.0 Hi, I have several questions concerning XQuery : 1) how can I use a xml-file stored in a database ? I tried with eXist but i did not work: let $path :='http://localhost:8080/exist/rest/db/my.xml' ...doc(path )... -> FileNotFoundException: http://localhost:8080/exist/rest/db/Abteilung_DocIDinRepo.xml (I tried several other paths and combinations) When I use the path in my browser, I can see the file. What am I doing wrong ? 2)Is there (or will there be) possibility to make a database-connection just with XQuery ? So that I can give host, port, login, passwort, etc and XQuery is able to connect to the database ? Am I correct, that at the moment it is only possible if you use XQuery executed from java (or an other programming language, that is able to create a connection) ? 3) When will there be a new/newer specification of XQuery (->XQuery 2.0) Is it possible to get an overview of the planed changes and new possibilities ? Greetings, ND -- GMX FreeDSL mit DSL 6.000 Flatrate und Telefonanschluss nur 17,95 Euro/mtl.! http://dslspecial.gmx.de/freedsl-aktionspreis/?ac=OM.AD.PD003K11308T4569a _______________________________________________ talk@x-query.com http://x-query.com/mailman/listinfo/talk -- GMX FreeDSL mit DSL 6.000 Flatrate und Telefonanschluss nur 17,95 Euro/mtl.! http://dslspecial.gmx.de/freedsl-aktionspreis/?ac=OM.AD.PD003K11308T4569a From wolfgang at exist-db.org Tue Jun 9 17:32:10 2009 From: wolfgang at exist-db.org (Wolfgang Meier) Date: Tue Jun 9 07:32:47 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: <20090609142122.320210@gmx.net> References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> <20090609142122.320210@gmx.net> Message-ID: <19f274050906090732p3323de4eg5948b2dae4581e18@mail.gmail.com> > -> java.io.FileNotFoundException: http://localhost:8080/exist/rest/db/myConfig.xml The query definitely works for me using saxon within oxygen as well as on the command line. I guess there must be something wrong in the way you are calling it. Wolfgang From john.snelson at oracle.com Tue Jun 9 16:49:21 2009 From: john.snelson at oracle.com (John Snelson) Date: Tue Jun 9 07:50:06 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: <20090609142122.320210@gmx.net> References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> <20090609142122.320210@gmx.net> Message-ID: <4A2E7671.6040608@oracle.com> derstubbi@gmx.de wrote: > To pick up point 3) > > I just read that the XQuery 1.1. specification exists (ok, it is "just" a working draft), but is not (really) used today. > And I also read that there are "insufficient resources to continue development of the Static Typing feature". > What does that mean ? There's a specification called "XQuery 1.0 and XPath 2.0 Formal Semantics" [1], which details the semantics of XQuery 1.0 with a more rigorous mathematical notation - this document may possibly be discontinued as the XQuery Working Group publishes the XQuery 1.1 range of specifications. > Is there no more development for XQuery at all ? Not at all - there's lots going on for XQuery 1.1. > What are/were the ideas for future XQuery ? You can read the XQuery 1.1 requirements document [2] to find out what the working group has been adding to XQuery. Some highlights (for me) include: 1) Higher order functions 2) Grouping and windowing 3) Try/catch John [1] http://www.w3.org/TR/xquery-semantics/ [2] http://www.w3.org/TR/xquery-11-requirements/ -- John Snelson, Oracle Corporation http://snelson.org.uk/john Berkeley DB XML: http://oracle.com/database/berkeley-db/xml XQilla: http://xqilla.sourceforge.net From mike at saxonica.com Tue Jun 9 17:02:16 2009 From: mike at saxonica.com (Michael Kay) Date: Tue Jun 9 08:02:55 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: <20090609142122.320210@gmx.net> References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com><20090608150840.308680@gmx.net> <20090609142122.320210@gmx.net> Message-ID: > I just read that the XQuery 1.1. specification exists (ok, it > is "just" a working draft), but is not (really) used today. Yes, it's still under development. Various vendors have implemented various parts of it even though it is still a draft. > And I also read that there are "insufficient resources to > continue development of the Static Typing feature". > What does that mean ? We stated in the status section of the current draft "The WG remains concerned that there are insufficient resources to continue development of the Static Typing feature". This was essentially a warning to the community: come and help us with this feature, or we will have to drop it. I think it is very likely that the decision to drop the feature will indeed be confirmed. > Is there no more development for XQuery at all ? No, the Static Typing Feature is an optional feature of the language, and not many implementations provide it. If it is dropped, most users won't notice the difference. > > I am still not able to run this : > > let $path :=doc('http://localhost:8080/exist/rest/db/myConfig.xml') > return > > { > $path > } > > > -> java.io.FileNotFoundException: > -> http://localhost:8080/exist/rest/db/myConfig.xml > > I run the XQuery with java/saxon. The file is imported into > the eXist databse. It can be retrieved with using the path in > my browser... > What is the mistake ? > I don't know, offhand. I assume you are running everything on the same machine? It may be something to do with your Java proxy configuration? Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay From liam at w3.org Thu Jun 11 12:16:25 2009 From: liam at w3.org (Liam Quin) Date: Thu Jun 11 08:11:21 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: <20090608150840.308680@gmx.net> References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> Message-ID: <20090611151625.GF16325@w3.org> On Mon, Jun 08, 2009 at 05:08:40PM +0200, derstubbi@gmx.de wrote: > I have several questions concerning XQuery : > > 2)Is there (or will there be) possibility to make a > database-connection just with XQuery ? So that I can give host, port, > login, passwort, etc and XQuery is able to connect to the database ? > Am I correct, that at the moment it is only possible if you use XQuery > executed from java (or an other programming language, that is able to > create a connection) ? This depnds on the XQuery engine you use. E.g. for my own Web site, the Java-based XQuery engine I use is Qizx, and it does support a way to connect to a erlational database (I'm assuming this is what you are asking here?), but the zero-dollar version of that product is limited to a database of only one gigabyte of XML. > When will there be a new/newer specification of XQuery (->XQuery 2.0) > Is it possible to get an overview of the planed changes and new > possibilities ? You can look at http://www.w3.org/XML/Query - I admit I'm not very good at publishing news items, but I do try: there will be one later today :-) Liam -- Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/ http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/ From tim.kraska at inf.ethz.ch Sun Jun 14 00:27:37 2009 From: tim.kraska at inf.ethz.ch (Tim Kraska) Date: Sat Jun 13 14:21:53 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: <20090608150840.308680@gmx.net> References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> Message-ID: <254CA0E9-E4C5-4FD2-8178-8B82873B41B3@inf.ethz.ch> > 3) > When will there be a new/newer specification of XQuery (->XQuery 2.0) > Is it possible to get an overview of the planed changes and new > possibilities ? > XQuery 1.1 is already on the way: http://www.w3.org/TR/xquery-11/ http://www.w3.org/TR/xquery-11-use-cases/ http://www.w3.org/TR/xquery-11-requirements/ Best wishes, Tim From adam.retter at googlemail.com Mon Jun 15 21:44:57 2009 From: adam.retter at googlemail.com (Adam Retter) Date: Mon Jun 15 12:42:41 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: <20090611151625.GF16325@w3.org> References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> <20090611151625.GF16325@w3.org> Message-ID: >> 2)Is there (or will there be) possibility to make a >> database-connection just with XQuery ? So that I can give host, port, >> login, passwort, etc and XQuery is able to connect to the database ? >> Am I correct, that at the moment it is only possible if you use XQuery >> executed from java (or an other programming language, that is able to >> create a connection) ? > > This depnds on the XQuery engine you use. E.g. for my own Web site, > the Java-based XQuery engine I use is Qizx, and it does support a > way to connect to a erlational database (I'm assuming this is > what you are asking here?), but the zero-dollar version of that > product is limited to a database of only one gigabyte of XML. Another option, eXist, provides a XQuery Extenesion module for SQL connections and queries. I would like to see the concepts from there eventually it into the EXPath/EXQuery efforts -- Adam Retter From brian at blumenfeld-maso.com Mon Jun 15 15:10:44 2009 From: brian at blumenfeld-maso.com (Brian Maso) Date: Mon Jun 15 14:08:21 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> <20090611151625.GF16325@w3.org> Message-ID: I had heard that future versions of the SQL standard are to bring XML in to SQL -- basically make non-validated XML nodes as valid column types and add intra-XML indexing. This was quite a while ago that I heard it, but it was delivered by a reputable source. Seems like these two language have huge overlap and can eventually be replaced by a single query language. (Besides, SQL is so incomprehensible for even modestly-sized queries, it would be great to replace it with something a bit more understandable such as XQuery; not to mention the legions of vendor specifics and incompatibilities...) Best regards, Brian Maso On Mon, Jun 15, 2009 at 12:44 PM, Adam Retter wrote: > >> 2)Is there (or will there be) possibility to make a > >> database-connection just with XQuery ? So that I can give host, port, > >> login, passwort, etc and XQuery is able to connect to the database ? > >> Am I correct, that at the moment it is only possible if you use XQuery > >> executed from java (or an other programming language, that is able to > >> create a connection) ? > > > > This depnds on the XQuery engine you use. E.g. for my own Web site, > > the Java-based XQuery engine I use is Qizx, and it does support a > > way to connect to a erlational database (I'm assuming this is > > what you are asking here?), but the zero-dollar version of that > > product is limited to a database of only one gigabyte of XML. > > Another option, eXist, provides a XQuery Extenesion module for SQL > connections and queries. I would like to see the concepts from there > eventually it into the EXPath/EXQuery efforts > > o > > -- > Adam Retter > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://x-query.com/pipermail/talk/attachments/20090615/190a1795/attachment.htm From int19h at gmail.com Mon Jun 15 15:19:39 2009 From: int19h at gmail.com (Pavel Minaev) Date: Mon Jun 15 14:17:20 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> <20090611151625.GF16325@w3.org> Message-ID: On Mon, Jun 15, 2009 at 2:10 PM, Brian Maso wrote: > I had heard that future versions of the SQL standard are to bring XML in to > SQL -- basically make non-validated XML nodes as valid column types and add > intra-XML indexing. It's called SQL/XML, and it has been there since SQL-2003: http://en.wikipedia.org/wiki/SQL/XML From dlee at calldei.com Mon Jun 15 18:21:56 2009 From: dlee at calldei.com (David A. Lee) Date: Mon Jun 15 14:18:50 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> <20090611151625.GF16325@w3.org> Message-ID: <4A36BB74.2030109@calldei.com> Not sure about a "standard" but the top DB vendors have done this already years ago Oracle: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb13gen.htm#i1027254 MS/SQL http://msdn.microsoft.com/en-us/library/aa286527.aspx DB2 http://www.ibm.com/developerworks/db2/library/techarticle/dm-0603saracco2/ But if you think SQL is incomprehensible, take a gander at what you have to do with these (above) implementations to get XML out .... Give me pure XQuery any day :) David A. Lee dlee@calldei.com http://www.calldei.com http://www.xmlsh.org 812-482-5224 Brian Maso wrote: > I had heard that future versions of the SQL standard are to bring XML > in to SQL -- basically make non-validated XML nodes as valid column > types and add intra-XML indexing. This was quite a while ago that I > heard it, but it was delivered by a reputable source. Seems like these > two language have huge overlap and can eventually be replaced by a > single query language. > > (Besides, SQL is so incomprehensible for even modestly-sized queries, > it would be great to replace it with something a bit more > understandable such as XQuery; not to mention the legions of vendor > specifics and incompatibilities...) > > Best regards, > Brian Maso > > On Mon, Jun 15, 2009 at 12:44 PM, Adam Retter > > wrote: > > >> 2)Is there (or will there be) possibility to make a > >> database-connection just with XQuery ? So that I can give host, > port, > >> login, passwort, etc and XQuery is able to connect to the > database ? > >> Am I correct, that at the moment it is only possible if you use > XQuery > >> executed from java (or an other programming language, that is > able to > >> create a connection) ? > > > > This depnds on the XQuery engine you use. E.g. for my own Web site, > > the Java-based XQuery engine I use is Qizx, and it does support a > > way to connect to a erlational database (I'm assuming this is > > what you are asking here?), but the zero-dollar version of that > > product is limited to a database of only one gigabyte of XML. > > Another option, eXist, provides a XQuery Extenesion module for SQL > connections and queries. I would like to see the concepts from there > eventually it into the EXPath/EXQuery efforts > > o > > -- > Adam Retter > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk > > > ------------------------------------------------------------------------ > > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://x-query.com/pipermail/talk/attachments/20090615/8036a83a/attachment.htm From mrys at microsoft.com Mon Jun 15 15:40:03 2009 From: mrys at microsoft.com (Michael Rys) Date: Mon Jun 15 14:36:38 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: <4A36BB74.2030109@calldei.com> References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> <20090611151625.GF16325@w3.org> <4A36BB74.2030109@calldei.com> Message-ID: <390310B3D9102C47B28642DB3CB9BE732515529ADD@NA-EXMSG-C115.redmond.corp.microsoft.com> Look at part 14 of the ISO/ANSI SQL Spec for the standardized support for XML and XQuery in SQL. Best regards Michael PS: If your goal is to get XML out from relational data, I would recommend looking at http://msdn.microsoft.com/en-us/library/ms345137.aspx#forxml2k5_topic6 for MS/SQL. From: talk-bounces@x-query.com [mailto:talk-bounces@x-query.com] On Behalf Of David A. Lee Sent: Monday, June 15, 2009 2:22 PM To: Brian Maso Cc: talk@xquery.com Subject: Re: [xquery-talk] XQuery and databases - XQuery 2.0 Not sure about a "standard" but the top DB vendors have done this already years ago Oracle: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb13gen.htm#i1027254 MS/SQL http://msdn.microsoft.com/en-us/library/aa286527.aspx DB2 http://www.ibm.com/developerworks/db2/library/techarticle/dm-0603saracco2/ But if you think SQL is incomprehensible, take a gander at what you have to do with these (above) implementations to get XML out .... Give me pure XQuery any day :) David A. Lee dlee@calldei.com http://www.calldei.com http://www.xmlsh.org 812-482-5224 Brian Maso wrote: I had heard that future versions of the SQL standard are to bring XML in to SQL -- basically make non-validated XML nodes as valid column types and add intra-XML indexing. This was quite a while ago that I heard it, but it was delivered by a reputable source. Seems like these two language have huge overlap and can eventually be replaced by a single query language. (Besides, SQL is so incomprehensible for even modestly-sized queries, it would be great to replace it with something a bit more understandable such as XQuery; not to mention the legions of vendor specifics and incompatibilities...) Best regards, Brian Maso On Mon, Jun 15, 2009 at 12:44 PM, Adam Retter > wrote: >> 2)Is there (or will there be) possibility to make a >> database-connection just with XQuery ? So that I can give host, port, >> login, passwort, etc and XQuery is able to connect to the database ? >> Am I correct, that at the moment it is only possible if you use XQuery >> executed from java (or an other programming language, that is able to >> create a connection) ? > > This depnds on the XQuery engine you use. E.g. for my own Web site, > the Java-based XQuery engine I use is Qizx, and it does support a > way to connect to a erlational database (I'm assuming this is > what you are asking here?), but the zero-dollar version of that > product is limited to a database of only one gigabyte of XML. Another option, eXist, provides a XQuery Extenesion module for SQL connections and queries. I would like to see the concepts from there eventually it into the EXPath/EXQuery efforts o -- Adam Retter _______________________________________________ talk@x-query.com http://x-query.com/mailman/listinfo/talk ________________________________ _______________________________________________ talk@x-query.com http://x-query.com/mailman/listinfo/talk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://x-query.com/pipermail/talk/attachments/20090615/746b31cd/attachment-0001.htm From brian at blumenfeld-maso.com Mon Jun 15 15:45:16 2009 From: brian at blumenfeld-maso.com (Brian Maso) Date: Mon Jun 15 14:37:29 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> <20090611151625.GF16325@w3.org> Message-ID: Yea, I knew about SQL/XML. I was thinking more about intra-column indexing -- so if I have an XML column I could write an efficient WHERE clause on the value of a specific descendant element value. I don't believe SQL/XML defines a way to ddefine indexes using, say, an XPath expression. Best regards, Brian Maso On Mon, Jun 15, 2009 at 2:19 PM, Pavel Minaev wrote: > On Mon, Jun 15, 2009 at 2:10 PM, Brian Maso > wrote: > > I had heard that future versions of the SQL standard are to bring XML in > to > > SQL -- basically make non-validated XML nodes as valid column types and > add > > intra-XML indexing. > > It's called SQL/XML, and it has been there since SQL-2003: > > http://en.wikipedia.org/wiki/SQL/XML > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://x-query.com/pipermail/talk/attachments/20090615/b7ca0579/attachment.htm From dlee at calldei.com Mon Jun 15 20:50:53 2009 From: dlee at calldei.com (David A. Lee) Date: Mon Jun 15 16:43:48 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> <20090611151625.GF16325@w3.org> Message-ID: <4A36DE5D.1080503@calldei.com> I believe oracle's implementation lets you do that, but its not "standard". David A. Lee dlee@calldei.com http://www.calldei.com http://www.xmlsh.org 812-482-5224 Brian Maso wrote: > Yea, I knew about SQL/XML. I was thinking more about intra-column > indexing -- so if I have an XML column I could write an efficient > WHERE clause on the value of a specific descendant element value. I > don't believe SQL/XML defines a way to ddefine indexes using, say, an > XPath expression. > > Best regards, > Brian Maso > > On Mon, Jun 15, 2009 at 2:19 PM, Pavel Minaev > wrote: > > On Mon, Jun 15, 2009 at 2:10 PM, Brian > Maso> > wrote: > > I had heard that future versions of the SQL standard are to > bring XML in to > > SQL -- basically make non-validated XML nodes as valid column > types and add > > intra-XML indexing. > > It's called SQL/XML, and it has been there since SQL-2003: > > http://en.wikipedia.org/wiki/SQL/XML > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk > > > ------------------------------------------------------------------------ > > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://x-query.com/pipermail/talk/attachments/20090615/38621bc8/attachment.htm From mrys at microsoft.com Mon Jun 15 19:43:22 2009 From: mrys at microsoft.com (Michael Rys) Date: Mon Jun 15 18:35:59 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: <4A36DE5D.1080503@calldei.com> References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> <20090611151625.GF16325@w3.org> <4A36DE5D.1080503@calldei.com> Message-ID: <390310B3D9102C47B28642DB3CB9BE732515529C10@NA-EXMSG-C115.redmond.corp.microsoft.com> The SQL standard never defines indexing strategies. Not for relational data nor for XML. All vendors provide indexing mechanisms. Michael From: talk-bounces@x-query.com [mailto:talk-bounces@x-query.com] On Behalf Of David A. Lee Sent: Monday, June 15, 2009 4:51 PM To: Brian Maso Cc: talk@x-query.com Subject: Re: [xquery-talk] XQuery and databases - XQuery 2.0 I believe oracle's implementation lets you do that, but its not "standard". David A. Lee dlee@calldei.com http://www.calldei.com http://www.xmlsh.org 812-482-5224 Brian Maso wrote: Yea, I knew about SQL/XML. I was thinking more about intra-column indexing -- so if I have an XML column I could write an efficient WHERE clause on the value of a specific descendant element value. I don't believe SQL/XML defines a way to ddefine indexes using, say, an XPath expression. Best regards, Brian Maso On Mon, Jun 15, 2009 at 2:19 PM, Pavel Minaev > wrote: On Mon, Jun 15, 2009 at 2:10 PM, Brian Maso> wrote: > I had heard that future versions of the SQL standard are to bring XML in to > SQL -- basically make non-validated XML nodes as valid column types and add > intra-XML indexing. It's called SQL/XML, and it has been there since SQL-2003: http://en.wikipedia.org/wiki/SQL/XML _______________________________________________ talk@x-query.com http://x-query.com/mailman/listinfo/talk ________________________________ _______________________________________________ talk@x-query.com http://x-query.com/mailman/listinfo/talk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://x-query.com/pipermail/talk/attachments/20090615/545d1bd5/attachment.htm From rpbourret at rpbourret.com Mon Jun 15 22:13:36 2009 From: rpbourret at rpbourret.com (Ronald Bourret) Date: Mon Jun 15 21:06:31 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: <4A36BB74.2030109@calldei.com> References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> <20090611151625.GF16325@w3.org> <4A36BB74.2030109@calldei.com> Message-ID: <4A371BF0.7040905@rpbourret.com> To clarify: 1) SQL/XML defines an XML data type, a syntax for constructing XML values from relational data, and functions for executing XQuery queries against XML values, creating tables from XML values/sequences, etc. It's worth noting that XML values are the same as XQuery sequences -- that is, not necessarily well-formed. 2) Oracle and DB2 implement SQL/XML. SQL Server implements the XML data type from SQL/XML, but uses a non-standard syntax for creating XML values from relational data. 3) Lots of things are non-standard. As Michael mentioned, there is no standard way to define an index on an XML value. Also not standard are things like whether you can directly execute an XQuery statement or need to embed it in an SQL statement; how to query relational values from within an XQuery statement; how XML results are retrieved from a result set (JDBC 4.0 defines this); and so on. 4) Different databases implement the XML data type differently, and these implementation choices can lead to large differences in performance. (Performance is obviously also query- and index-dependent.) -- Ron David A. Lee wrote: > Not sure about a "standard" but the top DB vendors have done this > already years ago > > Oracle: > http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb13gen.htm#i1027254 > > > MS/SQL > http://msdn.microsoft.com/en-us/library/aa286527.aspx > > DB2 > http://www.ibm.com/developerworks/db2/library/techarticle/dm-0603saracco2/ > > But if you think SQL is incomprehensible, take a gander at what you have > to do with these (above) implementations to get XML out .... > > Give me pure XQuery any day :) From brian at blumenfeld-maso.com Mon Jun 15 22:28:35 2009 From: brian at blumenfeld-maso.com (Brian Maso) Date: Mon Jun 15 21:21:06 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: <4A371BF0.7040905@rpbourret.com> References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> <20090611151625.GF16325@w3.org> <4A36BB74.2030109@calldei.com> <4A371BF0.7040905@rpbourret.com> Message-ID: (Ignoring the performance issue mentioned below altogether, since that is an implementation difference only) Wouldn't it be great to use XQuery to access or modify relational data AND XML data instead of SQL/XML? I'm sure there are a few SQL/XML enthusiasts out there, but XQuery just makes so much more sense in my brain that equivalent SQL. Having no influence other than my persuasive voice, I really wish someone would boil the SQL ocean and magically switch the world to a more XQuery-like language... Brian Maso On Mon, Jun 15, 2009 at 9:13 PM, Ronald Bourret wrote: > To clarify: > > 1) SQL/XML defines an XML data type, a syntax for constructing XML values > from relational data, and functions for executing XQuery queries against XML > values, creating tables from XML values/sequences, etc. It's worth noting > that XML values are the same as XQuery sequences -- that is, not necessarily > well-formed. > > 2) Oracle and DB2 implement SQL/XML. SQL Server implements the XML data > type from SQL/XML, but uses a non-standard syntax for creating XML values > from relational data. > > 3) Lots of things are non-standard. As Michael mentioned, there is no > standard way to define an index on an XML value. Also not standard are > things like whether you can directly execute an XQuery statement or need to > embed it in an SQL statement; how to query relational values from within an > XQuery statement; how XML results are retrieved from a result set (JDBC 4.0 > defines this); and so on. > > 4) Different databases implement the XML data type differently, and these > implementation choices can lead to large differences in performance. > (Performance is obviously also query- and index-dependent.) > > -- Ron > > David A. Lee wrote: > >> Not sure about a "standard" but the top DB vendors have done this already >> years ago >> >> Oracle: >> >> http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb13gen.htm#i1027254 >> >> MS/SQL >> http://msdn.microsoft.com/en-us/library/aa286527.aspx >> >> DB2 >> http://www.ibm.com/developerworks/db2/library/techarticle/dm-0603saracco2/ >> >> But if you think SQL is incomprehensible, take a gander at what you have >> to do with these (above) implementations to get XML out .... >> >> Give me pure XQuery any day :) >> > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://x-query.com/pipermail/talk/attachments/20090615/bde22472/attachment-0001.htm From int19h at gmail.com Mon Jun 15 22:36:16 2009 From: int19h at gmail.com (Pavel Minaev) Date: Mon Jun 15 21:29:06 2009 Subject: [xquery-talk] XQuery and databases - XQuery 2.0 In-Reply-To: References: <4A263FE1.4040903@as-guides.com> <4A2670E2.8040006@as-guides.com> <20090608150840.308680@gmx.net> <20090611151625.GF16325@w3.org> <4A36BB74.2030109@calldei.com> <4A371BF0.7040905@rpbourret.com> Message-ID: On Mon, Jun 15, 2009 at 9:28 PM, Brian Maso wrote: > Wouldn't it be great to use XQuery to access or modify relational data AND > XML data instead of SQL/XML? I'm sure there are a few SQL/XML enthusiasts > out there, but XQuery just makes so much more sense in my brain that > equivalent SQL. Having no influence other than my persuasive voice, I really > wish someone would boil the SQL ocean and magically switch the world to a > more XQuery-like language... Isn't it precisely what DataDirect XQuery is all about? (http://www.datadirect.com/products/xquery/index.ssp) From gary.m.lewis at gmail.com Wed Jun 17 11:13:51 2009 From: gary.m.lewis at gmail.com (Gary Lewis) Date: Wed Jun 17 07:13:58 2009 Subject: [xquery-talk] xquery & web server in browser Message-ID: <1be6002b0906170713h258f22efy2b274baa04e71777@mail.gmail.com> I'm a new member of the talk list and am uncertain that my question is appropriate. Please ignore if it is off topic. Can anyone comment on the possibility that xquery could be used as a data integration/mashup tool running in a browser that included a web server? There's been quite a bit of excitement the past couple days about the Opera Unite announcement of its "web server in a web browser" concept. Is it possible that xquery, as a query/integration/transformation tool, might someday be a plugin to a browser (eg, Chrome; Chrome/Wave)? I'm asking out of ignorance more than anything. The dots seem to be there for the connecting, but I guess that's what I'm asking ... are the dots there, are they likely to be connected, or is it just wishful thinking? Just so you have some orientation as to where this question is coming from. I'm basically a data user ... someone who uses tools like SQL and XQuery and R to do analysis with data. In the course of doing this, I've stretched into the IT side of things and designed enterprise data warehouses etc. So my interest in xquery-in-a-web-server-browser is so I can do cool things with data. I'm not interested in actually creating an xquery plugin that would make this possible. I wouldn't even know how to start. Thanks. Gary From james.fuller.2007 at gmail.com Wed Jun 17 17:25:41 2009 From: james.fuller.2007 at gmail.com (James Fuller) Date: Wed Jun 17 07:25:45 2009 Subject: [xquery-talk] xquery & web server in browser In-Reply-To: <1be6002b0906170713h258f22efy2b274baa04e71777@mail.gmail.com> References: <1be6002b0906170713h258f22efy2b274baa04e71777@mail.gmail.com> Message-ID: Hello Gary, On Wed, Jun 17, 2009 at 4:13 PM, Gary Lewis wrote: > I'm a new member of the talk list and am uncertain that my question is > appropriate. Please ignore if it is off topic. welcome, your question is fine. > Can anyone comment on the possibility that xquery could be used as a > data integration/mashup tool running in a browser that included a web > server? There's been quite a bit of excitement the past couple days > about the Opera Unite announcement of its "web server in a web > browser" concept. Is it possible that xquery, as a > query/integration/transformation tool, might someday be a plugin to a > browser (eg, Chrome; Chrome/Wave)? sure why not ... XSLT support in the browser was/is a plugin and sets a precedent for this kind of thing > I'm asking out of ignorance more than anything. The dots seem to be > there for the connecting, but I guess that's what I'm asking ... are > the dots there, are they likely to be connected, or is it just wishful > ?thinking? ah yes, the dots ... let me just say that finding and connecting them is the always the easy part. XQuery in the browser would be great, anything that reduces the hegemony that is javascript ... which reminds me, I know it sounds strange but perhaps browsers will turn into *the* personal 'database' for the individual someday and it will be natural to have something like xquery to help process the data it contains. Jim Fuller From michael.reiche at oracle.com Wed Jun 17 08:31:52 2009 From: michael.reiche at oracle.com (michael.reiche@oracle.com) Date: Wed Jun 17 07:32:02 2009 Subject: [xquery-talk] xquery & web server in browser Message-ID: <6f112a48-f177-495b-ae22-07ed1183d10a@default> http://www.zorba-xquery.com/index.php/xquery-in-the-browser-a-user-testimonial/ - Mike ----- Original Message ----- From: "Gary M Lewis" To: "Talk" Sent: Wednesday, June 17, 2009 7:25:52 AM GMT -08:00 US/Canada Pacific Subject: [xquery-talk] xquery & web server in browser I'm a new member of the talk list and am uncertain that my question is appropriate. Please ignore if it is off topic. Can anyone comment on the possibility that xquery could be used as a data integration/mashup tool running in a browser that included a web server? There's been quite a bit of excitement the past couple days about the Opera Unite announcement of its "web server in a web browser" concept. Is it possible that xquery, as a query/integration/transformation tool, might someday be a plugin to a browser (eg, Chrome; Chrome/Wave)? I'm asking out of ignorance more than anything. The dots seem to be there for the connecting, but I guess that's what I'm asking ... are the dots there, are they likely to be connected, or is it just wishful thinking? Just so you have some orientation as to where this question is coming from. I'm basically a data user ... someone who uses tools like SQL and XQuery and R to do analysis with data. In the course of doing this, I've stretched into the IT side of things and designed enterprise data warehouses etc. So my interest in xquery-in-a-web-server-browser is so I can do cool things with data. I'm not interested in actually creating an xquery plugin that would make this possible. I wouldn't even know how to start. Thanks. Gary _______________________________________________ talk@x-query.com http://x-query.com/mailman/listinfo/talk From adam.retter at googlemail.com Wed Jun 17 16:32:56 2009 From: adam.retter at googlemail.com (Adam Retter) Date: Wed Jun 17 07:32:58 2009 Subject: [xquery-talk] xquery & web server in browser In-Reply-To: <1be6002b0906170713h258f22efy2b274baa04e71777@mail.gmail.com> References: <1be6002b0906170713h258f22efy2b274baa04e71777@mail.gmail.com> Message-ID: This may be of interest - http://www.zorba-xquery.com/index.php/xquery-in-the-browser-xqib/ 2009/6/17 Gary Lewis : > I'm a new member of the talk list and am uncertain that my question is > appropriate. Please ignore if it is off topic. > > Can anyone comment on the possibility that xquery could be used as a > data integration/mashup tool running in a browser that included a web > server? There's been quite a bit of excitement the past couple days > about the Opera Unite announcement of its "web server in a web > browser" concept. Is it possible that xquery, as a > query/integration/transformation tool, might someday be a plugin to a > browser (eg, Chrome; Chrome/Wave)? > > I'm asking out of ignorance more than anything. The dots seem to be > there for the connecting, but I guess that's what I'm asking ... are > the dots there, are they likely to be connected, or is it just wishful > ?thinking? > > ?Just so you have some orientation as to where this question is coming > from. I'm basically a data user ... someone who uses tools like SQL > and XQuery and R to do analysis with data. In the course of doing > this, I've stretched into the IT side of things and designed > enterprise data warehouses etc. So my interest in > xquery-in-a-web-server-browser is so I can do cool things with data. > I'm not interested in actually creating an xquery plugin that would > make this possible. I wouldn't even know how to start. > > Thanks. > > Gary > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk > -- Adam Retter sip:adam.retter@ekiga.net http://www.adamretter.org.uk From mike at saxonica.com Wed Jun 17 16:42:02 2009 From: mike at saxonica.com (Michael Kay) Date: Wed Jun 17 07:42:12 2009 Subject: [xquery-talk] xquery & web server in browser In-Reply-To: <1be6002b0906170713h258f22efy2b274baa04e71777@mail.gmail.com> References: <1be6002b0906170713h258f22efy2b274baa04e71777@mail.gmail.com> Message-ID: <2DCF3001DBFB4F5A84E591E9A3D44264@Sealion> There are a lot of people keen on the idea of xquery in the web browser. Unfortunately, though, I think there's a bit of a conflict. A lot of the benefits of the web architecture come from the fact that the browser is small, ubiqitous, and predictable. The more goodies you put in it, the less that remains true. And the less it is true, the harder it is to write applications that will run anywhere and talk to anything. This is why, after ten years, writing applications that rely on XSLT-in-the-browser can still be problematic, as recently discussed on the xml-dev list. Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay > -----Original Message----- > From: talk-bounces@x-query.com > [mailto:talk-bounces@x-query.com] On Behalf Of Gary Lewis > Sent: 17 June 2009 15:14 > To: talk@x-query.com > Subject: [xquery-talk] xquery & web server in browser > > I'm a new member of the talk list and am uncertain that my > question is appropriate. Please ignore if it is off topic. > > Can anyone comment on the possibility that xquery could be > used as a data integration/mashup tool running in a browser > that included a web server? There's been quite a bit of > excitement the past couple days about the Opera Unite > announcement of its "web server in a web browser" concept. Is > it possible that xquery, as a > query/integration/transformation tool, might someday be a > plugin to a browser (eg, Chrome; Chrome/Wave)? > > I'm asking out of ignorance more than anything. The dots seem > to be there for the connecting, but I guess that's what I'm > asking ... are the dots there, are they likely to be > connected, or is it just wishful thinking? > > Just so you have some orientation as to where this question > is coming from. I'm basically a data user ... someone who > uses tools like SQL and XQuery and R to do analysis with > data. In the course of doing this, I've stretched into the IT > side of things and designed enterprise data warehouses etc. > So my interest in xquery-in-a-web-server-browser is so I can > do cool things with data. > I'm not interested in actually creating an xquery plugin that > would make this possible. I wouldn't even know how to start. > > Thanks. > > Gary > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk From vyacheslav.sedov at gmail.com Wed Jun 17 20:21:08 2009 From: vyacheslav.sedov at gmail.com (Vyacheslav Sedov) Date: Wed Jun 17 08:21:12 2009 Subject: [xquery-talk] xquery & web server in browser In-Reply-To: <2DCF3001DBFB4F5A84E591E9A3D44264@Sealion> References: <1be6002b0906170713h258f22efy2b274baa04e71777@mail.gmail.com> <2DCF3001DBFB4F5A84E591E9A3D44264@Sealion> Message-ID: <7ab7cbac0906170821va2f478dhd07c051d741c9c9e@mail.gmail.com> http://xqib.org On Wed, Jun 17, 2009 at 6:42 PM, Michael Kay wrote: > > There are a lot of people keen on the idea of xquery in the web browser. > > Unfortunately, though, I think there's a bit of a conflict. A lot of the > benefits of the web architecture come from the fact that the browser is > small, ubiqitous, and predictable. The more goodies you put in it, the less > that remains true. And the less it is true, the harder it is to write > applications that will run anywhere and talk to anything. This is why, after > ten years, writing applications that rely on XSLT-in-the-browser can still > be problematic, as recently discussed on the xml-dev list. > > Regards, > > Michael Kay > http://www.saxonica.com/ > http://twitter.com/michaelhkay > > > >> -----Original Message----- >> From: talk-bounces@x-query.com >> [mailto:talk-bounces@x-query.com] On Behalf Of Gary Lewis >> Sent: 17 June 2009 15:14 >> To: talk@x-query.com >> Subject: [xquery-talk] xquery & web server in browser >> >> I'm a new member of the talk list and am uncertain that my >> question is appropriate. Please ignore if it is off topic. >> >> Can anyone comment on the possibility that xquery could be >> used as a data integration/mashup tool running in a browser >> that included a web server? There's been quite a bit of >> excitement the past couple days about the Opera Unite >> announcement of its "web server in a web browser" concept. Is >> it possible that xquery, as a >> query/integration/transformation tool, might someday be a >> plugin to a browser (eg, Chrome; Chrome/Wave)? >> >> I'm asking out of ignorance more than anything. The dots seem >> to be there for the connecting, but I guess that's what I'm >> asking ... are the dots there, are they likely to be >> connected, or is it just wishful ?thinking? >> >> ?Just so you have some orientation as to where this question >> is coming from. I'm basically a data user ... someone who >> uses tools like SQL and XQuery and R to do analysis with >> data. In the course of doing this, I've stretched into the IT >> side of things and designed enterprise data warehouses etc. >> So my interest in xquery-in-a-web-server-browser is so I can >> do cool things with data. >> I'm not interested in actually creating an xquery plugin that >> would make this possible. I wouldn't even know how to start. >> >> Thanks. >> >> Gary >> _______________________________________________ >> talk@x-query.com >> http://x-query.com/mailman/listinfo/talk > > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk > From mpilman at student.ethz.ch Wed Jun 17 20:26:32 2009 From: mpilman at student.ethz.ch (Markus Pilman) Date: Wed Jun 17 12:52:44 2009 Subject: [xquery-talk] xquery & web server in browser In-Reply-To: <2DCF3001DBFB4F5A84E591E9A3D44264@Sealion> References: <1be6002b0906170713h258f22efy2b274baa04e71777@mail.gmail.com> <2DCF3001DBFB4F5A84E591E9A3D44264@Sealion> Message-ID: <60f8b5ce0906171026g695d01bcl1b5fe6d5f6efd998@mail.gmail.com> Hi Gary, I surely see your point about XQuery in the browser - as stated before by others: check out our project at http://www.xqib.org/ At the moment, the release works only with Internet Explorer - but the next release (which is nearly finished - we hope to release it this month) will also run with Firefox and will be much faster. Feel free to contact me directly, if you are interested in it. But I wanted to ask you, where exactly you see the usecases of having a web server in the browser? To be honest: the last thing I want running in my browser is a server (as Michael stated because of complexity, but also because of security). Also, in most companies (and also on most routers), all ports are normally closed, which makes a webserver useless. The only benefit I can see, is that this way it would be easy to implement some kind of RPC from the server to the client. But in my oppinion, this would be a too small advantage to legitimate a webserver. Regards, Markus On Wed, Jun 17, 2009 at 4:42 PM, Michael Kay wrote: > > There are a lot of people keen on the idea of xquery in the web browser. > > Unfortunately, though, I think there's a bit of a conflict. A lot of the > benefits of the web architecture come from the fact that the browser is > small, ubiqitous, and predictable. The more goodies you put in it, the less > that remains true. And the less it is true, the harder it is to write > applications that will run anywhere and talk to anything. This is why, after > ten years, writing applications that rely on XSLT-in-the-browser can still > be problematic, as recently discussed on the xml-dev list. > > Regards, > > Michael Kay > http://www.saxonica.com/ > http://twitter.com/michaelhkay > > > >> -----Original Message----- >> From: talk-bounces@x-query.com >> [mailto:talk-bounces@x-query.com] On Behalf Of Gary Lewis >> Sent: 17 June 2009 15:14 >> To: talk@x-query.com >> Subject: [xquery-talk] xquery & web server in browser >> >> I'm a new member of the talk list and am uncertain that my >> question is appropriate. Please ignore if it is off topic. >> >> Can anyone comment on the possibility that xquery could be >> used as a data integration/mashup tool running in a browser >> that included a web server? There's been quite a bit of >> excitement the past couple days about the Opera Unite >> announcement of its "web server in a web browser" concept. Is >> it possible that xquery, as a >> query/integration/transformation tool, might someday be a >> plugin to a browser (eg, Chrome; Chrome/Wave)? >> >> I'm asking out of ignorance more than anything. The dots seem >> to be there for the connecting, but I guess that's what I'm >> asking ... are the dots there, are they likely to be >> connected, or is it just wishful ?thinking? >> >> ?Just so you have some orientation as to where this question >> is coming from. I'm basically a data user ... someone who >> uses tools like SQL and XQuery and R to do analysis with >> data. In the course of doing this, I've stretched into the IT >> side of things and designed enterprise data warehouses etc. >> So my interest in xquery-in-a-web-server-browser is so I can >> do cool things with data. >> I'm not interested in actually creating an xquery plugin that >> would make this possible. I wouldn't even know how to start. >> >> Thanks. >> >> Gary >> _______________________________________________ >> talk@x-query.com >> http://x-query.com/mailman/listinfo/talk > > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk > From int19h at gmail.com Wed Jun 17 11:25:41 2009 From: int19h at gmail.com (Pavel Minaev) Date: Wed Jun 17 13:15:27 2009 Subject: [xquery-talk] xquery & web server in browser In-Reply-To: <2DCF3001DBFB4F5A84E591E9A3D44264@Sealion> References: <1be6002b0906170713h258f22efy2b274baa04e71777@mail.gmail.com> <2DCF3001DBFB4F5A84E591E9A3D44264@Sealion> Message-ID: On Wed, Jun 17, 2009 at 7:42 AM, Michael Kay wrote: > There are a lot of people keen on the idea of xquery in the web browser. > > Unfortunately, though, I think there's a bit of a conflict. A lot of the > benefits of the web architecture come from the fact that the browser is > small, ubiqitous, and predictable. Well, one way to achieve the same result is to build on that small and predictable foundation. This rules out plugins, but there's other possibility - that of "compiling" XQuery to cross-browser JavaScript. We already have GWT that does a similar thing, so the general concept is proven, and I don't see why doing the same to XQuery would be any harder. The main problem that I see there is that browser XML manipulation APIs aren't standardized yet, but this is going to change with HTML5 (and meanwhile there are already "good enough" ways to work around this by detecting and using the mush-mash of the existing browser-specific APIs). From gary.m.lewis at gmail.com Wed Jun 17 12:30:34 2009 From: gary.m.lewis at gmail.com (Gary Lewis) Date: Wed Jun 17 13:44:30 2009 Subject: [xquery-talk] xquery & web server in browser Message-ID: <1be6002b0906170830q5453ded0t573fd92c8f9b76c1@mail.gmail.com> A couple people have mentioned zorba. I've used and quite like zorba xquery; even wrote a blog post about it and included some analysis of Federal Reserve Economic Data time series accessed via an API with zorba. I'm also familiar with the zorba XQIB project but do not use a Windows OS so have not played with it yet. But my impression (probably wrong) is that XQIB is cast mostly as an alternative to JavaScript, using scripting extensions to XQuery. If true (please let me know otherwise), I'm not so much interested in this aspect. As I said earlier, I'm mostly interested in a data integration & transformation tool that sits in a browser and gets used as a precursor to analysis & graphics tools. Thanks to all who've responded. It's been an helpful orientation, since my question is really a stretch into the unknown for me. Gary From mlu at as-guides.com Wed Jun 17 19:24:46 2009 From: mlu at as-guides.com (Michael Ludwig) Date: Wed Jun 17 13:53:57 2009 Subject: [xquery-talk] xquery & web server in browser In-Reply-To: References: <1be6002b0906170713h258f22efy2b274baa04e71777@mail.gmail.com> Message-ID: <4A3918CE.9020301@as-guides.com> Adam Retter schrieb: > This may be of interest - > http://www.zorba-xquery.com/index.php/xquery-in-the-browser-xqib/ I found this is a bad starting point, because of all the errors. (1) "text/xqueryp" should probably be "text/xquery" (2) XHTML namespace not declared in XQuery (not necessary?) (3) H1 should be h1 - but then apparently it shouldn't? Bizarrely, //H1 works while //h1 doesn't. (4) typographical quotes lead to non-recognition of XQuery