Showing posts with label Metadata. Show all posts
Showing posts with label Metadata. Show all posts

Wednesday, September 14, 2011

SharePoint 2010 Metadata and Taxonomy Management

I finally got around to reading the preliminary SharePoint 2010 taxonomy and metadata info on MSDN. As most of you know, MOSS 2007 had some serious challenges in this regard (e.g., no hierarchical metadata, no sharing controlled vocabularies across site collections, etc.) — and they caused information architects like me much consternation.
It would appear that SharePoint 2010 includes many new features under the umbrella of Enterprise Metadata Management, and they seem to have addressed some key issues. Here are the highlights.

1. Terms & Keywords

SharePoint 2010 has a few types of vocabularies with different levels of control:
Terms: Basic construct — a word or phrase that can be associated with content. A term can become a managed term or a managed keyword.
Managed Terms: A controlled term that can only be created by those with appropriate permissions. Term sets (think of them as taxonomy facets) are collections of related terms that can be hierarchically structured.
Managed Keywords: User-generated keywords (aka tags) kept in a non-hierarchical list called the keyword set.
What's nice is that you can easily turn a managed keyword into a managed term, which essentially sets up SharePoint 2010 as a decent platform to blend taxonomy and folksonomy approaches (more on this later).


2. Managed metadata & the Term Store

Once you have managed terms in place, you can create a new column type called "managed metadata". This column type is like the 2007 lookup, but points to the managed term sets instead of lists.
One of the biggest limitations of MOSS 2007 was the site collection boundary: lists were specific to a site collection, so in order to share metadata and taxonomy across multiple collections, you had to essentially reproduce the same lists in each collection.
Managed term sets (and managed keywords) now live in what's called the Term Store Management Tool — a centralized database that allows term sets to be shared across a farm.
sp2010-metadata-20091112-01.png
SharePoint 2010 — Centralized Metadata Repository. Image courtesy of EndUserSharePoint.com


3. Taxonomy & Metadata Management

Within the Term Store, there are some metadata and taxonomy management functions enabled, though the documentation is not clear on how many of them are achieved.
Feature Comment
Create or delete term sets Term sets can also be thought of as facets
Add, modify or delete terms It is unclear however how modifications and deletions are propagated throughout content that is already tagged - this is a big problem in 2007, as changes are not reflected in tagged content
Arrange terms in hierarchies It would appear that this uses a drag & drop mechanism
Define synonyms Unclear as to how this works and whether it is used in the search thesaurus
Import terms Via a .CSV file
Promote managed keywords into managed terms Great news for those of us who want to use tags as a source of candidate terms for the taxonomy
Create multi-lingual     taxonomies Unclear if this is at the term level or you have to create language-specific versions of each term set… likely the latter
My biggest concern is the whole question of integrity and change propagation, but overall this is a huge leap forward from 2007 where there was no taxonomy management to speak of. This is actually more functionality than I've seen in many very expensive CM suites, so right now on the surface, I'm rather pleased with this set of features.

Using Managed Metadata in SharePoint 2010


Managed Metadata is a really cool new feature in SharePoint 2010. You can centrally define metadata which can be used across Site Collections. This Term Sets can be statically defined by a Group Manager or dynamically extended by your users. I will show you how to create such an Group and Term Set and how to include it in a Document Library.

First of all you have to start the required Web Service. So within the Central Administration click on the link “Manage services on server“.


There you’ll find the “Managed Metadata Web Service“. Use the “Start“-Link on the right side to start it.



Now we have to create a service application which handles the managed metadata. In Central Admin within the Application Management use the Manage service applications link to get an overview of the currently created service applications.
Side Note: Service Applications are the follower of the Shared Service Provider (SSP) in SharePoint 2007.


Use the New Button at the Service Applications Ribbon and choose “Managed Metadata Service“.



Enter your desired options. The options are self-explaining.
After the creation process you find your new service application in the list. Click on the Name of the Service Application or highlight it and use the Manage Button within the Service Applications Ribbon to enter the Term Store Management Tool.



First of all we have to create a new group for our Term Sets. When moving the pointer over the name of your Service Application (in my case its “Managed Metadata Service SA”) a little arrow appears. After clicking on this arrow the below showed menu appears. Now use the New Group link and enter the name of the group.




After entering the name you can hit Enter and the properties of this group are displayed. I think the options here are self-explaining as well.


Now create a Term Set which will hold our Terms (Metadata). The Term Set is the part which will be used in a column. Basically it’s the same process as the creation of the group. Move the pointer over your group, click on the small arrow and choose New Term Set. It’s also possible to import a CSV-File.



After hitting Enter again you’ll find yourself in the properties of this new Term Set. Especially the “Submission Policy” setting is interesting. If you want a dynamic list (which is extendable by your users) you have to change this option to Open.



Once again, we have to use our little arrow to create new Term’s inside this Term Set.


You can define multiple synonyms for each term. If this synonym is typed by one of your users the right Term will be displayed as suggestion.


So, after all you Term Set was created we should also use it ;)
Create a new column in a List or Document Library within your Site Collection.






Enter a Column name and choose “Managed Metadata” as information type.


Puhuu, what’s that? ;) I’m not sure if it’s just a bug within the RC1-Edition, but we have to enable the Term Navigation through PowerShell. Yep, the required feature isn’t available through the “Site Feature” list inside the “Site Settings”.



Start PowerShell and add the SharePoint SnapIn so the required cmdlets are available.
Get-PSSnapin –RegisteredDisplays all PowerShell-Snapins which are available on your machine
Add-PSSnapin Microsoft.SharePoint.PowershellAdds the SharePoint-Snapin to this PowerShell session



If you don’t trust me that you have to enable the feature you can check it ;)
Get-SPFeature –Site <URL to your Site Collection>Displays a list of all already enabled Site Features
Enable-SPFeature -Identity 73EF14B1-13A9-416b-A9B5-ECECA2B0604C -Url <URL to your Site Collection>Enables the “TaxonomyFieldAdded” feature for the specified Site Collection. This one is required for the Taxonomy Browser.
Get-SPFeature | where {$_.displayname –like “*tax*”}
A list of all available features on this Farm are displayed which have tax in their name. This would be an option to get the ID of the feature. The other option would be to try to create a column while this feature is disabled. You will receive the error: “The Taxonomy feature (Feature ID “73EF14B1-13A9-416b-A9B5-ECECA2B0604C”) has not been activated.<br>A term set or anchor point was not selected”.





So, feature is activated and we’re ready to use it. Refresh the page. Now your Managed Metadata Service Application with the Group and Term Set is display.


If you want the Term Set to be dynamically extendable set “Allow ‘Fill-in’ choises” to “Yes“.
After using the “OK-Button” to create the new column just upload a document. Our column is displayed and while you’re typing a value relevant suggestions are displayed. You can also click on this tiny cards (or whatever it should be) on the right side of the input box to display all available Terms. This is also the required step if you want to add a new Term.



Use the “Add New Item” to, what a surprise, add a new term ;)


That’s it ;) You can also try to add a column which is using your Term Set on another Document Library and even on a DocLib within another Site Collection and you’ll find all Terms.
There are still some open questions for me where I have to play more with this feature. Especially with permission on the Term Sets and Groups. But all Managed Metadata would solve a lot of troubles we all had with SharePoint 2007.
In my opinion it’s just important to clearly understand the impact of Managed Metadata and to plan it carefully. It’s like with Content Types => A good concept is everything ;)