Hi,
do we have any means in XQuery or with the Base-X API to query the age of a document?
E.g. let's assume we add documents like this: mySession.add(inDocumentRef, new ByteArrayInputStream(inDocument));
Is there any way to query metadata when this document was added to the database (or other metadata, e.g. the size, too)? The background is that I access external content dynamically and I want to refresh data in the DB according to some defined update strategy (e.g. when the document is older than x-days). I want to apply the strategy based on metadata and not on content, so I don't want to query some document specific elements or attributes.
Many thanks in advance! Bodo Hüsemann
Am 14.09.2013 um 11:23 schrieb Bodo Hüsemann bodo.huesemann@gmx.de:
Hi,
do we have any means in XQuery or with the Base-X API to query the age of a document?
Currently, no meta data data is stored in the database. You can extend your application to store the needed meta data in the needed format in a separate database or within the documents themselves. Please, note that the actual size of the document may not be the same as in the input one, because of different serialisation options when reading out the XML document.
Best regards, Dimitar
basex-talk@mailman.uni-konstanz.de