Hi Emmanuel,
I am not sure whether I fully understand your proposal: Is your idea to save the information on mime-type level instead of on namespace level? (Redirects have a special mime-type, therefore - as desired - they would not be included in the numbers). Is there a potential issue for mime-type based, that non-article entries may have the same mime-type as article entries? (e.g. can image text be html?) If this is not a real issue, storing mime-type fine for me, but it would be also fine if count is stored on namespace level (that is, entries in one namespace which are not redirects).
Benefit of storing on metadata-level is that articles which are not text or image can be handled, disadvantage is that it is more complex for the application. (Therefore I'd prefer if it is implemented in zimlib)
Where do you want to store the mime-type count information? As metadata or something else?
Best regards, Christian
Am 22.01.2012 20:14, schrieb Emmanuel Engelhart:
I also think it would be valuable to store these information somewhere in the ZIM files. We need to save many new metadata, for each type of file (picture, video, audio, text)... and why not other types (presentation, ...). IMO the best we can do, is saving how many entries we have per mime-type, so we are sure we have on the format size always the information we need (with the finest granularity). The reader or the zimlib should make the computation and provide the necessary code to make something like getAudioArticleCount().
What do you think?
Emmanuel
A new metadata is certainly the most easiest solution, but I'm not sure this is the best. So this could potentialy add really a lot of new metadat
On 01/22/2012 06:15 PM, Christian Pühringer wrote:
Hi,
I think it's currently not possible to get the number of articles without redirects. (Except counting all articles which are not redirects, but this would be pretty slow) However, I agree that it would be a useful feature, so we should consider to add it. (Perhaps as metadata?)
Best regards, Christian
Am 22.01.2012 16:09, schrieb Emmanuel Engelhart:
Hi
Do we have a way to know how many articles we have in a specific namespace in a ZIM file... but without the redirects?
Regards Emmanuel
dev-l mailing list dev-l@openzim.org https://intern.openzim.org/mailman/listinfo/dev-l
dev-l mailing list dev-l@openzim.org https://intern.openzim.org/mailman/listinfo/dev-l