001/** 002 * CreateProfile.java 003 * jCOLIBRI2 framework. 004 * @author Juan A. Recio-Garc�a. 005 * GAIA - Group for Artificial Intelligence Applications 006 * http://gaia.fdi.ucm.es 007 * 02/11/2007 008 */ 009package es.ucm.fdi.gaia.jcolibri.extensions.recommendation.ContentBasedProfile; 010 011 012import es.ucm.fdi.gaia.jcolibri.cbrcore.CBRQuery; 013import es.ucm.fdi.gaia.jcolibri.connector.xmlutils.QuerySerializer; 014 015/** 016 * Stores an user profile (query object) into a XML file. 017 * 018 * @author Juan A. Recio-Garcia 019 * @author Developed at University College Cork (Ireland) in collaboration with Derek Bridge. 020 * @version 1.0 021 * @see QuerySerializer 022 */ 023public class CreateProfile 024{ 025 /** 026 * Stores a query into a XML file 027 * @param query to store 028 * @param filename of the XML file 029 */ 030 public static void createProfile(CBRQuery query, String filename) 031 { 032 QuerySerializer.serializeQuery(query, filename); 033 } 034}