We recently received a bug report from one of our customers about the SharePoint Module not creating a topic when a new page was created in a Page Library. Normally, topics are created whenever an item is added to a list using SharePoint’s ItemAdded event. However in this case the ItemAdded event handler was failing and so the topic was not created. Further investigation revealed that the ItemAdded event handler was not receiving the correct event information - in particular the reference to the new list item was null. This means that our event handler cannot determine the identity of the new list item and so cannot create a topic.
Over the last couple of weeks I’ve had a lot of queries from developers about the “scraping” that we do to create topics for users in a SharePoint Module topic map. Some confusion has been caused by the fact that we have two ways of doing this and also some concern has been expressed about the amount of logging activity generated in particular by the AddSiteUsers task. This post is a copy of a support response I wrote for the last developer to enquire and I’m posting it here in the hope that it might be useful to others too.
The NPCL Schema Editor is a plugin for Visual Studio 2005 that enables you to create topic map ontologies through a simple graphical interface. The goal of the schema editor is to make it easy for developers or information architects to convert the domain model into a topic maps model. The editor has been designed to be extensible by supporting additional user-defined menu actions and we have separately released a set of extensions to enable the topic map ontology to be mapped against Content Types in a SharePoint site.