lun-4 / awtfdb

the Anime Woman's Tagged File Data Base.
MIT License
37 stars 2 forks source link

tag sources #29

Closed lun-4 closed 1 year ago

lun-4 commented 2 years ago

this is related to #23, because this provides a good solution to the "how to remove the parent relationship but in a cohesive manner (by not deleting tags that didn't get added by the relationship)".

this also helps me on separating tag data, from manual things i have put, to tools i have made to insert tags, could be useful for training DeepDanbooru datasets!

the manual source always comes by default.

$ atags source list
0 manual

$ atags source create "deepdanbooru"

$ atags source list
0 manual
1 deepdanbooru

$ ainclude -s 1 -t this_tag -s 0 -t that_tag myfile

$ als --full myfile
myfile 'this_tag' (deepdanbooru) 'that_tag' (manual)
lun-4 commented 2 years ago

questions about this system:

lun-4 commented 2 years ago

better idea: tag sources get types. if its an internal source (like parenting), it gets a new hardcoded type if its an extenal source (like deepdanbooru), different type id id as int type id as int primary key on (id, type id)