Hello all,
So, I am using Basex to inspect a gargantuan archive of XML records split over thousands of .tar files (thanks Christian for the recent fix allowing me to create a DB from tar input!).
In some cases, I would like to know which file, in which tar archive, was the source for a given query result. Imagine that my DB consists of thousands of documents with root element <article>. Is there any way to return the file path of the document that was the source for result of this sort of simple query?
/article[@id = '123']
Thanks, Constantine
________________________________
Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The Netherlands, Registration No. 33156677, Registered in The Netherlands.
Hi Constantine,
the query /article[@id = '123']/base-uri() should return for each matching article the name of document in the database or name of file on disk.
cheers Arve
On 28 Feb 2014, at 11:35, Hondros, Constantine (ELS-AMS) C.Hondros@elsevier.com wrote:
Hello all,
So, I am using Basex to inspect a gargantuan archive of XML records split over thousands of .tar files (thanks Christian for the recent fix allowing me to create a DB from tar input!).
In some cases, I would like to know which file, in which tar archive, was the source for a given query result. Imagine that my DB consists of thousands of documents with root element <article>. Is there any way to return the file path of the document that was the source for result of this sort of simple query?
/article[@id = ‘123’]
Thanks, Constantine
Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The Netherlands, Registration No. 33156677, Registered in The Netherlands. _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Hi Constantine,
db:path(your node) could also do it.
Best regards Fabrice
-----Message d'origine----- De : basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] De la part de Arve Gengelbach Envoyé : vendredi 28 février 2014 11:52 À : Hondros, Constantine (ELS-AMS) Cc : basex-talk@mailman.uni-konstanz.de Objet : Re: [basex-talk] Return file source of a given node?
Hi Constantine,
the query /article[@id = '123']/base-uri() should return for each matching article the name of document in the database or name of file on disk.
cheers Arve
On 28 Feb 2014, at 11:35, Hondros, Constantine (ELS-AMS) C.Hondros@elsevier.com wrote:
Hello all,
So, I am using Basex to inspect a gargantuan archive of XML records split over thousands of .tar files (thanks Christian for the recent fix allowing me to create a DB from tar input!).
In some cases, I would like to know which file, in which tar archive, was the source for a given query result. Imagine that my DB consists of thousands of documents with root element <article>. Is there any way to return the file path of the document that was the source for result of this sort of simple query?
/article[@id = '123']
Thanks, Constantine
Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The Netherlands, Registration No. 33156677, Registered in The Netherlands. _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
_______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Thanks - I should have guessed it would be so easy with Basex.
Cheers, Constantine
-----Original Message----- From: Fabrice Etanchaud [mailto:fetanchaud@questel.com] Sent: 28 February 2014 11:53 To: Arve Gengelbach; Hondros, Constantine (ELS-AMS) Cc: basex-talk@mailman.uni-konstanz.de Subject: RE: [basex-talk] Return file source of a given node?
Hi Constantine,
db:path(your node) could also do it.
Best regards Fabrice
-----Message d'origine----- De : basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] De la part de Arve Gengelbach Envoyé : vendredi 28 février 2014 11:52 À : Hondros, Constantine (ELS-AMS) Cc : basex-talk@mailman.uni-konstanz.de Objet : Re: [basex-talk] Return file source of a given node?
Hi Constantine,
the query /article[@id = '123']/base-uri() should return for each matching article the name of document in the database or name of file on disk.
cheers Arve
On 28 Feb 2014, at 11:35, Hondros, Constantine (ELS-AMS) C.Hondros@elsevier.com wrote:
Hello all,
So, I am using Basex to inspect a gargantuan archive of XML records split over thousands of .tar files (thanks Christian for the recent fix allowing me to create a DB from tar input!).
In some cases, I would like to know which file, in which tar archive, was the source for a given query result. Imagine that my DB consists of thousands of documents with root element <article>. Is there any way to return the file path of the document that was the source for result of this sort of simple query?
/article[@id = '123']
Thanks, Constantine
Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The Netherlands, Registration No. 33156677, Registered in The Netherlands. _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
_______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
________________________________
Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The Netherlands, Registration No. 33156677, Registered in The Netherlands.
You are right, People do not know how easily they could process their XML data...
-----Message d'origine----- De : basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] De la part de Hondros, Constantine (ELS-AMS) Envoyé : vendredi 28 février 2014 12:34 À : basex-talk@mailman.uni-konstanz.de Objet : Re: [basex-talk] Return file source of a given node?
Thanks - I should have guessed it would be so easy with Basex.
Cheers, Constantine
-----Original Message----- From: Fabrice Etanchaud [mailto:fetanchaud@questel.com] Sent: 28 February 2014 11:53 To: Arve Gengelbach; Hondros, Constantine (ELS-AMS) Cc: basex-talk@mailman.uni-konstanz.de Subject: RE: [basex-talk] Return file source of a given node?
Hi Constantine,
db:path(your node) could also do it.
Best regards Fabrice
-----Message d'origine----- De : basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] De la part de Arve Gengelbach Envoyé : vendredi 28 février 2014 11:52 À : Hondros, Constantine (ELS-AMS) Cc : basex-talk@mailman.uni-konstanz.de Objet : Re: [basex-talk] Return file source of a given node?
Hi Constantine,
the query /article[@id = '123']/base-uri() should return for each matching article the name of document in the database or name of file on disk.
cheers Arve
On 28 Feb 2014, at 11:35, Hondros, Constantine (ELS-AMS) C.Hondros@elsevier.com wrote:
Hello all,
So, I am using Basex to inspect a gargantuan archive of XML records split over thousands of .tar files (thanks Christian for the recent fix allowing me to create a DB from tar input!).
In some cases, I would like to know which file, in which tar archive, was the source for a given query result. Imagine that my DB consists of thousands of documents with root element <article>. Is there any way to return the file path of the document that was the source for result of this sort of simple query?
/article[@id = '123']
Thanks, Constantine
Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The Netherlands, Registration No. 33156677, Registered in The Netherlands. _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
_______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
________________________________
Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The Netherlands, Registration No. 33156677, Registered in The Netherlands. _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de