Example: Category Count (implicit profiling)

 

+
Search Tips   |   Advanced Search

 

For the Category Count example, assume a repository of articles on sports, movies, and cooking is available for the user to view. Each time the user views an article, a record is logged to show his or her preference for that topic. For this to occur, each article must be a JSP that implements category beans. For example, the following code would appear on a sports article:

<jsp:useBean class="com.ibm.websphere.personalization.util.Category" 
             id="category" 
             scope="session">
</jsp:useBean>

<% category.setRequest(request); %>
<% category.log("Articles/Sports"); %>

These values were typed into the Attribute text field during the creation of this profiler after selecting current Category Count.

A complete version of this profiler will contain profile definitions for movies and cooking for the cases where those category counts are greater than sports and each other.

ArticlePreference is Sports
when current Category Count.Articles.Sports is greater than current Category Count.Articles.Cooking
or current Category Count.SportsArticles is greater than current Category Count.Articles.Movies

 

Home |