%@page session="true" %> <%@page import="com.ikatun.reimaginings.artlogic.Conversation" %> <%@page import="com.ikatun.reimaginings.artlogic.ConversationLinks" %> <%@page import="com.ikatun.reimaginings.artlogic.History" %> <%@page import="com.ikatun.reimaginings.artlogic.Html" %> <%@page import="com.ikatun.reimaginings.artlogic.Keyword" %> <%@page import="com.ikatun.reimaginings.artlogic.Line" %> <%@page import="com.ikatun.reimaginings.artlogic.Ranking" %> <%@page import="com.ikatun.reimaginings.artlogic.Speaker" %> <%@page import="java.net.URLEncoder" %> <%@page import="java.text.DateFormat" %> <%@page import="java.text.SimpleDateFormat" %> <%@page import="java.util.Calendar" %> <%@page import="java.util.Date" %> <%@page import="java.util.Iterator" %> <%@page import="java.util.List" %> <% String id = request.getParameter("conversationId"); String f = request.getParameter("f") == null ? "" : request.getParameter("f"); if (id == null || id.length() < 1) { response.sendError(HttpServletResponse.SC_NOT_FOUND, "Missing parameter `conversationId'."); return; } boolean submit = request.getParameter("is_submit") != null; Conversation conversation = null; try { conversation = Conversation.get(Integer.parseInt(id)); } catch (Exception e) { e.printStackTrace(); } if (conversation == null) { response.sendError(HttpServletResponse.SC_NOT_FOUND, "No conversation wtih ID `" + id + "'."); return; } DateFormat format = DateFormat.getDateInstance(DateFormat.FULL); Speaker speaker1 = conversation.speaker1; Speaker speaker2 = conversation.speaker2; List lines = conversation.lines; List keywords = conversation.keywords; ConversationLinks links = new ConversationLinks(conversation); links.init(); History history = (History) session.getAttribute(History.class.getName()); if (history == null) { history = History.createNew(); session.setAttribute(History.class.getName(), history); } Date today = Calendar.getInstance().getTime(); if (!submit) { //don't update history on the submit history.update(conversation); } else { //submit comments to rankings table int ranking1 = request.getParameter("ranking1") == null ? -1 : Integer.parseInt(request.getParameter("ranking1")); int ranking2 = request.getParameter("ranking2") == null ? -1 : Integer.parseInt(request.getParameter("ranking2")); int ranking3 = request.getParameter("ranking3") == null ? -1 : Integer.parseInt(request.getParameter("ranking3")); String comments = request.getParameter("comments"); String posted_by = request.getRemoteHost(); Ranking ranking = Ranking.createNewRanking( conversation.getId(), posted_by, new java.sql.Date(today.getTime()), ranking1, ranking2, ranking3, comments, Ranking.NODAL_MODEL ); ranking.save(); } List rankings = Ranking.getRankings(conversation.getId(), Ranking.NODAL_MODEL); %>
| The NODAL MODEL (Nom),
like the Reenactment Model, provides finer-grained, color-coded insight
into the raw conversational data and individual lines of language provided
by human subjects. The Reimaginings Prism Engine - RPE 2004 rX - uses the
Nom to create a rich web of meaningful associations
between Newtonian spectrum data and Instant Messaging data from different
conversations. Hyperlinking meta-data to form nodal rhizomes is one of the
core computational functions of RPE 2004 rX. Filling out the HUMAN SURVEY
DATA COLLECTION below will provide vital human input and oversight of the
generative algoritms of the Reimaginings Prism Engine - RPE 2004 rX. To hear individual lines performed please turn your speakers on and your volume up before clicking them. |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||