Re: [MonetDB-users] ERROR = !ERROR: add-doc((null)): document name must end in .xml
Hi,
MonetDB/XQuery has an integrated HTTP server that treats GET (and PUT,DELETE) requests for URLs that end in .xml or .XML in a special way.
Such files are not served from the http file directory (datadir/xrpc/) but are taken to be requests for XML documents stored in MonetDB/XQuery.
Since the moment this feature was added, indeed the restriction has been imposed that all documents in the database should have a name ending in .xml This was done for consistency: now all documents X in the database can be retrieved through HTTP (i.e. http://yourserver:50001/X)
If the restriction is not imposed, the HTTP access method will not work anymore for all documents.
Peter
---- Stefan Manegold
Peter,
could you please have a look at this and comment?
Thank you very much in advance!
Stefan
On Sat, Mar 24, 2007 at 02:02:27PM +0100, Stefan Manegold wrote:
Two tests fail (apparently unnoticed for some time) due to the same problem; cf.
http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103... http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103...
Stefan
On Fri, Mar 23, 2007 at 09:17:59AM +0100, Djoerd Hiemstra wrote:
Dear Martin,
You are right, sorry, here is the English translation: Recently it is no longer possible to add logical names for XML documents that do not end with .xml, for instance
let $site := "http://www.sigir2007.org/" let $pages := ("index.html", "cfp.html", "cfw.html") for $page in $pages return pf:add-doc(concat($site, $page), $page, "MySIGIR")
gives: ERROR = !ERROR: add-doc((null)): document name must end in .xml (3 such errors)!
In the previous version this was possible, and I use it for instance in a demo for one of our industrial partners in the MultimediaN project. Can this error please be removed? XML documents can have many extensions, for instance.rss, .xhtml, .svg, etc. I might want to add to the database: sigir.html (web page in xhtml) sigir.xml (source of the page) sigir.xsd (schema of the page) sigir.rss (RSS feed of the page) sigir.svg (page as a nice graphic) sigir.mml (mathematical formula of the page) etc, etc.,
I think the error is too restrictive.
Best regards, Djoerd.
Martin Kersten wrote:
Djoerd,
Please, realize that this list is read worldwide. English is the preferred language. It is also readable for 100 people in Beijing looking at this mailing list.
regards, Martin
Djoerd Hiemstra wrote:
Ha die MonetDBs,
Ik zie dat het niet meer langer toegestaan is om logische namen van documenten in de database te hebben die niet op .xml eindigen, bijvoorbeeld:
let $site := "http://www.sigir2007.org/" let $pages := ("index.html", "cfp.html", "cfw.html") for $page in $pages return pf:add-doc(concat($site, $page), $page, "MySIGIR")
geeft:
ERROR = !ERROR: add-doc((null)): document name must end in .xml (3 such errors)!
Dit mocht eerder wel. Kan dit teruggedraaid worden? XML documenten kunnen veel extensies hebben, bijvoorbeeld .rss, .xhtml, .svg, etc. Ik wil misschien wel toevoegen: sigir.html (webpagina in xhtml) sigir.xml (source van webpagina) sigir.rss (RSS feed voor pagina) sigir.svg (pagina als mooi plaatje) sigir.mml (wiskundige formulering voor pagina) enz., enz.
Ik vind deze foutmelding te restrictief.
Groetjes, Djoerd.
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |
Hi all, while I appreciate the http access functionality for database documents, I do feel that this (rather strict) naming convention is unfortunate. There are a lot of XML files out there that use non-'.xml' endings ('.xhtml' and '.xsl' come to mind, immediately). Cheers, --Torsten On 3/24/07, p.a.boncz@chello.nl
Hi,
MonetDB/XQuery has an integrated HTTP server that treats GET (and PUT,DELETE) requests for URLs that end in .xml or .XML in a special way.
Such files are not served from the http file directory (datadir/xrpc/) but are taken to be requests for XML documents stored in MonetDB/XQuery.
Since the moment this feature was added, indeed the restriction has been imposed that all documents in the database should have a name ending in .xml This was done for consistency: now all documents X in the database can be retrieved through HTTP (i.e. http://yourserver:50001/X)
If the restriction is not imposed, the HTTP access method will not work anymore for all documents.
Peter
---- Stefan Manegold
schreef: Peter,
could you please have a look at this and comment?
Thank you very much in advance!
Stefan
On Sat, Mar 24, 2007 at 02:02:27PM +0100, Stefan Manegold wrote:
Two tests fail (apparently unnoticed for some time) due to the same problem; cf.
http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103... http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103...
Stefan
On Fri, Mar 23, 2007 at 09:17:59AM +0100, Djoerd Hiemstra wrote:
Dear Martin,
You are right, sorry, here is the English translation: Recently it is no longer possible to add logical names for XML documents that do not end with .xml, for instance
let $site := "http://www.sigir2007.org/" let $pages := ("index.html", "cfp.html", "cfw.html") for $page in $pages return pf:add-doc(concat($site, $page), $page, "MySIGIR")
gives: ERROR = !ERROR: add-doc((null)): document name must end in .xml (3 such errors)!
In the previous version this was possible, and I use it for instance in a demo for one of our industrial partners in the MultimediaN project. Can this error please be removed? XML documents can have many extensions, for instance.rss, .xhtml, .svg, etc. I might want to add to the database: sigir.html (web page in xhtml) sigir.xml (source of the page) sigir.xsd (schema of the page) sigir.rss (RSS feed of the page) sigir.svg (page as a nice graphic) sigir.mml (mathematical formula of the page) etc, etc.,
I think the error is too restrictive.
Best regards, Djoerd.
Martin Kersten wrote:
Djoerd,
Please, realize that this list is read worldwide. English is the preferred language. It is also readable for 100 people in Beijing looking at this mailing list.
regards, Martin
Djoerd Hiemstra wrote:
Ha die MonetDBs,
Ik zie dat het niet meer langer toegestaan is om logische namen van documenten in de database te hebben die niet op .xml eindigen, bijvoorbeeld:
let $site := "http://www.sigir2007.org/" let $pages := ("index.html", "cfp.html", "cfw.html") for $page in $pages return pf:add-doc(concat($site, $page), $page, "MySIGIR")
geeft:
ERROR = !ERROR: add-doc((null)): document name must end in .xml (3 such errors)!
Dit mocht eerder wel. Kan dit teruggedraaid worden? XML documenten kunnen veel extensies hebben, bijvoorbeeld .rss, .xhtml, .svg, etc. Ik wil misschien wel toevoegen: sigir.html (webpagina in xhtml) sigir.xml (source van webpagina) sigir.rss (RSS feed voor pagina) sigir.svg (pagina als mooi plaatje) sigir.mml (wiskundige formulering voor pagina) enz., enz.
Ik vind deze foutmelding te restrictief.
Groetjes, Djoerd.
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
-- | Torsten "Teggy" Grust | Torsten.Grust@gmail.com
Hello all, I agree that this restriction is not convenient for XML files with other extension than '.xml'. Maybe this restriction can be moved into the XRPC server, so that the XRPC server is in control of which file to serve, without any modification in the original add-doc function. Peter, what do you think? Regards, Jennie On Sat, Mar 24, 2007 at 04:02:22PM +0100, Torsten Grust wrote:
Hi all,
while I appreciate the http access functionality for database documents, I do feel that this (rather strict) naming convention is unfortunate. There are a lot of XML files out there that use non-'.xml' endings ('.xhtml' and '.xsl' come to mind, immediately).
Cheers, --Torsten
On 3/24/07, p.a.boncz@chello.nl
wrote: Hi,
MonetDB/XQuery has an integrated HTTP server that treats GET (and PUT,DELETE) requests for URLs that end in .xml or .XML in a special way.
Such files are not served from the http file directory (datadir/xrpc/) but are taken to be requests for XML documents stored in MonetDB/XQuery.
Since the moment this feature was added, indeed the restriction has been imposed that all documents in the database should have a name ending in .xml This was done for consistency: now all documents X in the database can be retrieved through HTTP (i.e. http://yourserver:50001/X)
If the restriction is not imposed, the HTTP access method will not work anymore for all documents.
Peter
---- Stefan Manegold
schreef: Peter,
could you please have a look at this and comment?
Thank you very much in advance!
Stefan
On Sat, Mar 24, 2007 at 02:02:27PM +0100, Stefan Manegold wrote:
Two tests fail (apparently unnoticed for some time) due to the same problem; cf.
http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103... http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103...
Stefan
On Fri, Mar 23, 2007 at 09:17:59AM +0100, Djoerd Hiemstra wrote:
Dear Martin,
You are right, sorry, here is the English translation: Recently it is no longer possible to add logical names for XML documents that do not end with .xml, for instance
let $site := "http://www.sigir2007.org/" let $pages := ("index.html", "cfp.html", "cfw.html") for $page in $pages return pf:add-doc(concat($site, $page), $page, "MySIGIR")
gives: ERROR = !ERROR: add-doc((null)): document name must end in .xml (3 such errors)!
In the previous version this was possible, and I use it for instance in a demo for one of our industrial partners in the MultimediaN project. Can this error please be removed? XML documents can have many extensions, for instance.rss, .xhtml, .svg, etc. I might want to add to the database: sigir.html (web page in xhtml) sigir.xml (source of the page) sigir.xsd (schema of the page) sigir.rss (RSS feed of the page) sigir.svg (page as a nice graphic) sigir.mml (mathematical formula of the page) etc, etc.,
I think the error is too restrictive.
Best regards, Djoerd.
Martin Kersten wrote:
Djoerd,
Please, realize that this list is read worldwide. English is the preferred language. It is also readable for 100 people in Beijing looking at this mailing list.
regards, Martin
Djoerd Hiemstra wrote: > Ha die MonetDBs, > > Ik zie dat het niet meer langer toegestaan is om logische namen van > documenten in de database te hebben die niet op .xml eindigen, > bijvoorbeeld: > > let $site := "http://www.sigir2007.org/" > let $pages := ("index.html", "cfp.html", "cfw.html") > for $page in $pages > return pf:add-doc(concat($site, $page), $page, "MySIGIR") > > geeft: > > ERROR = !ERROR: add-doc((null)): document name must end in .xml (3 > such errors)! > > Dit mocht eerder wel. Kan dit teruggedraaid worden? XML documenten > kunnen veel extensies hebben, bijvoorbeeld .rss, .xhtml, .svg, etc. Ik > wil misschien wel toevoegen: > sigir.html (webpagina in xhtml) > sigir.xml (source van webpagina) > sigir.rss (RSS feed voor pagina) > sigir.svg (pagina als mooi plaatje) > sigir.mml (wiskundige formulering voor pagina) > enz., enz. > > Ik vind deze foutmelding te restrictief. > > Groetjes, Djoerd. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > MonetDB-users mailing list > MonetDB-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/monetdb-users
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
-- | Torsten "Teggy" Grust | Torsten.Grust@gmail.com
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
participants (3)
-
p.a.boncz@chello.nl
-
Torsten Grust
-
Ying Zhang