/** * Download the list of node creation events for the given meeting and add pass them to the given * {@Link com.compendium.meeting.MeetingManager MeetingManager}. * * @param oMeetingManager the {@Link com.compendium.meeting.MeetingManager MeetingManager} object * controlling this meeting recording/replay. * @param sMeetingID the id for this meeting. */ public void loadNodes(MeetingManager oMeetingManager, String sMeetingID) { String sQuery = "SELECT ?node_id ?map_id ?media_start_time WHERE " + //$NON-NLS-1$ "(<" + sMeetingID + "> portal:has-sub-event ?creation_event), " + //$NON-NLS-1$ //$NON-NLS-2$ "(?creation_event rdf:type memetic:Creating-Compendium-Node), " + //$NON-NLS-1$ "(?creation_event memetic:has-media-start-time ?media_start_time), " + //$NON-NLS-1$ "(?creation_event memetic:has-node ?node_id), " + //$NON-NLS-1$ "(?creation_event memetic:has-map ?map_id) " + //$NON-NLS-1$ "USING portal FOR <" + PORTAL_NS + "> memetic FOR <" + MEMETIC_NS + ">"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ Query query = new Query(sQuery); QueryExecution qe = new QueryEngineHTTP(query, sUrl); QueryResults results = qe.exec(); Iterator iter = results; String sID = ""; // $NON-NLS-1$ String sNodeID = ""; // $NON-NLS-1$ String sID2 = ""; // $NON-NLS-1$ String sViewID = ""; // $NON-NLS-1$ String sMediaIndex = ""; // $NON-NLS-1$ for (iter = results; iter.hasNext(); ) { ResultBinding rbind = (ResultBinding) iter.next(); sID = new String((rbind.get("node_id")).toString()); // $NON-NLS-1$ // System.out.println("sID = " + sID); if (!sID.equals("")) { // $NON-NLS-1$ int ind = sID.lastIndexOf("-"); // $NON-NLS-1$ sNodeID = sID.substring(ind + 1); // System.out.println("sNodeID = "+sNodeID); } sID2 = new String((rbind.get("map_id")).toString()); // $NON-NLS-1$ // System.out.println("sID2 = " + sID2); if (!sID2.equals("")) { // $NON-NLS-1$ int ind2 = sID2.lastIndexOf("-"); // $NON-NLS-1$ sViewID = sID2.substring(ind2 + 1); // System.out.println("sViewID = "+sViewID); } sMediaIndex = new String((rbind.get("media_start_time")).toString()); // $NON-NLS-1$ if (!sViewID.equals("") && !sNodeID.equals("")) { // $NON-NLS-1$ //$NON-NLS-2$ oMeetingManager.addNodeView(sNodeID, sViewID, sMediaIndex); } } }