Made the following changes:
1) Rewrote queries for CoPIGrantCount and PersonGrantCount -- Fixed a major bug 2) lots of styling changes to coauthor_style.css and page.css and couple of changes to person_level.jsp to incorporate new changes from Elisha's mockup. 3) Increased the width of sparklines to 150px. The text surrounding the sparklines needs to be further styled.
This commit is contained in:
parent
42130a615a
commit
7dc4628302
11 changed files with 620 additions and 280 deletions
|
@ -9,33 +9,36 @@
|
|||
<c:url var="visImageContextPath" value="/${themeDir}site_icons/visualization/" />
|
||||
<c:url var="loadingImageLink" value="/${themeDir}site_icons/visualization/ajax-loader.gif"></c:url>
|
||||
|
||||
<!-- Co-Author section -->
|
||||
|
||||
<c:set var='egoPubSparkline' value='${requestScope.egoPubSparklineVO}' />
|
||||
<c:set var='egoGrantSparkline' value='${requestScope.egoGrantSparklineVO}' />
|
||||
<c:set var='uniqueCoauthorsSparkline' value='${requestScope.uniqueCoauthorsSparklineVO}' />
|
||||
<c:set var='uniqueCopisSparkline' value='${requestScope.uniqueCopisSparklineVO}' />
|
||||
|
||||
|
||||
<c:set var='egoPubSparklineContainerID' value='${requestScope.egoPubSparklineContainerID}' />
|
||||
<c:set var='uniqueCoauthorsSparklineVisContainerID' value='${requestScope.uniqueCoauthorsSparklineVisContainerID}' />
|
||||
|
||||
<c:set var='numOfAuthors' value='${requestScope.numOfAuthors}' />
|
||||
<c:set var='numOfCoAuthorShips' value='${requestScope.numOfCoAuthorShips}' />
|
||||
|
||||
<c:url var="coAuthorshipDownloadFile" value="/visualization">
|
||||
<c:param name="vis" value="person_level" />
|
||||
<c:param name="render_mode" value="data" />
|
||||
<c:param name="uri" value="${requestScope.egoURIParam}" />
|
||||
</c:url>
|
||||
|
||||
<c:url var="coauthorshipURL" value="/visualization">
|
||||
<c:param name="vis" value="person_level"/>
|
||||
<c:param name="render_mode" value="standalone"/>
|
||||
<c:param name="uri" value="${requestScope.egoURIParam}"/>
|
||||
<c:param name = "vis_mode" value = "coauthorship"/>
|
||||
</c:url>
|
||||
|
||||
|
||||
<!-- Co-PI section -->
|
||||
|
||||
<c:set var='egoGrantSparkline' value='${requestScope.egoGrantSparklineVO}' />
|
||||
<c:set var='uniqueCopisSparkline' value='${requestScope.uniqueCopisSparklineVO}' />
|
||||
<c:set var='numOfInvestigators' value='${requestScope.numOfInvestigators}' />
|
||||
<c:set var='numOfCoPIs' value='${requestScope.numOfCoPIs}' />
|
||||
|
||||
|
||||
<c:url var="egoVivoProfileURL" value="/individual">
|
||||
<c:param name="uri" value="${requestScope.egoURIParam}" />
|
||||
</c:url>
|
||||
|
||||
<c:url var="egoSparklineDataURL" value="/visualization">
|
||||
<c:param name="render_mode" value="data" />
|
||||
<c:param name="vis" value="person_pub_count" />
|
||||
<c:param name="uri" value="${requestScope.egoURIParam}" />
|
||||
</c:url>
|
||||
|
||||
<c:url var="coAuthorshipDownloadFile" value="/visualization">
|
||||
<!-- Needs to be changed -->
|
||||
<c:url var="coprincipalinvestigatorDownloadFile" value="/visualization">
|
||||
<c:param name="vis" value="person_level" />
|
||||
<c:param name="render_mode" value="data" />
|
||||
<c:param name="uri" value="${requestScope.egoURIParam}" />
|
||||
|
@ -48,19 +51,32 @@
|
|||
<c:param name = "vis_mode" value = "copi"/>
|
||||
</c:url>
|
||||
|
||||
<c:url var="coauthorshipURL" value="/visualization">
|
||||
<c:param name="vis" value="person_level"/>
|
||||
<c:param name="render_mode" value="standalone"/>
|
||||
<c:param name="uri" value="${requestScope.egoURIParam}"/>
|
||||
<c:param name = "vis_mode" value = "coauthorship"/>
|
||||
<!-- Common section -->
|
||||
|
||||
<c:set var='egoPubSparklineContainerID' value='${requestScope.egoPubSparklineContainerID}' />
|
||||
<c:set var='uniqueCoauthorsSparklineVisContainerID' value='${requestScope.uniqueCoauthorsSparklineVisContainerID}' />
|
||||
|
||||
<c:url var="egoVivoProfileURL" value="/individual">
|
||||
<c:param name="uri" value="${requestScope.egoURIParam}" />
|
||||
</c:url>
|
||||
|
||||
<!-- Needs to be changed based on visMode-->
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
|
||||
<c:choose>
|
||||
<c:when test='${visMode == "coauthorship"}'>
|
||||
<c:if test='${numOfCoAuthorShips > 0}'>
|
||||
$("#coauth_table_container").empty().html('<img id="loadingData" with="auto" src="${loadingImageLink}" />');
|
||||
$("#coauth_table_container").empty().html('<img id="loadingData" width="auto" src="${loadingImageLink}" />');
|
||||
</c:if>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:if test='${numOfCoPIs > 0}'>
|
||||
$("#coauth_table_container").empty().html('<img id="loadingData" width="auto" src="${loadingImageLink}" />');
|
||||
</c:if>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
|
||||
processProfileInformation("ego_label",
|
||||
|
@ -68,6 +84,9 @@ $(document).ready(function(){
|
|||
"ego_profile_image",
|
||||
jQuery.parseJSON(getWellFormedURLs("${requestScope.egoURIParam}", "profile_info")));
|
||||
|
||||
|
||||
<c:choose>
|
||||
<c:when test='${visMode == "coauthorship"}'>
|
||||
<c:if test='${empty numOfCoAuthorShips || empty numOfAuthors}'>
|
||||
|
||||
if ($('#ego_label').text().length > 0) {
|
||||
|
@ -75,87 +94,51 @@ $(document).ready(function(){
|
|||
}
|
||||
|
||||
</c:if>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:if test='${empty numOfCoPIs || empty numOfInvestigators}'>
|
||||
|
||||
if ($('#ego_label').text().length > 0) {
|
||||
setProfileName('no_coauthorships_person', $('#ego_label').text());
|
||||
}
|
||||
|
||||
</c:if>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
});
|
||||
</script>
|
||||
|
||||
<div id="body">
|
||||
<c:choose>
|
||||
<c:when test='${visMode == "coauthorship"}'>
|
||||
|
||||
<!--[if IE]>
|
||||
<style type="text/css">
|
||||
<c:url var="egoSparklineDataURL" value="/visualization">
|
||||
<c:param name="render_mode" value="data" />
|
||||
<c:param name="vis" value="person_pub_count" />
|
||||
<c:param name="uri" value="${requestScope.egoURIParam}" />
|
||||
</c:url>
|
||||
|
||||
#${egoPubSparklineContainerID},
|
||||
#${uniqueCoauthorsSparklineVisContainerID} {
|
||||
padding-bottom:15px;
|
||||
}
|
||||
|
||||
#ego_label {
|
||||
margin-left:-3px;
|
||||
}
|
||||
</style>
|
||||
<![endif]-->
|
||||
|
||||
<div id="ego_profile">
|
||||
|
||||
|
||||
<%-- Image --%>
|
||||
<div id="ego_profile_image" class="thumbnail"></div>
|
||||
<div id="body">
|
||||
<div id="ego_profile">
|
||||
|
||||
<%-- Label --%>
|
||||
<h2><a href="${egoVivoProfileURL}"><span id="ego_label" class="author_name"></span></a></h2>
|
||||
<h2 style="width:20%"><a href="${egoVivoProfileURL}"><span id="ego_label" class="author_name"></span></a></h2>
|
||||
|
||||
<%-- Moniker--%>
|
||||
<span id="ego_moniker" class="author_moniker"></span>
|
||||
<em id="ego_moniker" class="moniker"></em>
|
||||
|
||||
<c:choose>
|
||||
<c:when test='${visMode == "coauthorship"}'>
|
||||
<h2 class = "toggle_visualization" style="text-align:center; clear: left;">Co-Investigator Network</h2>
|
||||
<a href='<c:out value="${coprincipalinvestigatorURL}"/>'>view</a>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<h2 class = "toggle_visualization" style="text-align:center; clear: left;">
|
||||
<a href='<c:out value="${coauthorshipURL}"/>'> Co-Author Network</a>
|
||||
</h2>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<div class = "toggle_visualization">
|
||||
<h2>Co-Investigator Network</h2>
|
||||
<a style = "margin-top:0px;" class="view-all-style" href='<c:out value="${coprincipalinvestigatorURL}"/>'>View</a>
|
||||
<span class="pictos-arrow-10">4</span>
|
||||
</div>
|
||||
|
||||
<div style="clear:both;"></div>
|
||||
|
||||
<c:choose>
|
||||
<c:when test='${numOfAuthors > 0}'>
|
||||
|
||||
<%-- Sparkline --%>
|
||||
<h2 class="sub_headings">General Statistics</h2>
|
||||
<c:choose>
|
||||
<c:when test='${visMode == "coauthorship"}'>
|
||||
<div id="${egoPubSparklineContainerID}">
|
||||
${egoPubSparkline.sparklineContent}
|
||||
</div>
|
||||
|
||||
<div id="${uniqueCoauthorsSparklineVisContainerID}">
|
||||
${uniqueCoauthorsSparkline.sparklineContent}
|
||||
</div>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<div id="${egoPubSparklineContainerID}">
|
||||
${egoGrantSparkline.sparklineContent}
|
||||
</div>
|
||||
|
||||
<div id="${uniqueCoauthorsSparklineVisContainerID}">
|
||||
${uniqueCopisSparkline.sparklineContent}
|
||||
</div>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
|
||||
<c:choose>
|
||||
<c:when test='${visMode == "coauthorship"}'>
|
||||
<h2 class="sub_headings">Co-Author Network </h2>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<h2 class="sub_headings">Co-PI Network </h2>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<c:choose>
|
||||
<c:when test="${numOfCoAuthorShips > 0 || numOfAuthors > 0}">
|
||||
<a class = "fileDownloadPlaceHolder" href="${coAuthorshipDownloadFile}">(GraphML File)</a>
|
||||
|
@ -166,24 +149,24 @@ $(document).ready(function(){
|
|||
</c:if>
|
||||
|
||||
<span id="no_coauthorships">Currently there are no ${authorsText} papers for
|
||||
<a href="${egoVivoProfileURL}"><span id="no_coauthorships_person" class="author_name">this author</span></a> in the VIVO database.</span>
|
||||
<a href="${egoVivoProfileURL}"><span id="no_coauthorships_person" class="author_name">this author</span></a>
|
||||
in the VIVO database.
|
||||
</span>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<span id="no_coauthorships">Currently there are no papers for <a href="${egoVivoProfileURL}"><span id="no_coauthorships_person" class="author_name">
|
||||
this author</span></a> in the VIVO database.</span>
|
||||
<span id="no_coauthorships">Currently there are no papers for
|
||||
<a href="${egoVivoProfileURL}"><span id="no_coauthorships_person" class="author_name">
|
||||
this author</span></a> in the VIVO database.
|
||||
</span>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
</div>
|
||||
|
||||
<c:if test='${numOfCoAuthorShips > 0 || numOfAuthors > 0}'>
|
||||
|
||||
<div id="bodyPannel">
|
||||
|
||||
</div>
|
||||
|
||||
<c:if test='${numOfCoAuthorShips > 0 || numOfAuthors > 0}'>
|
||||
<div id="bodyPannel">
|
||||
<div id="visPanel" style="float: right; width: 600px;">
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
<!--
|
||||
|
@ -191,12 +174,8 @@ $(document).ready(function(){
|
|||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<c:choose>
|
||||
<c:when test='${visMode == "coauthorship"}'>
|
||||
<div id="dataPanel">
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<h4 id ="profileTitle"> <b>Profile</b></h4>
|
||||
<div id="profileImage" class="thumbnail"></div>
|
||||
|
||||
<div class="bold"><strong><span id="authorName" class="neutral_author_name"> </span></strong></div>
|
||||
|
@ -212,40 +191,25 @@ $(document).ready(function(){
|
|||
<div id="incomplete-data">Note: This information is based solely on publications which have been loaded into the VIVO system.
|
||||
This may only be a small sample of the person's total work. </div>
|
||||
</div>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<div id="dataPanel">
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<div id="profileImage" class="thumbnail"></div>
|
||||
|
||||
<div class="bold"><strong><span id="authorName" class="neutral_author_name"> </span></strong></div>
|
||||
|
||||
<div class="italicize"><span id="profileMoniker" class="author_moniker"></span></div>
|
||||
<div><a href="#" id="profileUrl">VIVO profile</a> | <a href="#" id="coAuthorshipVisUrl">Co-PI network</a></div>
|
||||
<br />
|
||||
<div class="author_stats" id="num_works"><span class="numbers" style="width: 40px;" id="works"></span> <span class="author_stats_text">Grant(s)</span></div>
|
||||
<div class="author_stats" id="num_authors"><span class="numbers" style="width: 40px;" id="coAuthors"></span> <span class="author_stats_text">Co-PI(s)</span></div>
|
||||
|
||||
<div class="author_stats" id="fPub" style="visibility:hidden"><span class="numbers" style="width:40px;" id="firstPublication"></span> <span>First Grant</span></div>
|
||||
<div class="author_stats" id="lPub" style="visibility:hidden"><span class="numbers" style="width:40px;" id="lastPublication"></span> <span>Last Grant</span></div>
|
||||
<div id="incomplete-data">Note: This information is based solely on publications which have been loaded into the VIVO system.
|
||||
This may only be a small sample of the person's total work. </div>
|
||||
</div>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</div>
|
||||
</c:if>
|
||||
|
||||
</c:if>
|
||||
<%-- Sparkline --%>
|
||||
<div style="width: 60%; height: 100px; float:right;">
|
||||
<div id="${egoPubSparklineContainerID}" style="float: left; width: 40%">
|
||||
${egoPubSparkline.sparklineContent}
|
||||
</div>
|
||||
|
||||
<div id="${uniqueCoauthorsSparklineVisContainerID}" style="float: right;width: 40%">
|
||||
${uniqueCoauthorsSparkline.sparklineContent}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<c:choose>
|
||||
<c:when test='${visMode == "coauthorship"}'>
|
||||
<c:if test='${numOfAuthors > 0}'>
|
||||
|
||||
<div class="vis_stats">
|
||||
|
||||
<h3 class="sub_headings">Tables</h3>
|
||||
<h3 class="sub_headings" id="table_heading">Tables</h3>
|
||||
|
||||
<div class="vis-tables">
|
||||
<p id="publications_table_container" class="datatable">
|
||||
|
@ -261,17 +225,111 @@ $(document).ready(function(){
|
|||
|
||||
</c:if>
|
||||
|
||||
<div style="clear:both;"></div>
|
||||
<div style="clear:both"></div>
|
||||
|
||||
</div>
|
||||
</c:if>
|
||||
</div>
|
||||
</c:when>
|
||||
|
||||
<c:otherwise>
|
||||
<c:url var="egoSparklineDataURL" value="/visualization">
|
||||
<c:param name="render_mode" value="data" />
|
||||
<c:param name="vis" value="person_pub_count" />
|
||||
<c:param name="uri" value="${requestScope.egoURIParam}" />
|
||||
</c:url>
|
||||
|
||||
<div id="body">
|
||||
<div id="ego_profile">
|
||||
|
||||
<%-- Label --%>
|
||||
<h2 style="width:20%"><a href="${egoVivoProfileURL}"><span id="ego_label" class="author_name"></span></a></h2>
|
||||
|
||||
<%-- Moniker--%>
|
||||
<em id="ego_moniker" class="moniker"></em>
|
||||
|
||||
<div class = "toggle_visualization" style="text-align:center; clear: left;">
|
||||
<h2>Co-Author Network</h2>
|
||||
<a class="view-all-style" href='<c:out value="${coprincipalinvestigatorURL}"/>'>View</a>
|
||||
<span class="pictos-arrow-10">4</span>
|
||||
</div>
|
||||
|
||||
<div style="clear:both;"></div>
|
||||
|
||||
<c:choose>
|
||||
<c:when test='${numOfInvestigators > 0}'>
|
||||
|
||||
<h2 class="sub_headings">Co-Investigator Network </h2>
|
||||
<c:choose>
|
||||
<c:when test="${numOfCoPIs > 0 || numOfInvestigators > 0}">
|
||||
<a class = "fileDownloadPlaceHolder" href="${coprincipalinvestigatorDownloadFile}">(GraphML File)</a>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:if test='${numOfInvestigators > 0}'>
|
||||
<c:set var='authorsText' value='multi-author' />
|
||||
</c:if>
|
||||
|
||||
<span id="no_coauthorships">Currently there are no ${authorsText} grants for
|
||||
<a href="${egoVivoProfileURL}"><span id="no_coauthorships_person" class="author_name">this investigator</span></a> in the VIVO database.</span>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<span id="no_coauthorships">Currently there are no ${authorsText} grants for
|
||||
<a href="${egoVivoProfileURL}"><span id="no_coauthorships_person" class="author_name">this investigator</span></a> in the VIVO database.
|
||||
</span>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</div>
|
||||
|
||||
<c:if test='${numOfCoPIs > 0 || numOfInvestigators > 0}'>
|
||||
<div id="bodyPannel">
|
||||
<div id="visPanel" style="float: right; width: 600px;">
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
<!--
|
||||
renderCoAuthorshipVisualization();
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<div id="dataPanel">
|
||||
|
||||
<h4 id ="profileTitle"> <b>Profile</b></h4>
|
||||
<div id="profileImage" class="thumbnail"></div>
|
||||
|
||||
<div class="bold"><strong><span id="authorName" class="neutral_author_name"> </span></strong></div>
|
||||
|
||||
<div class="italicize"><span id="profileMoniker" class="author_moniker"></span></div>
|
||||
<div><a href="#" id="profileUrl">VIVO profile</a> | <a href="#" id="coAuthorshipVisUrl">Co-PI network</a></div>
|
||||
<br />
|
||||
<div class="author_stats" id="num_works"><span class="numbers" style="width: 40px;" id="works"></span> <span class="author_stats_text">Grant(s)</span></div>
|
||||
<div class="author_stats" id="num_authors"><span class="numbers" style="width: 40px;" id="coAuthors"></span> <span class="author_stats_text">Co-PI(s)</span></div>
|
||||
|
||||
<div class="author_stats" id="fPub" style="visibility:hidden"><span class="numbers" style="width:40px;" id="firstPublication"></span> <span>First Grant</span></div>
|
||||
<div class="author_stats" id="lPub" style="visibility:hidden"><span class="numbers" style="width:40px;" id="lastPublication"></span> <span>Last Grant</span></div>
|
||||
<div id="incomplete-data">Note: This information is based solely on grants which have been loaded into the VIVO system.
|
||||
This may only be a small sample of the person's total work. </div>
|
||||
</div>
|
||||
</div>
|
||||
</c:if>
|
||||
|
||||
<%-- Sparkline --%>
|
||||
<div style="width: 60%; height: 100px; float:right;">
|
||||
|
||||
<div id="${egoPubSparklineContainerID}" style="float: left;width: 40%">
|
||||
${egoGrantSparkline.sparklineContent}
|
||||
</div>
|
||||
|
||||
<div id="${uniqueCoauthorsSparklineVisContainerID}" style="float: right;width: 40%">
|
||||
${uniqueCopisSparkline.sparklineContent}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<c:if test='${numOfInvestigators > 0}'>
|
||||
|
||||
<div class="vis_stats">
|
||||
|
||||
<h2 class="sub_headings">Tables</h2>
|
||||
<h3 class="sub_headings" id="table_heading">Tables</h3>
|
||||
|
||||
<div class="vis-tables">
|
||||
<p id="publications_table_container" class="datatable">
|
||||
|
@ -291,7 +349,8 @@ $(document).ready(function(){
|
|||
|
||||
</div>
|
||||
</c:if>
|
||||
</div>
|
||||
|
||||
</c:otherwise>
|
||||
|
||||
</c:choose>
|
||||
</div>
|
|
@ -227,7 +227,7 @@ public class CoAuthorshipVisCodeGenerator {
|
|||
}
|
||||
|
||||
|
||||
String sparklineDisplayOptions = "{width: 65, height: 30, showAxisLines: false, "
|
||||
String sparklineDisplayOptions = "{width: 150, height: 30, showAxisLines: false, "
|
||||
+ "showValueLabels: false, labelPosition: 'none'}";
|
||||
|
||||
if (providedVisContainerID != null) {
|
||||
|
@ -397,7 +397,7 @@ public class CoAuthorshipVisCodeGenerator {
|
|||
+ unknownYearCoauthors) + "');");
|
||||
|
||||
visualizationCode.append("var allSparksText = ''"
|
||||
+ "+ ' co-author(s) from '"
|
||||
+ "+ ' <h3>co-author(s)</h3> from '"
|
||||
+ "+ ' <span class=\"sparkline_range\">"
|
||||
+ "" + minPubYearConsidered + " to " + currentYear + ""
|
||||
+ "</span> '"
|
||||
|
|
|
@ -80,20 +80,100 @@ public class CoPIGrantCountQueryRunner implements QueryRunner<CoPIData> {
|
|||
+ " (str(?GrantEndDate) as ?" + QueryFieldLabels.GRANT_END_DATE + ") "
|
||||
+ " (str(?CoPI) as ?" + QueryFieldLabels.CO_PI_URL + ") "
|
||||
+ " (str(?CoPILabel) as ?" + QueryFieldLabels.CO_PI_LABEL + ") "
|
||||
+ "WHERE { "
|
||||
+ "<" + queryURI + "> rdfs:label ?PILabel ;"
|
||||
+ " core:hasCo-PrincipalInvestigatorRole ?Role . "
|
||||
+ "WHERE "
|
||||
+ "{ "
|
||||
+ "<" + queryURI + "> rdfs:label ?PILabel . "
|
||||
+ "{ "
|
||||
|
||||
+ "<" + queryURI + "> core:hasCo-PrincipalInvestigatorRole ?Role . "
|
||||
|
||||
+ "?Role core:roleIn ?Grant . "
|
||||
|
||||
+ "?Grant rdfs:label ?GrantLabel ; "
|
||||
+ "core:startDate ?GrantStartDate ; "
|
||||
+ "core:endDate ?GrantEndDate ;"
|
||||
|
||||
+ "core:relatedRole ?RelatedRole . "
|
||||
+ "?RelatedRole core:co-PrincipalInvestigatorRoleOf ?CoPI . "
|
||||
|
||||
+ "?RelatedRole core:principalInvestigatorRoleOf ?CoPI . "
|
||||
|
||||
+ "?CoPI rdfs:label ?CoPILabel . "
|
||||
+ " }";
|
||||
|
||||
+ "OPTIONAL { ?Grant core:startDate ?GrantStartDate } . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:endDate ?GrantEndDate } . "
|
||||
|
||||
+ "} "
|
||||
|
||||
+ "UNION "
|
||||
|
||||
+ "{ "
|
||||
|
||||
+ "<" + queryURI + "> core:hasPrincipalInvestigatorRole ?Role . "
|
||||
|
||||
+ "?Role core:roleIn ?Grant . "
|
||||
|
||||
+ "?Grant rdfs:label ?GrantLabel ; "
|
||||
|
||||
+ "core:relatedRole ?RelatedRole . "
|
||||
|
||||
+ "?RelatedRole core:principalInvestigatorRoleOf ?CoPI . "
|
||||
|
||||
+ "?CoPI rdfs:label ?CoPILabel . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:startDate ?GrantStartDate } . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:endDate ?GrantEndDate } . "
|
||||
|
||||
+ "} "
|
||||
|
||||
+ "UNION "
|
||||
|
||||
+ "{ "
|
||||
|
||||
+ "<" + queryURI + "> core:hasCo-PrincipalInvestigatorRole ?Role . "
|
||||
|
||||
+ "?Role core:roleIn ?Grant . "
|
||||
|
||||
+ "?Grant rdfs:label ?GrantLabel ; "
|
||||
|
||||
+ "core:relatedRole ?RelatedRole . "
|
||||
|
||||
+ "?RelatedRole core:co-PrincipalInvestigatorRoleOf ?CoPI . "
|
||||
|
||||
+ "?CoPI rdfs:label ?CoPILabel . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:startDate ?GrantStartDate } . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:endDate ?GrantEndDate } . "
|
||||
|
||||
+ "} "
|
||||
|
||||
+ "UNION "
|
||||
|
||||
+ "{ "
|
||||
|
||||
+ "<" + queryURI + "> core:hasPrincipalInvestigatorRole ?Role . "
|
||||
|
||||
+ "?Role core:roleIn ?Grant . "
|
||||
|
||||
+ "?Grant rdfs:label ?GrantLabel ; "
|
||||
|
||||
+ "core:relatedRole ?RelatedRole . "
|
||||
|
||||
+ "?RelatedRole core:co-PrincipalInvestigatorRoleOf ?CoPI . "
|
||||
|
||||
+ "?CoPI rdfs:label ?CoPILabel . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:startDate ?GrantStartDate } . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:endDate ?GrantEndDate } . "
|
||||
+ "} "
|
||||
|
||||
+ "} ";
|
||||
|
||||
log.debug("COPI QUERY - " + sparqlQuery);
|
||||
|
||||
//System.out.println("\n\nCOPI QUERY - " + sparqlQuery + "\n\n");
|
||||
|
||||
return sparqlQuery;
|
||||
}
|
||||
|
||||
|
|
|
@ -223,7 +223,7 @@ public class CoPIVisCodeGenerator {
|
|||
VOConstants.DEFAULT_GRANT_YEAR).size();
|
||||
}
|
||||
|
||||
String sparklineDisplayOptions = "{width: 65, height: 30, showAxisLines: false, "
|
||||
String sparklineDisplayOptions = "{width: 150, height: 30, showAxisLines: false, "
|
||||
+ "showValueLabels: false, labelPosition: 'none'}";
|
||||
|
||||
if (providedVisContainerID != null) {
|
||||
|
@ -391,7 +391,7 @@ public class CoPIVisCodeGenerator {
|
|||
+ unknownYearGrants) + "');");
|
||||
|
||||
visualizationCode.append("var allSparksText = ''"
|
||||
+ "+ ' Co-Principal Investigator(s) '"
|
||||
+ "+ ' <h3>Co-Principal Investigator(s)</h3> '"
|
||||
+ "+ ' from "
|
||||
+ "<span class=\"sparkline_range\">"
|
||||
+ "" + minGrantYearConsidered + " to " + currentYear + ""
|
||||
|
|
|
@ -80,23 +80,104 @@ public class CoPIGrantCountQueryRunner implements QueryRunner<CoPIData> {
|
|||
+ " (str(?GrantEndDate) as ?" + QueryFieldLabels.GRANT_END_DATE + ") "
|
||||
+ " (str(?CoPI) as ?" + QueryFieldLabels.CO_PI_URL + ") "
|
||||
+ " (str(?CoPILabel) as ?" + QueryFieldLabels.CO_PI_LABEL + ") "
|
||||
+ "WHERE { "
|
||||
+ "<" + queryURI + "> rdfs:label ?PILabel ;"
|
||||
+ " core:hasCo-PrincipalInvestigatorRole ?Role . "
|
||||
+ "WHERE "
|
||||
+ "{ "
|
||||
+ "<" + queryURI + "> rdfs:label ?PILabel . "
|
||||
+ "{ "
|
||||
|
||||
+ "<" + queryURI + "> core:hasCo-PrincipalInvestigatorRole ?Role . "
|
||||
|
||||
+ "?Role core:roleIn ?Grant . "
|
||||
|
||||
+ "?Grant rdfs:label ?GrantLabel ; "
|
||||
+ "core:startDate ?GrantStartDate ; "
|
||||
+ "core:endDate ?GrantEndDate ;"
|
||||
|
||||
+ "core:relatedRole ?RelatedRole . "
|
||||
+ "?RelatedRole core:co-PrincipalInvestigatorRoleOf ?CoPI . "
|
||||
|
||||
+ "?RelatedRole core:principalInvestigatorRoleOf ?CoPI . "
|
||||
|
||||
+ "?CoPI rdfs:label ?CoPILabel . "
|
||||
+ " }";
|
||||
|
||||
+ "OPTIONAL { ?Grant core:startDate ?GrantStartDate } . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:endDate ?GrantEndDate } . "
|
||||
|
||||
+ "} "
|
||||
|
||||
+ "UNION "
|
||||
|
||||
+ "{ "
|
||||
|
||||
+ "<" + queryURI + "> core:hasPrincipalInvestigatorRole ?Role . "
|
||||
|
||||
+ "?Role core:roleIn ?Grant . "
|
||||
|
||||
+ "?Grant rdfs:label ?GrantLabel ; "
|
||||
|
||||
+ "core:relatedRole ?RelatedRole . "
|
||||
|
||||
+ "?RelatedRole core:principalInvestigatorRoleOf ?CoPI . "
|
||||
|
||||
+ "?CoPI rdfs:label ?CoPILabel . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:startDate ?GrantStartDate } . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:endDate ?GrantEndDate } . "
|
||||
|
||||
+ "} "
|
||||
|
||||
+ "UNION "
|
||||
|
||||
+ "{ "
|
||||
|
||||
+ "<" + queryURI + "> core:hasCo-PrincipalInvestigatorRole ?Role . "
|
||||
|
||||
+ "?Role core:roleIn ?Grant . "
|
||||
|
||||
+ "?Grant rdfs:label ?GrantLabel ; "
|
||||
|
||||
+ "core:relatedRole ?RelatedRole . "
|
||||
|
||||
+ "?RelatedRole core:co-PrincipalInvestigatorRoleOf ?CoPI . "
|
||||
|
||||
+ "?CoPI rdfs:label ?CoPILabel . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:startDate ?GrantStartDate } . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:endDate ?GrantEndDate } . "
|
||||
|
||||
+ "} "
|
||||
|
||||
+ "UNION "
|
||||
|
||||
+ "{ "
|
||||
|
||||
+ "<" + queryURI + "> core:hasPrincipalInvestigatorRole ?Role . "
|
||||
|
||||
+ "?Role core:roleIn ?Grant . "
|
||||
|
||||
+ "?Grant rdfs:label ?GrantLabel ; "
|
||||
|
||||
+ "core:relatedRole ?RelatedRole . "
|
||||
|
||||
+ "?RelatedRole core:co-PrincipalInvestigatorRoleOf ?CoPI . "
|
||||
|
||||
+ "?CoPI rdfs:label ?CoPILabel . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:startDate ?GrantStartDate } . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:endDate ?GrantEndDate } . "
|
||||
+ "} "
|
||||
|
||||
+ "} ";
|
||||
|
||||
log.debug("COPI QUERY - " + sparqlQuery);
|
||||
|
||||
//System.out.println("\n\nCOPI QUERY - " + sparqlQuery + "\n\n");
|
||||
|
||||
return sparqlQuery;
|
||||
}
|
||||
|
||||
|
||||
private ResultSet executeQuery(String queryText, DataSource dataSource) {
|
||||
|
||||
QueryExecution queryExecution = null;
|
||||
|
|
|
@ -120,16 +120,49 @@ public class PersonGrantCountQueryRunner implements QueryRunner<Set<Grant>>{
|
|||
private String getSparqlQuery(String queryURI){
|
||||
|
||||
String sparqlQuery = QueryConstants.getSparqlPrefixQuery()
|
||||
|
||||
+ SPARQL_QUERY_COMMON_SELECT_CLAUSE
|
||||
|
||||
+ "(str(<" + queryURI + ">) as ?PILit) "
|
||||
+ "WHERE {"
|
||||
+ "<" + queryURI + "> rdfs:label ?PILabel;"
|
||||
+ "core:hasCo-PrincipalInvestigatorRole ?Role ."
|
||||
+ "?Role core:roleIn ?Grant ."
|
||||
+ "?Grant rdfs:label ?GrantLabel ; core:startDate ?GrantStartDate ; core:endDate ?GrantEndDate ."
|
||||
+ "}";
|
||||
|
||||
+ "WHERE "
|
||||
+ "{ "
|
||||
+ "<" + queryURI + "> rdfs:label ?PILabel . "
|
||||
+ "{ "
|
||||
|
||||
+ "<" + queryURI + "> core:hasCo-PrincipalInvestigatorRole ?Role . "
|
||||
|
||||
+ "?Role core:roleIn ?Grant . "
|
||||
|
||||
+ "?Grant rdfs:label ?GrantLabel . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:startDate ?GrantStartDate } . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:endDate ?GrantEndDate } . "
|
||||
+ "} "
|
||||
|
||||
+ "UNION "
|
||||
|
||||
+ "{ "
|
||||
|
||||
+ "<" + queryURI + "> core:hasPrincipalInvestigatorRole ?Role . "
|
||||
|
||||
+ "?Role core:roleIn ?Grant . "
|
||||
|
||||
+ "?Grant rdfs:label ?GrantLabel . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:startDate ?GrantStartDate } . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:endDate ?GrantEndDate } . "
|
||||
|
||||
|
||||
+ "} "
|
||||
|
||||
|
||||
+ "} ";
|
||||
|
||||
log.debug("SPARQL query for person grant count -> \n"+ sparqlQuery);
|
||||
|
||||
return sparqlQuery;
|
||||
}
|
||||
|
||||
|
|
|
@ -119,16 +119,49 @@ public class PersonGrantCountQueryRunner implements QueryRunner<Set<Grant>>{
|
|||
private String getSparqlQuery(String queryURI){
|
||||
|
||||
String sparqlQuery = QueryConstants.getSparqlPrefixQuery()
|
||||
|
||||
+ SPARQL_QUERY_COMMON_SELECT_CLAUSE
|
||||
|
||||
+ "(str(<" + queryURI + ">) as ?PILit) "
|
||||
+ "WHERE {"
|
||||
+ "<" + queryURI + "> rdfs:label ?PILabel;"
|
||||
+ "core:hasCo-PrincipalInvestigatorRole ?Role ."
|
||||
+ "?Role core:roleIn ?Grant ."
|
||||
+ "?Grant rdfs:label ?GrantLabel ; core:startDate ?GrantStartDate ; core:endDate ?GrantEndDate ."
|
||||
+ "}";
|
||||
|
||||
+ "WHERE "
|
||||
+ "{ "
|
||||
+ "<" + queryURI + "> rdfs:label ?PILabel . "
|
||||
+ "{ "
|
||||
|
||||
+ "<" + queryURI + "> core:hasCo-PrincipalInvestigatorRole ?Role . "
|
||||
|
||||
+ "?Role core:roleIn ?Grant . "
|
||||
|
||||
+ "?Grant rdfs:label ?GrantLabel . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:startDate ?GrantStartDate } . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:endDate ?GrantEndDate } . "
|
||||
+ "} "
|
||||
|
||||
+ "UNION "
|
||||
|
||||
+ "{ "
|
||||
|
||||
+ "<" + queryURI + "> core:hasPrincipalInvestigatorRole ?Role . "
|
||||
|
||||
+ "?Role core:roleIn ?Grant . "
|
||||
|
||||
+ "?Grant rdfs:label ?GrantLabel . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:startDate ?GrantStartDate } . "
|
||||
|
||||
+ "OPTIONAL { ?Grant core:endDate ?GrantEndDate } . "
|
||||
|
||||
|
||||
+ "} "
|
||||
|
||||
|
||||
+ "} ";
|
||||
|
||||
log.debug("SPARQL query for person grant count -> \n"+ sparqlQuery);
|
||||
|
||||
return sparqlQuery;
|
||||
}
|
||||
|
||||
|
|
|
@ -225,7 +225,7 @@ public class PersonGrantCountVisCodeGenerator {
|
|||
.get(VOConstants.DEFAULT_GRANT_YEAR);
|
||||
}
|
||||
|
||||
String sparklineDisplayOptions = "{width: 65, height: 30, showAxisLines: false, "
|
||||
String sparklineDisplayOptions = "{width: 150, height: 30, showAxisLines: false, "
|
||||
+ "showValueLabels: false, labelPosition: 'none'}";
|
||||
|
||||
if (providedVisContainerID != null) {
|
||||
|
@ -391,7 +391,7 @@ public class PersonGrantCountVisCodeGenerator {
|
|||
+ unknownYearGrants) + "');");
|
||||
|
||||
visualizationCode.append("var allSparksText = ''"
|
||||
+ "+ ' grant(s) '"
|
||||
+ "+ ' <h3>grant(s)</h3> '"
|
||||
+ "+ ' from "
|
||||
+ "<span class=\"sparkline_range\">"
|
||||
+ "" + minGrantYearConsidered + " to " + currentYear + ""
|
||||
|
|
|
@ -240,7 +240,7 @@ public class PersonPublicationCountVisCodeGenerator {
|
|||
.get(VOConstants.DEFAULT_PUBLICATION_YEAR);
|
||||
}
|
||||
|
||||
String sparklineDisplayOptions = "{width: 65, height: 30, showAxisLines: false, "
|
||||
String sparklineDisplayOptions = "{width: 150, height: 30, showAxisLines: false, "
|
||||
+ "showValueLabels: false, labelPosition: 'none'}";
|
||||
|
||||
if (providedVisContainerID != null) {
|
||||
|
@ -410,7 +410,7 @@ public class PersonPublicationCountVisCodeGenerator {
|
|||
+ unknownYearPublications) + "');");
|
||||
|
||||
visualizationCode.append("var allSparksText = ''"
|
||||
+ "+ ' publication(s) '"
|
||||
+ "+ ' <h3>publication(s)</h3> '"
|
||||
+ "+ ' from "
|
||||
+ "<span class=\"sparkline_range\">"
|
||||
+ "" + minPubYearConsidered + " to " + currentYear + ""
|
||||
|
|
|
@ -21,10 +21,19 @@
|
|||
padding-left: 16px;
|
||||
height: 840px;
|
||||
}
|
||||
|
||||
#dataPanel {
|
||||
margin-top: 50px;
|
||||
width: 25%;
|
||||
background-color: #f7f9f9;
|
||||
/* height: 80%; */
|
||||
padding-left: 10px;
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
|
||||
#dataPanel div {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 11px;
|
||||
color: #000;
|
||||
}
|
||||
#dataPanel .italicize {
|
||||
font-style: italic;
|
||||
|
@ -44,3 +53,30 @@
|
|||
.container {
|
||||
width: inherit;
|
||||
}
|
||||
|
||||
#incomplete-data{
|
||||
width: 75%;
|
||||
margin : auto;
|
||||
line-height: 150%;
|
||||
color: #595b5b;
|
||||
}
|
||||
|
||||
.fileDownloadPlaceHolder{
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
#profileTitle{
|
||||
|
||||
padding: 10px;
|
||||
padding-left: 5%;
|
||||
background-color: #2A2A2A;
|
||||
color: white;
|
||||
width: 50%;
|
||||
margin-left: -10px;
|
||||
margin-top: -10px;
|
||||
}
|
||||
|
||||
#table_heading{
|
||||
margin-bottom:20px;
|
||||
width: 80%;
|
||||
}
|
||||
|
|
|
@ -14,15 +14,18 @@ a.no_href_styles {
|
|||
padding-left:10px;
|
||||
padding-top:10px;
|
||||
background: #fff;
|
||||
margin-left: 35%;
|
||||
clear: right;
|
||||
}
|
||||
|
||||
.vis-tables {
|
||||
width: 33%;
|
||||
padding: 5px;
|
||||
margin: 5px;
|
||||
/* width: 33%; */
|
||||
padding: 10px;
|
||||
margin: 10px;
|
||||
background-color: #FFF;
|
||||
border: 1px solid #ddebf1;
|
||||
float: left;
|
||||
float:left;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
p.datatable {
|
||||
|
@ -95,6 +98,21 @@ p.datatable {
|
|||
color: #121b3c;
|
||||
padding-top: 10px;
|
||||
margin-bottom: 0.3em;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.toggle_visualization{
|
||||
|
||||
/*
|
||||
margin-bottom: 0.3em;
|
||||
clear:left;
|
||||
float:right;
|
||||
width: 150px;
|
||||
*/
|
||||
text-align: left;
|
||||
margin-left: 78%;
|
||||
margin-top: -8%;
|
||||
max-width: 250px;
|
||||
}
|
||||
|
||||
.sub_headings a {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue