473,497 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
Create 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...relationship 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 2626
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*****@nowhere.com> wrote in message
news:OZ*************@TK2MSFTNGP09.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...relationship 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
2079
by: David Dvali | last post by:
Hello. What is Doxygen tagging and how it can be used for source code documenting?
0
1156
by: pizarropablo | last post by:
hi, i'm looking for code of tagging system like del.icio.us or flickr. excuse my english.
2
1656
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: ...
1
1537
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...
2
1429
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...
6
8495
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 {...
5
3530
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...
1
1672
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...
2
1928
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
6991
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...
0
7160
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,...
0
7196
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...
1
6878
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...
0
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4897
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...
0
4583
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...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
649
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.