Taxonomy Uploader

SharePoint 2010 makes it possible to upload new taxonomy termsets and terms with a csv file. But we soon found out that the possibilities with this feature wasn't enough.

So we have created a webpart that will improve the functionality of adding termsets and terms.

What have we improved.

  • It is possible that one term can be added with multiple languages
  • It is possible to add new terms to existing termsets and terms
  • If a termset exist it doesn't create a new termset
  • It is possible to add Synonyms to terms

After some serieus testing we figured out that working with a csv file would limit the possibilities of this Taxonomy Uploader.
So we switched from a csv format to xml.

In the zip file an example xml is given, but here is the format.

 


 

<?xml version="1.0" encoding="utf-8"?>
<Taxonomy>
	<TermSet>
		<Name>Animal</Name>
		<Tagable>True</Tagable>
		<Terms>
			<Term>
				<Name>Zoogdieren</Name>
				<Labels>
					<Label id="1036">Mammif&#233;res</Label>
					<Label id="1043">Zoogdieren</Label>
				</Labels>
				<Synonims></Synonims>
				<Terms>
					<Term>
						<Name>Katachtigen</Name>
						<Labels>
							<Label id="1036">Felines</Label>
							<Label id="1043">Katachtigen</Label>
						</Labels>
						<Synonims>
							<Synonim id="1043">poes</Synonim>
							<Synonim id="1036">chat</Synonim>
						</Synonims>
						<Terms>
							<Term>
								<Name>Katachtigen</Name>
								<Labels>
									<Label id="1036">Felines</Label>
									<Label id="1043">Katachtigen</Label>
								</Labels>
								<Synonims></Synonims>
								<Terms></Terms>
							</Term>
						</Terms>
					</Term>
					<Term>
						<Name>Runderen</Name>
						<Labels>
							<Label id="1036">Bovins</Label>
							<Label id="1043">Runderen</Label>
						</Labels>
						<Synonims></Synonims>
						<Terms></Terms>
					</Term>
				</Terms>
			</Term>
		</Terms>
	</TermSet>
</Taxonomy>

We also edited the CSV format. There is an example of the new format but the documentation can be found in the documentation section.

Example


 One Language

Animals,true
,,1033:Mammals,1033:Felines,1033:Tigers
,,1033:Mammals,1033:Felines,1033:Domestic Cats
,,1033:Mammals,1033:Bovines
,,1033:Reptiles,1033;Snakes

Multiple Languages

Animals,true
,,1033:Mammals;1036:Mammifères;1043:Zoogdieren,1033:Felines;1036:Felines;1043:Katachtigen,1033:Tigers;1036:Tigres;1043:Tijgers

,,1033:Mammals;1036:Mammifères;1043:Zoogdieren,1033:Felines;1036:Felines;1043:Katachtigen,1033: Domestic Cats;1036:Les chats demstiques;1043:Huiskatten
,,1033:Mammals;1036:Mammifères;1043:Zoogdieren,1033:Bovines;1036:Bovins;1043:Runderen

,,1033:Reptiles;1036:Reptiles;1043:Reptielen,1033:Snakes;1036:Les serpents;1043:Slangen


test test

Last edited Jun 1, 2011 at 6:01 AM by TimmyGilissen, version 4

Comments

No comments yet.