Skip to main content
Inspiring
August 8, 2023
Question

Is anyone smart enough to know how to avoid duplicate sub-keywords?

  • August 8, 2023
  • 3 replies
  • 26402 views

Is anyone smart enough to know how to avoid duplicate sub-keywords? I am not. I had made phylogenetic keywords originally, in the form, Diptera (FLIES).  I found out, importing to my website, that the proper separation is with commas, and () causes problems.  So I decided to rename to Diptera, FLIES,

 

This is an Order of Insects, and there are Families, Subfamilies and Tribes below this. And there are parents, Arthropods and Insects above.  I was first just trying to work on one family of Bee Flies, Bombyllidae, whose format I thus changed.  But then I found when I checked one of the subkeywords, the same one in the older one would also check.  Likewise with uncheck.  I spent hours, trying to view all the subkeywords and starting over, unchecking all the levels but they still came duplicated.  that when I then went to the parent keyword Diptera and did the same thing, but it made no difference except creating another duplicate of Bee flies in the new format.  Then I selected all the images in the family folder and selected every level and uncheck all the way up to Arthropods. I deleted all levels of duplicate keywords. I I closed and reopened the Bridge and tried again, all to no avail. I had also tried deleting both instances of a subkeyword in the old and new keywords and then putting back in the new and checking.  The old came back with all the levels.. I changed the preference to not apply parents, but the subkeyword still duplicates.

This topic has been closed for replies.

3 replies

Inspiring
August 9, 2023

I did not perfectly understand your case – I would advise provoking a dead simple case with apples and pears and leave animal taxonomies away. 

Yet, the situation looks to me as if some keyword-swap hadn't worked properly. The keywords in italic are (no longer?) in your keyword list, but seem still to be assigned on file-level. Bridge requires a rigid workflow for deleting or renaming keywords. You need to have absolutely all items that have a keyword-old assigned on screen and selected to perform a keyword deletion that applies both to your keyword list and your files.

This is a mayor difference from programs that use a catalogue, where you may freely rename and delete keywords and this metadata-change will get written back to all files / their database record – whether or not they are visible or selected. 

Inspiring
August 9, 2023

Based on the link suggesed, I tried something similar.  I had an arrangement with an examples such as thus: Arthropods>Insects>Diptera, FLIES,>Acalyptratae>Tephritoidea>Ulidiidae (PICTURE WINGED-FLIES)>Otitinae>Cephalini. 

  I lready had duplicates of almost all the subfolders in two places from previous parent folder renames, the old ones of which were Diptera , and Diptera (FLIES).  So almost all below that was twice duplicated and I wanted to get rid of.  I decided to work with all under Acalyptratae, and renamed that "Acalyptrate" and then all the FAMILIES ( end in dae) below it I changed to the comma format, so the example above became Ulidiidae, PICTURE-WINGED FILES. All child levels below that, I renamed with a period after. So Otininae becomes Otininae.  .I'd go to a family folder where images are stored, and since Bridge removed the ability to find 'ALL' that it once had, I choose find all images that don't contain 'zzz'.  this pulls up everything in the subfolders as well.  Then in the folder panel I select a lowest level child keyword, such as Cephalini, and in the keyword panel, check the Cephalini. (with the period), then uncheck all the ones without the period and I can delete that keyword., from the other levels,  I go up to the family level and delete that. Once the family was gone, I'd also remove parents above that if they didn't automatically. I would look on the folder panel with all selected and see if there were any old keyword, check them and uncheck in the keyword panel.  Several hours of this worked well for quite a few families that didn't come back.  It got harder when Acalyptratae would show once in the folder panel but be in 2 different old parent FLY keywords. Earlier, it seemed one check on the folder panel would show all checked in the keywords and I'd uncheck and they'd all be gone.  but then I started getting cases where the 2 on the right would show (-) and I'd have to start doing smaller selections of images till I'd get a solid check and then uncheck and get rid of that group.  sometimes it would only be one image that would allow a single check.  Tedious.  But then a stranger thing happened, before I could finish the last families in the group.  "Acalyptratae" became uncheckable.  Earlier as a parent, anything below would check it, now the non quote Acalyptratae would check when I checked a family or its child instead and if I checked "Acalypratate" the check would go away. Mind boggling, but I got rid of all the extra families and their children of the 25 families in the one subgroup. Not perfect, but I was able to export less cluttered keywords to the metadata file being prepared to re-import into my website.

 

