![]() |
#1 |
Enthusiast
![]() Posts: 42
Karma: 10
Join Date: Oct 2018
Location: Belgium
Device: none
|
Efficient tag management??
Hi folks,
I would like to clean up the mess in my tags (4565 different ones) For that I want to export the tags, along with all the related books, in order to analyse this further in Excel I know I can export a catalog, but then all the tags are on one single field, comma separated, which is not quite usable Ideally, I would like something like tag1 - book1 tag1 - book2 ... tag2 - book1 tag2 - book2 ... Any clue on how to do this? Or any other brilliant idea about efficient tag management? Thanks! |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,450
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
The tag browser should do exactly what you describe.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 42
Karma: 10
Join Date: Oct 2018
Location: Belgium
Device: none
|
Sure, I know that, but this is not what I call "tag management"
I want to analyse the existing tags on order to improve their quality and accuracy By exporting to Excel, I want to be able to easily identify (for example) - synonymous tags which could be combined together - series with very different tags (which should normally happen) - typos in tags - books without tags (or potentially too few/too many) tags - etc... |
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,450
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,335
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Create a csv catalog and import that to excel
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Enthusiast
![]() Posts: 42
Karma: 10
Join Date: Oct 2018
Location: Belgium
Device: none
|
Quote:
![]() I'm through that "waste of time" up to the letter V Having almost finished, what I'm looking for is a not-too-complicated way to perform cross checks (after I will have finished obviously) |
|
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() Posts: 42
Karma: 10
Join Date: Oct 2018
Location: Belgium
Device: none
|
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,335
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I dont use excel, but I would be amazed if it didnt have an easy way to split up comma separated data into multiple cells
|
![]() |
![]() |
![]() |
#9 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,037
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I use the Manage option for each section in the Tag Browser and good old Eyeball Mk I.
The advantage is I can check NOW, what books are associated with that tag. Especially with Series, Duplicates or Singles (books ONLY have the same Series name), the Manage Series PI helps (I add the Authors initials in paren to a series to break a tie: Magic (AN) The only tool I wish it had, is a 'compound Tag splitter' (takes the Tag and allows commas to be inserted which makes that into the multiple tags) OK another tool ![]() ![]() Hardboiled Detective I add the dot (Hardboiled.Detective) then flip -> Detective.Hardboiled |
![]() |
![]() |
![]() |
#10 | |
Enthusiast
![]() Posts: 42
Karma: 10
Join Date: Oct 2018
Location: Belgium
Device: none
|
Quote:
The complex part (at least with my knowledge of Excel) is then to keep the relationship between each tag and all the related books This is why, instead of a "can do" situation, I'm looking for a straightforward (i.e. application provided) solution |
|
![]() |
![]() |
![]() |
#11 | |
Enthusiast
![]() Posts: 42
Karma: 10
Join Date: Oct 2018
Location: Belgium
Device: none
|
Quote:
Still this does not have the flexibility (and analysis power) of a proper "catalog by tags" export to Excel ![]() |
|
![]() |
![]() |
![]() |
#12 | |
Testate Amoeba
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,049
Karma: 27300000
Join Date: Sep 2012
Device: Many Android devices, Kindle 2, Toshiba e755 PocketPC
|
Quote:
First, here's the query in case you don't need the rest of the explanation: Code:
SELECT a.name, b.author_sort, b.title FROM tags a, books b, books_tags_link c WHERE a.id = c.tag AND b.id = c.book ORDER BY a.name, b.author_sort, b.title; My suggestion is that you create a separate working directory for this. First, make a copy of the "metadata.db" file from your Calibre directory in the new directory (the tool will let you make irreversible changes to your Calibre database, so work from a copy). Then copy the "sqlite3.exe" file into the same directory. Finally, create a text file named "tags.sql" in the directory and paste the above query into it. Open a Windows command line and cd to the directory you created. Type "sqlite3 metadata.db" and you should see the following: Code:
SQLite version 3.33.0 2020-08-14 13:23:32 Enter ".help" for usage hints. sqlite> Code:
.output tags_output.csv .read tags.sql .quit |
|
![]() |
![]() |
![]() |
#13 | |
Enthusiast
![]() Posts: 42
Karma: 10
Join Date: Oct 2018
Location: Belgium
Device: none
|
Quote:
Thanks a bunch, this is EXACTLY what I wanted ![]() Knowing now this is SQLite, I was wondering: is the DB structure documented somewhere? That might be extremely useful for all sorts of data analysis (I'm a big fan of such exercise ![]() Thanks again ![]() ![]() |
|
![]() |
![]() |
![]() |
Tags |
tag management |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tag Mapper: Remove tag if another specific tag exists? | ownedbycats | Library Management | 2 | 07-23-2020 10:32 PM |
The Most Efficient Way to Publish an eBook | swisherpackers | Self-Promotions by Authors and Publishers | 0 | 06-06-2014 10:30 PM |
Tag Management | lucidcrux | Calibre | 7 | 08-19-2010 09:55 AM |
HELP -- Any efficient way to synchronize folders? | mr.giroro | iRex | 27 | 03-27-2008 05:58 AM |