Added licensing information to the files I created. Deleted freemarker files/folders that i've created inside src/edu/cornell/mannlib/vitro/webapp/visualization. Since chintan is working on Freemarker-ization, he's going to take care of it.
This commit is contained in:
parent
082ce17d80
commit
5dbe8f00b1
20 changed files with 71 additions and 64 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
//Hard coded color constants
|
//Hard coded color constants
|
||||||
var TURQUOISE = "#8DD3C7";
|
var TURQUOISE = "#8DD3C7";
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
* init sets some initial options for the default graph. i.e for when the page
|
* init sets some initial options for the default graph. i.e for when the page
|
||||||
* is initially loaded or when its refreshed or when all the checkboxes on the
|
* is initially loaded or when its refreshed or when all the checkboxes on the
|
||||||
* page are unchecked.
|
* page are unchecked.
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
package edu.cornell.mannlib.vitro.webapp.controller.visualization.freemarker;
|
|
||||||
|
|
||||||
public class VisualizationController {
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
package edu.cornell.mannlib.vitro.webapp.visualization.coprincipalinvestigator;
|
package edu.cornell.mannlib.vitro.webapp.visualization.coprincipalinvestigator;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -33,7 +35,10 @@ import edu.cornell.mannlib.vitro.webapp.visualization.valueobjects.Grant;
|
||||||
import edu.cornell.mannlib.vitro.webapp.visualization.valueobjects.CoPINode;
|
import edu.cornell.mannlib.vitro.webapp.visualization.valueobjects.CoPINode;
|
||||||
import edu.cornell.mannlib.vitro.webapp.visualization.visutils.QueryRunner;
|
import edu.cornell.mannlib.vitro.webapp.visualization.visutils.QueryRunner;
|
||||||
import edu.cornell.mannlib.vitro.webapp.visualization.visutils.UniqueIDGenerator;
|
import edu.cornell.mannlib.vitro.webapp.visualization.visutils.UniqueIDGenerator;
|
||||||
|
/**
|
||||||
|
* @author bkoniden
|
||||||
|
* Deepak Konidena
|
||||||
|
*/
|
||||||
public class CoPIGrantCountQueryRunner implements QueryRunner<CoPIData> {
|
public class CoPIGrantCountQueryRunner implements QueryRunner<CoPIData> {
|
||||||
|
|
||||||
private static final int MAX_PI_PER_GRANT_ALLOWED = 100;
|
private static final int MAX_PI_PER_GRANT_ALLOWED = 100;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
package edu.cornell.mannlib.vitro.webapp.visualization.coprincipalinvestigator;
|
package edu.cornell.mannlib.vitro.webapp.visualization.coprincipalinvestigator;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -27,7 +28,10 @@ import edu.cornell.mannlib.vitro.webapp.visualization.valueobjects.CoPINode;
|
||||||
import edu.cornell.mannlib.vitro.webapp.visualization.visutils.QueryRunner;
|
import edu.cornell.mannlib.vitro.webapp.visualization.visutils.QueryRunner;
|
||||||
import edu.cornell.mannlib.vitro.webapp.visualization.visutils.UtilityFunctions;
|
import edu.cornell.mannlib.vitro.webapp.visualization.visutils.UtilityFunctions;
|
||||||
import edu.cornell.mannlib.vitro.webapp.visualization.visutils.VisualizationRequestHandler;
|
import edu.cornell.mannlib.vitro.webapp.visualization.visutils.VisualizationRequestHandler;
|
||||||
|
/**
|
||||||
|
* @author bkoniden
|
||||||
|
* Deepak Konidena
|
||||||
|
*/
|
||||||
public class CoPIGrantCountRequestHandler implements VisualizationRequestHandler{
|
public class CoPIGrantCountRequestHandler implements VisualizationRequestHandler{
|
||||||
|
|
||||||
public void generateVisualization(VitroRequest vitroRequest, HttpServletRequest request, HttpServletResponse response, Log log, DataSource dataSource){
|
public void generateVisualization(VitroRequest vitroRequest, HttpServletRequest request, HttpServletResponse response, Log log, DataSource dataSource){
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
package edu.cornell.mannlib.vitro.webapp.visualization.coprincipalinvestigator;
|
package edu.cornell.mannlib.vitro.webapp.visualization.coprincipalinvestigator;
|
||||||
|
|
||||||
import edu.cornell.mannlib.vitro.webapp.controller.visualization.VisualizationController;
|
import edu.cornell.mannlib.vitro.webapp.controller.visualization.VisualizationController;
|
||||||
|
@ -13,7 +15,10 @@ import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
/**
|
||||||
|
* @author bkoniden
|
||||||
|
* Deepak Konidena
|
||||||
|
*/
|
||||||
public class CoPIGraphMLWriter {
|
public class CoPIGraphMLWriter {
|
||||||
|
|
||||||
private StringBuilder coPIGraphMLContent;
|
private StringBuilder coPIGraphMLContent;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
package edu.cornell.mannlib.vitro.webapp.visualization.coprincipalinvestigator;
|
package edu.cornell.mannlib.vitro.webapp.visualization.coprincipalinvestigator;
|
||||||
|
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
|
@ -7,6 +9,7 @@ import edu.cornell.mannlib.vitro.webapp.visualization.valueobjects.CoPINode;
|
||||||
/**
|
/**
|
||||||
* This Comparator is used to sort the CoPINodes based on their IDs in ascending order.
|
* This Comparator is used to sort the CoPINodes based on their IDs in ascending order.
|
||||||
* @author bkoniden
|
* @author bkoniden
|
||||||
|
* Deepak Konidena
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class CoPINodeComparator implements Comparator<CoPINode>{
|
public class CoPINodeComparator implements Comparator<CoPINode>{
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
package edu.cornell.mannlib.vitro.webapp.visualization.entitycomparison;
|
package edu.cornell.mannlib.vitro.webapp.visualization.entitycomparison;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
@ -27,6 +28,10 @@ import edu.cornell.mannlib.vitro.webapp.visualization.visutils.QueryRunner;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author bkoniden
|
||||||
|
* Deepak Konidena
|
||||||
|
*/
|
||||||
public class EntitySubOrganizationTypesQueryRunner implements QueryRunner<Map<String, Set<String>>> {
|
public class EntitySubOrganizationTypesQueryRunner implements QueryRunner<Map<String, Set<String>>> {
|
||||||
|
|
||||||
protected static final Syntax SYNTAX = Syntax.syntaxARQ;
|
protected static final Syntax SYNTAX = Syntax.syntaxARQ;
|
||||||
|
|
|
@ -1,53 +0,0 @@
|
||||||
package edu.cornell.mannlib.vitro.webapp.visualization.freemarker;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
|
||||||
|
|
||||||
import com.hp.hpl.jena.query.DataSource;
|
|
||||||
|
|
||||||
import edu.cornell.mannlib.vitro.webapp.beans.Portal;
|
|
||||||
import edu.cornell.mannlib.vitro.webapp.controller.VitroRequest;
|
|
||||||
import edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServlet;
|
|
||||||
import edu.cornell.mannlib.vitro.webapp.controller.visualization.VisualizationFrameworkConstants;
|
|
||||||
import edu.cornell.mannlib.vitro.webapp.visualization.visutils.VisualizationRequestHandler;
|
|
||||||
|
|
||||||
|
|
||||||
public class VisTestController extends FreemarkerHttpServlet implements VisualizationRequestHandler {
|
|
||||||
|
|
||||||
private static final String TEMPLATE_DEFAULT = "vistest.ftl";
|
|
||||||
|
|
||||||
public void generateVisualization(VitroRequest vitroRequest, HttpServletRequest request, HttpServletResponse response, Log log, DataSource dataSource){
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected ResponseValues processRequest(VitroRequest vitroRequest){
|
|
||||||
|
|
||||||
Portal portal = vitroRequest.getPortal();
|
|
||||||
Map<String, Object> body = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
String egoURI = vitroRequest.getParameter(VisualizationFrameworkConstants.INDIVIDUAL_URI_KEY);
|
|
||||||
String renderMode = vitroRequest.getParameter(VisualizationFrameworkConstants.RENDER_MODE_KEY);
|
|
||||||
String visMode = vitroRequest.getParameter(VisualizationFrameworkConstants.VIS_MODE_KEY);
|
|
||||||
|
|
||||||
List<String> parameters = new ArrayList<String>();
|
|
||||||
|
|
||||||
parameters.add(egoURI);
|
|
||||||
parameters.add(renderMode);
|
|
||||||
parameters.add(visMode);
|
|
||||||
|
|
||||||
body.put("parameters", parameters);
|
|
||||||
body.put("title", getTitle("VIVO Vis"));
|
|
||||||
|
|
||||||
return new TemplateResponseValues(TEMPLATE_DEFAULT, body);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,8 +1,13 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
/**
|
||||||
|
* @author bkoniden
|
||||||
|
* Deepak Konidena
|
||||||
|
*
|
||||||
|
*/
|
||||||
public class Child extends Individual {
|
public class Child extends Individual {
|
||||||
|
|
||||||
Set<BiboDocument> documents = new HashSet<BiboDocument>();
|
Set<BiboDocument> documents = new HashSet<BiboDocument>();
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
@ -13,7 +14,7 @@ import edu.cornell.mannlib.vitro.webapp.visualization.visutils.UtilityFunctions;
|
||||||
/**
|
/**
|
||||||
* This stores edge information for Co-PI vis.
|
* This stores edge information for Co-PI vis.
|
||||||
* @author bkoniden
|
* @author bkoniden
|
||||||
*
|
* Deepak Konidena
|
||||||
*/
|
*/
|
||||||
public class CoPIEdge {
|
public class CoPIEdge {
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
@ -13,6 +14,7 @@ import edu.cornell.mannlib.vitro.webapp.visualization.visutils.UtilityFunctions;
|
||||||
/**
|
/**
|
||||||
* CoPINode is the node in a CoPI vis.
|
* CoPINode is the node in a CoPI vis.
|
||||||
* @author bkoniden
|
* @author bkoniden
|
||||||
|
* Deepak Konidena
|
||||||
*/
|
*/
|
||||||
public class CoPINode extends Individual {
|
public class CoPINode extends Individual {
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,13 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author bkoniden
|
||||||
|
* Deepak Konidena
|
||||||
|
*
|
||||||
|
*/
|
||||||
public class Department extends Individual{
|
public class Department extends Individual{
|
||||||
|
|
||||||
Set<BiboDocument> publication;
|
Set<BiboDocument> publication;
|
||||||
|
|
|
@ -1,9 +1,15 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.LinkedHashSet;
|
import java.util.LinkedHashSet;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author bkoniden
|
||||||
|
* Deepak Konidena
|
||||||
|
*
|
||||||
|
*/
|
||||||
public class Entity extends Individual{
|
public class Entity extends Individual{
|
||||||
|
|
||||||
Set<BiboDocument> publications = new HashSet<BiboDocument>();
|
Set<BiboDocument> publications = new HashSet<BiboDocument>();
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
||||||
|
|
||||||
import edu.cornell.mannlib.vitro.webapp.visualization.constants.VOConstants;
|
import edu.cornell.mannlib.vitro.webapp.visualization.constants.VOConstants;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author bkoniden
|
||||||
|
* Deepak Konidena
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
public class Grant extends Individual {
|
public class Grant extends Individual {
|
||||||
|
|
||||||
private String grantStartYear;
|
private String grantStartYear;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -7,7 +8,7 @@ import java.util.List;
|
||||||
* JsonObject is used for creating data in JSON format,
|
* JsonObject is used for creating data in JSON format,
|
||||||
* by just using the fields that are required to be included.
|
* by just using the fields that are required to be included.
|
||||||
* @author bkoniden
|
* @author bkoniden
|
||||||
*
|
* Deepak Konidena
|
||||||
*/
|
*/
|
||||||
public class JsonObject {
|
public class JsonObject {
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author bkoniden
|
||||||
|
* Deepak Konidena
|
||||||
|
*/
|
||||||
public class Person extends Individual {
|
public class Person extends Individual {
|
||||||
|
|
||||||
Set<BiboDocument> documents = new HashSet<BiboDocument>();
|
Set<BiboDocument> documents = new HashSet<BiboDocument>();
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
package edu.cornell.mannlib.vitro.webapp.visualization.valueobjects;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
@ -5,6 +6,10 @@ import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author bkoniden
|
||||||
|
* Deepak Konidena
|
||||||
|
*/
|
||||||
public class SubEntity extends Individual {
|
public class SubEntity extends Individual {
|
||||||
|
|
||||||
Set<BiboDocument> publications = new HashSet<BiboDocument>();
|
Set<BiboDocument> publications = new HashSet<BiboDocument>();
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
@CHARSET "UTF-8";
|
@CHARSET "UTF-8";
|
||||||
|
|
||||||
head,#body {
|
head,#body {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue