Questions tagged [tagging]

Tagging is the act of adding tags (non-hierarchical keywords or terms assigned to a piece of information such as an Internet bookmark, digital image, or computer file).

Tagging is the act of adding tags (non-hierarchical keywords or terms assigned to a piece of information such as an Internet bookmark, digital image, or computer file).

Tagging is carried out to perform functions such as aiding in classification, marking ownership, noting boundaries, and indicating online identity. It may take the form of words, images, or other identifying marks.

920 questions
338
votes
6 answers

Recommended SQL database design for tags or tagging

I've heard of a few ways to implement tagging; using a mapping table between TagID and ItemID (makes sense to me, but does it scale?), adding a fixed number of possible TagID columns to ItemID (seems like a bad idea), Keeping tags in a text column…
dlamblin
  • 43,965
  • 20
  • 101
  • 140
181
votes
11 answers

Database Design for Tagging

How would you design a database to support the following tagging features: items can have a large number of tags searches for all items that are tagged with a given set of tags must be quick (the items must have ALL tags, so it's an AND-search, not…
Christian Berg
  • 14,246
  • 9
  • 39
  • 44
159
votes
8 answers

What is the most efficient way to store tags in a database?

I am implementing a tagging system on my website similar to one stackoverflow uses, my question is - what is the most effective way to store tags so that they may be searched and filtered? My idea is this: Table: Items Columns: Item_ID, Title,…
Logan Serman
  • 29,447
  • 27
  • 102
  • 141
128
votes
5 answers

How do you revert to a specific tag in Git?

I know how to revert to older commits in a Git branch, but how do I revert back to a branch's state dictated by a tag? I envision something like this: git revert -bytag "Version 1.0 Revision 1.5" Is this possible?
zachd1_618
  • 4,210
  • 6
  • 34
  • 47
97
votes
7 answers

How to implement tag system

I was wondering what the best way is to implement a tag system, like the one used on SO. I was thinking of this but I can't come up with a good scalable solution. I was thinking of having a basic 3 table solution: having a tags table, an articles…
Saif Bechan
  • 16,551
  • 23
  • 83
  • 125
84
votes
3 answers

TTL for a set member

Is it possible in Redis to set TTL (time to live) not for a specific key, but for a member for a set? I am using a structure for tags proposed by Redis documentation - the data are simple key-value pairs, and the tags are sets containing keys…
Przemek
  • 6,300
  • 12
  • 44
  • 61
77
votes
9 answers

How to get last Git tag matching regex criteria

I need Git command to get/find last tag starting with 'v' to get last versioning commit (I am using tags with v letter at the beginning to tag next application version (example: v0.9.1beta). Is there any way to do it?
Lukasz
  • 19,816
  • 17
  • 83
  • 139
73
votes
3 answers

Validate the number of has_many items in Ruby on Rails

Users can add tags to a snippet: class Snippet < ActiveRecord::Base # Relationships has_many :taggings has_many :tags, :through => :taggings belongs_to :closing_reason end I want to validate the number of tags: at least 1, at most 6. How…
user142019
67
votes
3 answers

Understanding Gitlab CI tags

I've read documentation, some articles and you might call me dumb, but this is my first time working with a concept like this. I've registered runner with tag "testing" created tag "testing" in gitlab binded this runner, with particular project…
RiddleMeThis
  • 817
  • 1
  • 6
  • 10
49
votes
8 answers

An easy way to support tags in a jekyll blog

I am using the standard jekyll installation to maintain a blog, everything is going fine. Except I would really like to tag my posts. I can tag a post using the YAML front matter, but how do I generate pages for each tag that can will list all…
raheel
  • 1,407
  • 1
  • 15
  • 24
34
votes
4 answers

Union and Intersect in Django

class Tag(models.Model): name = models.CharField(maxlength=100) class Blog(models.Model): name = models.CharField(maxlength=100) tags = models.ManyToManyField(Tag) Simple models just to ask my question. I wonder how can i query blogs using…
hamdiakoguz
  • 15,795
  • 9
  • 33
  • 27
31
votes
2 answers

How can I find the arn of an api gateway stage?

I am trying to use awscli to add tags to my api gateway stage https://docs.aws.amazon.com/cli/latest/reference/apigateway/tag-resource.html I am required to supply the --resource-arn for the stage, however I am unable to ascertain this value. I have…
user3559247
  • 1,117
  • 1
  • 11
  • 21
30
votes
8 answers

How to auto-tag content, algorithms and suggestions needed

I am working with some really large databases of newspaper articles, I have them in a MySQL database, and I can query them all. I am now searching for ways to help me tag these articles with somewhat descriptive tags. All these articles is…
Kasper Grubbe
  • 923
  • 2
  • 14
  • 19
29
votes
3 answers

Python NLTK: How to tag sentences with the simplified set of part-of-speech tags?

Chapter 5 of the Python NLTK book gives this example of tagging words in a sentence: >>> text = nltk.word_tokenize("And now for something completely different") >>> nltk.pos_tag(text) [('And', 'CC'), ('now', 'RB'), ('for', 'IN'), ('something',…
Ollie Glass
  • 19,455
  • 21
  • 76
  • 107
29
votes
3 answers

How to add tagging with autocomplete to an existing model in Rails?

I'm trying to add "tags" to an Article model in a Rails 3 application. I'm wondering if there is a gem or plugin that has adds both the "tagging" functionality in the model and also the auto-complete helpers for the views. I've found…
deb
  • 12,326
  • 21
  • 67
  • 86
1
2 3
61 62