#GET /user_files

	files: [
		{
			name: 'my_file.pdf',
			url: 'my_file.pdf'
		}
	];

#GET /search

##Response

keywords : ["keyword", ...]

#POST /search

##Params

{ search_keyword: "keyword", keywords: ["keyword", "keyword", ...] }

##Response

{

	keywords: [
		{
			id: 1,
			text: "keyword",
			exploitation: 0.5,
			exploration: 0.3
		},
		...
	],
	persons: [
		{
			name: "Kalle Ilves",
			email: "N.Asokan[at]cs.helsinki.fi"
			room: "D212"
			phone: "+358 2941 51225"
			homepage: "http://cs.helsinki.fi/~asokan"
			reception_time: "By appointment"
			group: "Secure Systems"
			keywords: [1, 2, 3, ...],
			articles: [
				{
					id: 1,
					title: "Some title",
					abstract: "Some abstract",
					url: "www.myarticle.com"
				},
				...
			]
		},
		...
	]

}

#POST/next

##Params

{
	keywords: [
		{
			id: 1
			text: "keyword"
			weight: 0.2
		},
		...

	],
	
	// These are keywords (id of each removed keyword) removed by the user
	removed: [1, 2, 3]
}

##Response

{
	keywords: [
		{
			id: 1,
			text: "keyword",
			exploitation: 0.5,
			exploration: 0.3
		},
		...
	],
	persons: [
		{
			name: "Kalle Ilves",
			email: "N.Asokan[at]cs.helsinki.fi"
			room: "D212"
			phone: "+358 2941 51225"
			homepage: "http://cs.helsinki.fi/~asokan"
			reception_time: "By appointment"
			group: "Secure Systems"
			profile_picture: "my_profile_image.jpg",
			keywords: [1, 2, 3, ...],
			articles: [
				{
					title: "Some title",
					abstract: "Some abstract",
					url: "www.myarticle.com"
				},
				...
			]
		},
		...
	]
}

#GET chart_data

{ charts : [], articles: [ { title: "title", id: 1 }, ... ] }

#GET article_matrix

##Params

{
	ids: [1, 2, 3, ...]
}

##Response

When more than 10 articles are selected

{
	matrix: 
	[
		[
			1,
			2,
			3
		]
	]
}

When less than 10 articlesare selected

{
	matrix: 
	[
		[
			{
				value:1, 
				title: "",
				auther: "",
				abstract: ""
			} ...
		]
	]
	topic_model_relation:
	{
		articleID:topicID,
		...
	}
	topic_data:
	{
		topicID:
		[
			{ text: "keyword1", possibility: "possibility1" },
			...
		],
		...
	}
}

#Post related_articles

##Params

{
	id:1
}

##Response

When less than 10 articlesare selected

{
	matrix: 
	[
		{
			distance:1, 
			title: "",
			auther: "",
			abstract: ""
		} ...
	]
}

Tasks for gao

  • topic models data
  • clean data for all authers
  • formalize the preprocessing step

Tasks

  • merge deselete and select icon

  • chart bug when number of astracts are big than 20

  • Chart data (persons and keyword counts + persons and keyword weights)

  • A small bug lies in acquiring abstracts. The expand button is wrong done