Inspiring
October 13, 2023

Since I thought I updated all dates and changed all () in the SORT folder and subfolders, I've been busy adding corrected ones to my website and then moving to their phylogenetic folders. I'd find anomalies such as some NEFs had dates, keywords and descriptions but the rest of the metadata, location etc was gone.  Strange as it was in my access database where metadata was exported before any tiff making or subsequent processing.  Not many and added back data from nearby files which had the same info.  Also in folders I thought had all corrected dates, and didn't need the exiftool, there were outliers mixed that had apparently been processed differently.  this is because there was a lot of moving files after getting IDs and put in NAMED subfoldrs. Then I discovered that the NAMED grasshopper folder files all still had the () format.

So I removed the old export/import and downloaded the new circumscribed one and followed the directions and it was much quicker without all the extra fields and it worked great. Thanks, so much!

I still have a lot of NAMED folder stuff to move before getting to the really big stage of changing the metadata format in the phylogenetic folders where tens of thousands of images are in their essential archive locations, and still not sure how the keyword structure will be reconstituted so that all these new format keywords are largely parentless in regard to the order of the previous phylogenetic scheme.  Once I take care of most of the NAMED folder duties, I'll take a look at a smaller Order without many subkeywords to start with.

 


Due to the fact that one of my websites is too large and can't be backed up, I've been deleting hundreds of images and putting on my other site where size isn't a problem.  But to get as many as possible off, I've been choosing the larger families instead of small ones.  I have found that since the exporter results in a lot of parentless keywords that then have to be moved, one by one from the bottom in Other Keywords to the parent folder, it has been better to rename the parent in keywords, with all members selected from using () to comma.  This has worked well when a subfolder also has () which is also changed with after unselecting all and then selecting those with the comma format and the original () then is deletable.  But I'm having a big problem with subfolders below this, such as Tribes in Subfamilym which are just one word, with no common name, such as Saperdini in Lamiinae in Cerambycidae.  I find all those genera that use that keyword, and uncheck them. Then I delete the subkeyword, which is both places, I add it back to only the comma format parent.  And rising from the dead, it reappears in the old place.  Then I selected all of the parent Laminae with () and made sure there were none left with that keyword.  Deleted that parent with all its subkeywords which were also deselected and deleted.  I select a genus that would use that keyword and check in the new version and both the old version and its parent reappear.  Just can't get rid of the duplicate.

Stephen Marsh
Community Expert
August 8, 2023

Hierarchical keywords are designed to peacefully co-exist.

 

Take for a simple example the parent of "House" or "Car". Both of which can have valid sub-keywords of "Door" or "Window", however selecting the Door sub-keyword in House shouldn't include the Door sub-keyword in Car.

 

gregreser
Brainiac
August 9, 2023

I think I found the problem, or at least I figured out why @Stephen Marsh example works. 

If you enable Preferences > Keywords > Options  "Write Hierarchical Keywords", the duplicate child keywords can be edited independently.

When "Write Hierarchical Keywords" is selected, the dc:subject is "Test - Car; Test - Car|Door; Test - House; Test - House|Door"

 

When "Write Hierarchical Keywords" is NOT selected, dc:subject is "Test - House; Door; Test - Car"

I think the problem is that "Door" and "Car" only exist once here and that affects how the Keyword panel edits them. When I delete "Door" under "Test-Car", "Door" under "Test-House" is also deleted. This is not apparent until you click off the thumbnail then click back on refreshing the keyword panel display.

 

When I re-saved my keywords with "Write Hierarchical Keywords" enabled, I was able to delete the child keywords independently.

gregreser
Brainiac
August 9, 2023

I should add that you can't just enable "Write Hierarchical Keywords" and solve the problem if your previous keywords were not saved in that form. The dc:subject (IPTC Core) keywords would have to re-written in hierarchical form which would require re-selecting them in the Keyword Panel or by using a script.

gregreser
Brainiac
August 8, 2023

Have a look at this post. It might explain what's going on. I think your case is more difficult to solve because you have a lot of deelpy nested keywords.

Unable to delete identical but re-assigned child-keyword