473,779 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Implementing a tagging system in .net

Has anyone built a tagging system for their .net application akin to way
flickr or del.icio.us implement it?

We're building an internal CMS and all of the structured content will be
organized into categories (basically, folders of information). This is
needed to create a specific structure to all the content being entered.

However, I'm seeing some benefit of also implementing a tagging system for
each individual bit of content. This would make creating an index quite
easy, for example.

There are some issues that I'm looking at:

- how to store the tags in the DB...relationsh ip tables? Just one long
string in a field? Other?
- how to regulate the tags. Allow people to create new ones? Pick from a
list?

Just curious to see if anyone else has implemented this and if they'd be
wiling to share any pitfalls/suggestions they may have.

-Darrel
Dec 20 '05 #1
1 2648
Darrel:
I'm working on something similar. In all honest, I don't see it as a
complex feature. I have 3 entities. articles, categories and tags.

An article must belong to one and only one category
A tag belongs to one or more categories (these are the tags allowed for the
category)
A article can have zero of more tags

So if an article is in the category "HR", zero or more tags which are
allowed to be used in "HR" can be associated with this article

Here are the relevant fields:

Category
-------
CategoryId

Tag
------
TagId

CategoryTagJoin
-------------
CategoryId
TagId
Article
-------
ArticleId
CategoryId

ArticleTagJoin
-------
ArticleId
TagId
The enforcement of making sure only allowed tags is left to the business
layer (though it could easily be done at the data layer as well)

As far as managing the tags, well, it's like anything else. They can pick
from an existing checkboxlist, or add a new item.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"darrel" <no*****@nowher e.com> wrote in message
news:OZ******** *****@TK2MSFTNG P09.phx.gbl...
Has anyone built a tagging system for their .net application akin to way
flickr or del.icio.us implement it?

We're building an internal CMS and all of the structured content will be
organized into categories (basically, folders of information). This is
needed to create a specific structure to all the content being entered.

However, I'm seeing some benefit of also implementing a tagging system for
each individual bit of content. This would make creating an index quite
easy, for example.

There are some issues that I'm looking at:

- how to store the tags in the DB...relationsh ip tables? Just one long
string in a field? Other?
- how to regulate the tags. Allow people to create new ones? Pick from a
list?

Just curious to see if anyone else has implemented this and if they'd be
wiling to share any pitfalls/suggestions they may have.

-Darrel

Dec 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2104
by: David Dvali | last post by:
Hello. What is Doxygen tagging and how it can be used for source code documenting?
0
1187
by: pizarropablo | last post by:
hi, i'm looking for code of tagging system like del.icio.us or flickr. excuse my english.
2
1674
by: Jake Barnes | last post by:
Reading over this debate I came to realize that RSS is too limited to mediate against the weaknesses and failures of social search: http://atomiq.org/archives/2005/04/market_populism_in_the_folksonomies_debate.html http://www.rebeccablood.net/archive/2005/01.html#11technorati http://tagsonomy.com/index.php/semi-structured-meta-data-has-a-posse-a-response-to-gene-smith/ I have the sense that at least one goal of all this social search...
1
1561
by: Jana | last post by:
Is there an XML-editor that can assist you in marking up the data in an urformatted text document, such that you mark the data and then right-click to access the Schema you have assigned, and choose the tag/attribute in the tree-structure, which then magically appears with your data enclosed? There must be, right? My assignment is to bring order to a truckload of stats from various Athletics events. For individual meetings, the...
2
1465
by: metaperl.etc | last post by:
The first thing I look at when examining a module is how often it is updated. Unfortunately, the entries there dont show this. Eg: http://www.python.org/pypi/PySimpleXML/1.0 Second, it seems that tagging is more popular than the hierarchical browsing method currently offered by Cheese Shop. Are there efforts underway to support a tagging interface for the cheeseshop?
6
8519
by: Raj Wall | last post by:
Hi, I am trying to implement the IEqualityComparer interface for a struct so I can use it as the Key for a Dictionary. My struct declaration has: public struct Ring : IEqualityComparer { .... } and I am trying to implement the Equals and GetHashCode methods.
5
3554
by: koonda | last post by:
Hi all, I am a student and I have a project due 20th of this month, I mean May 20, 2007 after 8 days. The project is about creating a Connect Four Game. I have found some code examples on the internet which helped me little bit. But there are lot of problems I am facing developing the whole game. I have drawn the Board and the two players can play. The players numbers can fill the board, but I have problem implementing the winner for the...
1
1687
by: gojoe101 | last post by:
Hello, I have a tagging database, that allows me to apply tags to transaction records. The transaction records can have none or several different tags applied to them. I would like to be able to "Auto Tag" records with similar details - ie if they have the same Payee Name, or meet certain criteria such as same amount, and an identical reference number etc... (in effect they are repeating transactions) upon import. My tables (simplified)...
2
1953
by: sidhubhatia23 | last post by:
i Need help with photo tagging. but i am nto too sure how to do that. i am trying to get the tagging work like it works in face book. can some one help?
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10306
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7485
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.