Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6589433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:10:29+00:00 2026-05-25T17:10:29+00:00

I asked this question on meta , but i now realize that it may

  • 0

I asked this question on meta, but i now realize that it may be more appropriate for the main site as it is a general question that would relate to any tagging based system (i am happy to close / delete one depending on where people think this question should go)


i have a similar system of tagged data and i am running into the same problem as SOF did where i have lots of tags that are really the same thing. I am trying to create a tag synonym page similar to SOF to support organizing this information.

A few questions around the relationships and “data model” of tag synonyms:

I assume that a master tag can have multiple synonym tags but a synonym tag can only be a
synonym for one master tag. Is that correct?

Also, can a master tag also be a synonym tag? For example, lets say you have a tag called javascript and you had:

Master: js
Synonyms: java-script, js-web

can you also have:

Master: javascript
Synonyms: js

So in the example above, you would keep resolving to ultimately resolve js-web to javascript because the master tag: js is itself a synonym tag.

Also, that makes me think you could also run into a circular reference where you have a

Master: js
Synonyms: java-script

and

Master: javascript
Synonyms: js

How does the system deal with circular refernces?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:10:29+00:00Added an answer on May 25, 2026 at 5:10 pm

    It is tempting to give you a more theoretical answer on meta concerning folksonomies, polysemy and such! Since I am answering on the StackOverflow side I will try and give a marginally more technical answer. Running queries using the StackOverflow Data Explorer will allow me to attempt to answer your questions (I am not affiliated with StackOverflow so I can’t know for sure).

    On StackOverflow the master/synonym tag relationship is carefully stewarded and cultivated. At the time of writing from the Data Explorer:

    • Tags has 29488 rows
    • TagSynonyms has 1916 rows

    It is interesting to contrast this with other folksonomies, one article “Technorati tags: Good idea, terrible implementation” states.

    “Technorati advertises that they’re now tracking 466,951 different tags, which is pretty darn impressive when you consider that a typical dictionary has around 75,000 entries”

    A quick caveat, I usually write Oracle SQL and I assume that the Data Explorer is using SQLServer so my queries may be a little amateurish. Firstly my presumptions about the data:

    • anything listed in the Tags table is a “master tag”.
    • in the TagSynonyms table, TargetTagName is a “master tag”, SourceTagName is the “synonym tag”.

    Now to your specific queries:

    “I assume that a master tag can have multiple synonym tags but a synonym tag can only be a synonym for one master tag. Is that correct?”

    select * from TagSynonyms where TargetTagName = 'javascript'
    

    Result: Yes. A master tag can have multiple synonym tags.

    select SourceTagName, count(*) from TagSynonyms group by SourceTagName having count(*) > 1
    

    Result: Yes. A synonym tag can only be a synonym for one master tag.

    “Also, can a master tag also be a synonym tag?”

    select TagName from Tags
    intersect
    select SourceTagName from TagSynonyms
    

    Result: Yes. A master tag can also be a synonym tag. When I ran this query there were 465 tags that were both synonym and master

    “How does the system deal with circular references?”

    This is where my logic/SQL may let me down. The question is can I find any circular references? To do this I think I need to work out:

    • Set a – set of tags that are both master and synonym
    • Set b – synonyms for the synonyms of the tags in set a
    • Set c – a intersection b

    Anything in set c would be a circular reference.

    We have already calculated set a above (it has 465 rows).

    Set b – synonyms for the synonyms of set a

    select SourceTagName from TagSynonyms where TargetTagName in (
    select SourceTagName from TagSynonyms where TargetTagName in (
    select TagName from Tags
    intersect
    select SourceTagName from TagSynonyms
    ))
    

    Result: 0 rows

    We can stop here, there is no point working out set c as we already know set b is empty.

    Unless I got my logic or SQL wrong (which is very possible) it seems there are no circular references in StackOverflow. I would imagine there are technical processes in place to prevent circular references from happening (otherwise StackOverflow could suffer StackOverflow!).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I asked this question in the restkit google group, but realize now that it
I asked this question in a more general design context before. Now, I'd like
I asked this question yesterday. But now I realize it was the wrong question.
Firstly, I've asked this question elsewhere , but meta.stackoverflow.com seems to think that asking
I asked this question a while back but now I'm looking to implement an
I just asked this question Multiple Where conditions , but realised there was more
I asked this question before. But now I am wondering why the following is
I've asked this question before and so the other post may be closed. But,
(I asked this question in another way , and got some interesting responses but
I asked this question earlier. I am intrigued by std::set but I have another

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.