Merge branch 'maint-rel-1.6' of https://github.com/vivo-project/VIVO into maint-rel-1.6

This commit is contained in:
brianjlowe 2013-11-05 13:24:53 -05:00
commit ed47a43973

View file

@ -1,434 +1,454 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> <%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://djpowell.net/tmp/sparql-tag/0.1/" prefix="sparql" %> <%@ taglib uri="http://djpowell.net/tmp/sparql-tag/0.1/" prefix="sparql" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/string-1.1" prefix="str" %> <%@ taglib uri="http://jakarta.apache.org/taglibs/string-1.1" prefix="str" %>
<%@ page import="java.net.URLDecoder" %> <%@ page import="java.net.URLDecoder" %>
<div id="content"> <div id="content">
<h2>Linkage Information</h2> <h2>Linkage Information</h2>
<ul> <ul>
<!-- <!--
Author-Resource Author-Resource
--> -->
<sparql:lock model="${applicationScope.jenaOntModel }"> <sparql:lock model="${applicationScope.jenaOntModel }">
<sparql:sparql> <sparql:sparql>
<sparql:select model="${applicationScope.jenaOntModel}" var="inforauthorships"> <sparql:select model="${applicationScope.jenaOntModel}" var="inforauthorships">
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX akt: <http://www.aktors.org/ontology/portal#> PREFIX akt: <http://www.aktors.org/ontology/portal#>
PREFIX bibo: <http://purl.org/ontology/bibo/> PREFIX bibo: <http://purl.org/ontology/bibo/>
PREFIX core: <http://vivoweb.org/ontology/core#> PREFIX core: <http://vivoweb.org/ontology/core#>
SELECT (count(?author) as ?counts) WHERE { PREFIX obo: <http://purl.obolibrary.org/obo/>
?author rdf:type core:Authorship . SELECT (count(?author) as ?counts) WHERE {
?author core:linkedInformationResource ?infor . ?author rdf:type core:Authorship .
?infor rdf:type core:InformationResource . ?author core:relates ?infor .
} ?infor rdf:type obo:IAO_0000030 .
</sparql:select> }
<c:forEach items="${inforauthorships.rows}" var="inforauthorship" varStatus="counter"> </sparql:select>
<li><a href="#">'Person'-'InformationResource' linkages</a> (${inforauthorship.counts.string})</li> <c:forEach items="${inforauthorships.rows}" var="inforauthorship" varStatus="counter">
</c:forEach> <li><a href="#">'Person'-'InformationResource' linkages</a> (${inforauthorship.counts.string})</li>
</sparql:sparql> </c:forEach>
</sparql:lock> </sparql:sparql>
</sparql:lock>
<sparql:lock model="${applicationScope.jenaOntModel }">
<sparql:sparql> <sparql:lock model="${applicationScope.jenaOntModel }">
<sparql:select model="${applicationScope.jenaOntModel}" var="inforauthors"> <sparql:sparql>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> <sparql:select model="${applicationScope.jenaOntModel}" var="inforauthors">
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX akt: <http://www.aktors.org/ontology/portal#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX akt: <http://www.aktors.org/ontology/portal#>
PREFIX bibo: <http://purl.org/ontology/bibo/> PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX core: <http://vivoweb.org/ontology/core#> PREFIX bibo: <http://purl.org/ontology/bibo/>
SELECT (count(distinct ?author) as ?counts) WHERE { PREFIX core: <http://vivoweb.org/ontology/core#>
?author core:authorInAuthorship ?obj . PREFIX obo: <http://purl.obolibrary.org/obo/>
?author rdf:type foaf:Person . SELECT (count(distinct ?author) as ?counts) WHERE {
?obj core:linkedInformationResource ?infor . ?author core:relatedBy ?obj .
?infor rdf:type core:InformationResource . ?author rdf:type foaf:Person .
} ?obj rdf:type core:Authorship .
</sparql:select> ?obj core:relates ?infor .
<c:forEach items="${inforauthors.rows}" var="inforauthor" varStatus="counter"> ?infor rdf:type obo:IAO_0000030 .
<li><a href="#">'Person' entities which published 'InformationResource' entities</a> (${inforauthor.counts.string})</li> }
</c:forEach> </sparql:select>
</sparql:sparql> <c:forEach items="${inforauthors.rows}" var="inforauthor" varStatus="counter">
</sparql:lock> <li><a href="#">'Person' entities which published 'InformationResource' entities</a> (${inforauthor.counts.string})</li>
</c:forEach>
<sparql:lock model="${applicationScope.jenaOntModel }"> </sparql:sparql>
<sparql:sparql> </sparql:lock>
<sparql:select model="${applicationScope.jenaOntModel}" var="infors">
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> <sparql:lock model="${applicationScope.jenaOntModel }">
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> <sparql:sparql>
PREFIX akt: <http://www.aktors.org/ontology/portal#> <sparql:select model="${applicationScope.jenaOntModel}" var="infors">
PREFIX bibo: <http://purl.org/ontology/bibo/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX core: <http://vivoweb.org/ontology/core#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT (count(distinct ?infor) as ?counts) WHERE { PREFIX akt: <http://www.aktors.org/ontology/portal#>
?subj core:linkedInformationResource ?infor . PREFIX bibo: <http://purl.org/ontology/bibo/>
?infor rdf:type core:InformationResource . PREFIX core: <http://vivoweb.org/ontology/core#>
} PREFIX obo: <http://purl.obolibrary.org/obo/>
</sparql:select> SELECT (count(distinct ?infor) as ?counts) WHERE {
<c:forEach items="${infors.rows}" var="infor" varStatus="counter"> ?subj core:relates ?infor .
<li><a href="#">'InformationResource' entities</a> (${infor.counts.string})</li> ?infor rdf:type obo:IAO_0000030 .
</c:forEach> }
</sparql:sparql> </sparql:select>
</sparql:lock> <c:forEach items="${infors.rows}" var="infor" varStatus="counter">
</ul> <li><a href="#">'InformationResource' entities</a> (${infor.counts.string})</li>
</c:forEach>
</sparql:sparql>
<ul> </sparql:lock>
<!-- </ul>
Author-Conference_Paper
-->
<sparql:lock model="${applicationScope.jenaOntModel }"> <ul>
<sparql:sparql> <!--
<sparql:select model="${applicationScope.jenaOntModel}" var="confauthorships"> Author-Conference_Paper
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> -->
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> <sparql:lock model="${applicationScope.jenaOntModel }">
PREFIX akt: <http://www.aktors.org/ontology/portal#> <sparql:sparql>
PREFIX bibo: <http://purl.org/ontology/bibo/> <sparql:select model="${applicationScope.jenaOntModel}" var="confauthorships">
PREFIX core: <http://vivoweb.org/ontology/core#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT (count(?author) as ?counts) WHERE { PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
?author rdf:type core:Authorship . PREFIX akt: <http://www.aktors.org/ontology/portal#>
?author core:linkedInformationResource ?infor . PREFIX bibo: <http://purl.org/ontology/bibo/>
?infor rdf:type core:ConferencePaper . PREFIX core: <http://vivoweb.org/ontology/core#>
} SELECT (count(?author) as ?counts) WHERE {
</sparql:select> ?author rdf:type core:Authorship .
<c:forEach items="${confauthorships.rows}" var="confauthorship" varStatus="counter"> ?author core:relates ?infor .
<li><a href="#">'Person'-'ConferencePaper' linkages</a> (${confauthorship.counts.string})</li> ?infor rdf:type core:ConferencePaper .
</c:forEach> }
</sparql:sparql> </sparql:select>
</sparql:lock> <c:forEach items="${confauthorships.rows}" var="confauthorship" varStatus="counter">
<li><a href="#">'Person'-'ConferencePaper' linkages</a> (${confauthorship.counts.string})</li>
<sparql:lock model="${applicationScope.jenaOntModel }"> </c:forEach>
<sparql:sparql> </sparql:sparql>
<sparql:select model="${applicationScope.jenaOntModel}" var="confauthors"> </sparql:lock>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> <sparql:lock model="${applicationScope.jenaOntModel }">
PREFIX akt: <http://www.aktors.org/ontology/portal#> <sparql:sparql>
PREFIX foaf: <http://xmlns.com/foaf/0.1/> <sparql:select model="${applicationScope.jenaOntModel}" var="confauthors">
PREFIX bibo: <http://purl.org/ontology/bibo/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX core: <http://vivoweb.org/ontology/core#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT (count(distinct ?author) as ?counts) WHERE { PREFIX akt: <http://www.aktors.org/ontology/portal#>
?author core:authorInAuthorship ?obj . PREFIX foaf: <http://xmlns.com/foaf/0.1/>
?author rdf:type foaf:Person . PREFIX bibo: <http://purl.org/ontology/bibo/>
?obj core:linkedInformationResource ?infor . PREFIX core: <http://vivoweb.org/ontology/core#>
?infor rdf:type core:ConferencePaper . SELECT (count(distinct ?author) as ?counts) WHERE {
} ?author core:relatedBy ?obj .
</sparql:select> ?author rdf:type foaf:Person .
<c:forEach items="${confauthors.rows}" var="confauthor" varStatus="counter"> ?obj rdf:type core:Authorship .
<li><a href="#">'Person' entities which published 'ConferencePaper' entities</a> (${confauthor.counts.string})</li> ?obj core:relates ?infor .
</c:forEach> ?infor rdf:type core:ConferencePaper .
</sparql:sparql> }
</sparql:lock> </sparql:select>
<c:forEach items="${confauthors.rows}" var="confauthor" varStatus="counter">
<sparql:lock model="${applicationScope.jenaOntModel }"> <li><a href="#">'Person' entities which published 'ConferencePaper' entities</a> (${confauthor.counts.string})</li>
<sparql:sparql> </c:forEach>
<sparql:select model="${applicationScope.jenaOntModel}" var="confs"> </sparql:sparql>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> </sparql:lock>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX akt: <http://www.aktors.org/ontology/portal#> <sparql:lock model="${applicationScope.jenaOntModel }">
PREFIX bibo: <http://purl.org/ontology/bibo/> <sparql:sparql>
PREFIX core: <http://vivoweb.org/ontology/core#> <sparql:select model="${applicationScope.jenaOntModel}" var="confs">
SELECT (count(distinct ?infor) as ?counts) WHERE { PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
?subj core:linkedInformationResource ?infor . PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
?infor rdf:type core:ConferencePaper . PREFIX akt: <http://www.aktors.org/ontology/portal#>
} PREFIX bibo: <http://purl.org/ontology/bibo/>
</sparql:select> PREFIX core: <http://vivoweb.org/ontology/core#>
<c:forEach items="${confs.rows}" var="conf" varStatus="counter"> SELECT (count(distinct ?infor) as ?counts) WHERE {
<li><a href="#">'ConferencePaper' entities</a> (${conf.counts.string})</li> ?subj core:relates ?infor .
</c:forEach> ?infor rdf:type core:ConferencePaper .
</sparql:sparql> }
</sparql:lock> </sparql:select>
</ul> <c:forEach items="${confs.rows}" var="conf" varStatus="counter">
<li><a href="#">'ConferencePaper' entities</a> (${conf.counts.string})</li>
</c:forEach>
<ul> </sparql:sparql>
<!-- </sparql:lock>
Author-Academic_Article </ul>
-->
<sparql:lock model="${applicationScope.jenaOntModel }">
<sparql:sparql> <ul>
<sparql:select model="${applicationScope.jenaOntModel}" var="acaauthorships"> <!--
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> Author-Academic_Article
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> -->
PREFIX akt: <http://www.aktors.org/ontology/portal#> <sparql:lock model="${applicationScope.jenaOntModel }">
PREFIX bibo: <http://purl.org/ontology/bibo/> <sparql:sparql>
PREFIX core: <http://vivoweb.org/ontology/core#> <sparql:select model="${applicationScope.jenaOntModel}" var="acaauthorships">
SELECT (count(?author) as ?counts) WHERE { PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
?author rdf:type core:Authorship . PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
?author core:linkedInformationResource ?infor . PREFIX akt: <http://www.aktors.org/ontology/portal#>
?infor rdf:type bibo:AcademicArticle . PREFIX bibo: <http://purl.org/ontology/bibo/>
} PREFIX core: <http://vivoweb.org/ontology/core#>
</sparql:select> SELECT (count(?author) as ?counts) WHERE {
<c:forEach items="${acaauthorships.rows}" var="acaauthorship" varStatus="counter"> ?author rdf:type core:Authorship .
<li><a href="#">'Person'-'AcademicArticle' linkages</a> (${acaauthorship.counts.string})</li> ?author core:relates ?infor .
</c:forEach> ?infor rdf:type bibo:AcademicArticle .
</sparql:sparql> }
</sparql:lock> </sparql:select>
<c:forEach items="${acaauthorships.rows}" var="acaauthorship" varStatus="counter">
<sparql:lock model="${applicationScope.jenaOntModel }"> <li><a href="#">'Person'-'AcademicArticle' linkages</a> (${acaauthorship.counts.string})</li>
<sparql:sparql> </c:forEach>
<sparql:select model="${applicationScope.jenaOntModel}" var="acaauthors"> </sparql:sparql>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> </sparql:lock>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX akt: <http://www.aktors.org/ontology/portal#> <sparql:lock model="${applicationScope.jenaOntModel }">
PREFIX foaf: <http://xmlns.com/foaf/0.1/> <sparql:sparql>
PREFIX bibo: <http://purl.org/ontology/bibo/> <sparql:select model="${applicationScope.jenaOntModel}" var="acaauthors">
PREFIX core: <http://vivoweb.org/ontology/core#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT (count(distinct ?author) as ?counts) WHERE { PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
?author core:authorInAuthorship ?obj . PREFIX akt: <http://www.aktors.org/ontology/portal#>
?author rdf:type foaf:Person . PREFIX foaf: <http://xmlns.com/foaf/0.1/>
?obj core:linkedInformationResource ?infor . PREFIX bibo: <http://purl.org/ontology/bibo/>
?infor rdf:type bibo:AcademicArticle . PREFIX core: <http://vivoweb.org/ontology/core#>
} SELECT (count(distinct ?author) as ?counts) WHERE {
</sparql:select> ?author core:relatedBy ?obj .
<c:forEach items="${acaauthors.rows}" var="acaauthor" varStatus="counter"> ?author rdf:type foaf:Person .
<li><a href="#">'Person' entities which published 'AcademicArticle' entities</a> (${acaauthor.counts.string})</li> ?obj rdf:type core:Authorship .
</c:forEach> ?obj core:relates ?infor .
</sparql:sparql> ?infor rdf:type bibo:AcademicArticle .
</sparql:lock> }
</sparql:select>
<sparql:lock model="${applicationScope.jenaOntModel }"> <c:forEach items="${acaauthors.rows}" var="acaauthor" varStatus="counter">
<sparql:sparql> <li><a href="#">'Person' entities which published 'AcademicArticle' entities</a> (${acaauthor.counts.string})</li>
<sparql:select model="${applicationScope.jenaOntModel}" var="acas"> </c:forEach>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> </sparql:sparql>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> </sparql:lock>
PREFIX akt: <http://www.aktors.org/ontology/portal#>
PREFIX bibo: <http://purl.org/ontology/bibo/> <sparql:lock model="${applicationScope.jenaOntModel }">
PREFIX core: <http://vivoweb.org/ontology/core#> <sparql:sparql>
SELECT (count(distinct ?infor) as ?counts) WHERE { <sparql:select model="${applicationScope.jenaOntModel}" var="acas">
?subj core:linkedInformationResource ?infor . PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
?infor rdf:type bibo:AcademicArticle . PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
} PREFIX akt: <http://www.aktors.org/ontology/portal#>
</sparql:select> PREFIX bibo: <http://purl.org/ontology/bibo/>
<c:forEach items="${acas.rows}" var="aca" varStatus="counter"> PREFIX core: <http://vivoweb.org/ontology/core#>
<li><a href="#">'AcademicArticle' entities</a> (${aca.counts.string})</li> SELECT (count(distinct ?infor) as ?counts) WHERE {
</c:forEach> ?subj core:relates ?infor .
</sparql:sparql> ?infor rdf:type bibo:AcademicArticle .
</sparql:lock> }
</ul> </sparql:select>
<c:forEach items="${acas.rows}" var="aca" varStatus="counter">
<li><a href="#">'AcademicArticle' entities</a> (${aca.counts.string})</li>
<ul> </c:forEach>
<!-- </sparql:sparql>
Investigator-Grant </sparql:lock>
--> </ul>
<sparql:lock model="${applicationScope.jenaOntModel }">
<sparql:sparql>
<sparql:select model="${applicationScope.jenaOntModel}" var="piships"> <ul>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> <!--
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> Investigator-Grant
PREFIX akt: <http://www.aktors.org/ontology/portal#> -->
PREFIX bibo: <http://purl.org/ontology/bibo/> <sparql:lock model="${applicationScope.jenaOntModel }">
PREFIX core: <http://vivoweb.org/ontology/core#> <sparql:sparql>
SELECT (count(*) as ?counts) WHERE { <sparql:select model="${applicationScope.jenaOntModel}" var="piships">
?grant core:hasInvestigator ?pi . PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
} PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
</sparql:select> PREFIX akt: <http://www.aktors.org/ontology/portal#>
<c:forEach items="${piships.rows}" var="piship" varStatus="counter"> PREFIX bibo: <http://purl.org/ontology/bibo/>
<li><a href="#">'Person'-'Grant' linkages</a> (${piship.counts.string})</li> PREFIX core: <http://vivoweb.org/ontology/core#>
</c:forEach> SELECT (count(*) as ?counts) WHERE {
</sparql:sparql> ?grant core:relates ?pi .
</sparql:lock> ?grant rdf:type core:Grant .
?pi rdf:type core:InvestigatorRole .
<sparql:lock model="${applicationScope.jenaOntModel }"> }
<sparql:sparql> </sparql:select>
<sparql:select model="${applicationScope.jenaOntModel}" var="pis"> <c:forEach items="${piships.rows}" var="piship" varStatus="counter">
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> <li><a href="#">'Person'-'Grant' linkages</a> (${piship.counts.string})</li>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> </c:forEach>
PREFIX akt: <http://www.aktors.org/ontology/portal#> </sparql:sparql>
PREFIX bibo: <http://purl.org/ontology/bibo/> </sparql:lock>
PREFIX core: <http://vivoweb.org/ontology/core#>
SELECT (count(distinct ?pi) as ?counts) WHERE { <sparql:lock model="${applicationScope.jenaOntModel }">
?grant core:hasInvestigator ?pi . <sparql:sparql>
?grant rdf:type core:Grant . <sparql:select model="${applicationScope.jenaOntModel}" var="pis">
} PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
</sparql:select> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
<c:forEach items="${pis.rows}" var="pi" varStatus="counter"> PREFIX akt: <http://www.aktors.org/ontology/portal#>
<li><a href="#">'Person' entities which are (co-)investigators on 'Grant' entities</a> (${pi.counts.string})</li> PREFIX bibo: <http://purl.org/ontology/bibo/>
</c:forEach> PREFIX core: <http://vivoweb.org/ontology/core#>
</sparql:sparql> SELECT (count(distinct ?pi) as ?counts) WHERE {
</sparql:lock> ?grant core:relates ?pi .
?grant rdf:type core:Grant .
<sparql:lock model="${applicationScope.jenaOntModel }"> ?pi rdf:type core:InvestigatorRole .
<sparql:sparql> }
<sparql:select model="${applicationScope.jenaOntModel}" var="grants"> </sparql:select>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> <c:forEach items="${pis.rows}" var="pi" varStatus="counter">
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> <li><a href="#">'Person' entities which are (co-)investigators on 'Grant' entities</a> (${pi.counts.string})</li>
PREFIX akt: <http://www.aktors.org/ontology/portal#> </c:forEach>
PREFIX bibo: <http://purl.org/ontology/bibo/> </sparql:sparql>
PREFIX core: <http://vivoweb.org/ontology/core#> </sparql:lock>
SELECT (count(distinct ?grant) as ?counts) WHERE {
?grant rdf:type core:Grant . <sparql:lock model="${applicationScope.jenaOntModel }">
} <sparql:sparql>
</sparql:select> <sparql:select model="${applicationScope.jenaOntModel}" var="grants">
<c:forEach items="${grants.rows}" var="grant" varStatus="counter"> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
<li><a href="#">'Grant' entities</a> (${grant.counts.string})</li> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
</c:forEach> PREFIX akt: <http://www.aktors.org/ontology/portal#>
</sparql:sparql> PREFIX bibo: <http://purl.org/ontology/bibo/>
</sparql:lock> PREFIX core: <http://vivoweb.org/ontology/core#>
</ul> SELECT (count(distinct ?grant) as ?counts) WHERE {
?grant rdf:type core:Grant .
}
<ul> </sparql:select>
<!-- <c:forEach items="${grants.rows}" var="grant" varStatus="counter">
Teacher-Course <li><a href="#">'Grant' entities</a> (${grant.counts.string})</li>
--> </c:forEach>
<sparql:lock model="${applicationScope.jenaOntModel }"> </sparql:sparql>
<sparql:sparql> </sparql:lock>
<sparql:select model="${applicationScope.jenaOntModel}" var="teachings"> </ul>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX akt: <http://www.aktors.org/ontology/portal#> <ul>
PREFIX bibo: <http://purl.org/ontology/bibo/> <!--
PREFIX core: <http://vivoweb.org/ontology/core#> Teacher-Course
SELECT (count(*) as ?counts) WHERE { -->
?teacher core:teaching ?obj . <sparql:lock model="${applicationScope.jenaOntModel }">
} <sparql:sparql>
</sparql:select> <sparql:select model="${applicationScope.jenaOntModel}" var="teachings">
<c:forEach items="${teachings.rows}" var="teaching" varStatus="counter"> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
<li><a href="#">'Person'-'CourseSection' linkages</a> (${teaching.counts.string})</li> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
</c:forEach> PREFIX akt: <http://www.aktors.org/ontology/portal#>
</sparql:sparql> PREFIX bibo: <http://purl.org/ontology/bibo/>
</sparql:lock> PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX obo: <http://purl.obolibrary.org/obo/>
<sparql:lock model="${applicationScope.jenaOntModel }"> SELECT (count(*) as ?counts) WHERE {
<sparql:sparql> ?teacher obo:RO_0000053 ?obj .
<sparql:select model="${applicationScope.jenaOntModel}" var="teachers"> ?obj rdf:type core:teacherRole .
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> }
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> </sparql:select>
PREFIX akt: <http://www.aktors.org/ontology/portal#> <c:forEach items="${teachings.rows}" var="teaching" varStatus="counter">
PREFIX bibo: <http://purl.org/ontology/bibo/> <li><a href="#">'Person'-'CourseSection' linkages</a> (${teaching.counts.string})</li>
PREFIX core: <http://vivoweb.org/ontology/core#> </c:forEach>
SELECT (count(distinct ?teacher) as ?counts) WHERE { </sparql:sparql>
?teacher core:teaching ?obj . </sparql:lock>
}
</sparql:select> <sparql:lock model="${applicationScope.jenaOntModel }">
<c:forEach items="${teachers.rows}" var="teacher" varStatus="counter"> <sparql:sparql>
<li><a href="#">'Person' entities which teach 'CourseSection' entities</a> (${teacher.counts.string})</li> <sparql:select model="${applicationScope.jenaOntModel}" var="teachers">
</c:forEach> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
</sparql:sparql> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
</sparql:lock> PREFIX akt: <http://www.aktors.org/ontology/portal#>
PREFIX bibo: <http://purl.org/ontology/bibo/>
<sparql:lock model="${applicationScope.jenaOntModel }"> PREFIX core: <http://vivoweb.org/ontology/core#>
<sparql:sparql> PREFIX obo: <http://purl.obolibrary.org/obo/>
<sparql:select model="${applicationScope.jenaOntModel}" var="courses"> SELECT (count(distinct ?teacher) as ?counts) WHERE {
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> ?teacher core:teaching ?obj .
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ?teacher obo:RO_0000053 ?obj .
PREFIX akt: <http://www.aktors.org/ontology/portal#> ?obj rdf:type core:teacherRole .
PREFIX bibo: <http://purl.org/ontology/bibo/> }
PREFIX core: <http://vivoweb.org/ontology/core#> </sparql:select>
SELECT (count(?course) as ?counts) WHERE { <c:forEach items="${teachers.rows}" var="teacher" varStatus="counter">
?course rdf:type core:CourseSection . <li><a href="#">'Person' entities which teach 'CourseSection' entities</a> (${teacher.counts.string})</li>
} </c:forEach>
</sparql:select> </sparql:sparql>
<c:forEach items="${courses.rows}" var="course" varStatus="counter"> </sparql:lock>
<li><a href="#">'CourseSection' entities</a> (${course.counts.string})</li>
</c:forEach> <sparql:lock model="${applicationScope.jenaOntModel }">
</sparql:sparql> <sparql:sparql>
</sparql:lock> <sparql:select model="${applicationScope.jenaOntModel}" var="courses">
</ul> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX akt: <http://www.aktors.org/ontology/portal#>
<ul> PREFIX bibo: <http://purl.org/ontology/bibo/>
<!-- PREFIX core: <http://vivoweb.org/ontology/core#>
Co-Author Linkage SELECT (count(?course) as ?counts) WHERE {
--> ?course rdf:type core:Course .
<sparql:lock model="${applicationScope.jenaOntModel }"> }
<sparql:sparql> </sparql:select>
<sparql:select model="${applicationScope.jenaOntModel}" var="coauthors"> <c:forEach items="${courses.rows}" var="course" varStatus="counter">
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> <li><a href="#">'Course' entities</a> (${course.counts.string})</li>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> </c:forEach>
PREFIX akt: <http://www.aktors.org/ontology/portal#> </sparql:sparql>
PREFIX bibo: <http://purl.org/ontology/bibo/> </sparql:lock>
PREFIX core: <http://vivoweb.org/ontology/core#> </ul>
SELECT (count(*) as ?counts) WHERE {
?author1 rdf:type core:Authorship .
?author2 rdf:type core:Authorship . <ul>
?author1 core:linkedInformationResource ?infor . <!--
?author2 core:linkedInformationResource ?infor . Co-Author Linkage
?infor rdf:type core:InformationResource . -->
FILTER (str(?author1) < str(?author2)) <sparql:lock model="${applicationScope.jenaOntModel }">
} <sparql:sparql>
</sparql:select> <sparql:select model="${applicationScope.jenaOntModel}" var="coauthors">
<c:forEach items="${coauthors.rows}" var="coauthor" varStatus="counter"> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
<li><a href="#">Total co-author linkages</a> (${coauthor.counts.string})</li> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
</c:forEach> PREFIX akt: <http://www.aktors.org/ontology/portal#>
</sparql:sparql> PREFIX bibo: <http://purl.org/ontology/bibo/>
</sparql:lock> PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX obo: <http://purl.obolibrary.org/obo/>
<!-- SELECT (count(*) as ?counts) WHERE {
Distinct Co-Author Linkage ?author1 rdf:type core:Authorship .
--> ?author2 rdf:type core:Authorship .
<sparql:lock model="${applicationScope.jenaOntModel }"> ?author1 core:relates ?infor .
<sparql:sparql> ?author2 core:relates ?infor .
<sparql:select model="${applicationScope.jenaOntModel}" var="discoauthors"> ?infor rdf:type obo:IAO_0000030 .
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> FILTER (str(?author1) < str(?author2))
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> }
PREFIX akt: <http://www.aktors.org/ontology/portal#> </sparql:select>
PREFIX bibo: <http://purl.org/ontology/bibo/> <c:forEach items="${coauthors.rows}" var="coauthor" varStatus="counter">
PREFIX core: <http://vivoweb.org/ontology/core#> <li><a href="#">Total co-author linkages</a> (${coauthor.counts.string})</li>
SELECT DISTINCT ?author1 ?author2 WHERE { </c:forEach>
?author1 rdf:type core:Authorship . </sparql:sparql>
?author2 rdf:type core:Authorship . </sparql:lock>
?author1 core:linkedInformationResource ?infor .
?author2 core:linkedInformationResource ?infor . <!--
?infor rdf:type core:InformationResource . Distinct Co-Author Linkage
FILTER (str(?author1) < str(?author2)) -->
} <sparql:lock model="${applicationScope.jenaOntModel }">
</sparql:select> <sparql:sparql>
<li><a href="#">Unique co-author linkages</a> (${fn:length(discoauthors.rows)})</li> <sparql:select model="${applicationScope.jenaOntModel}" var="discoauthors">
</sparql:sparql> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
</sparql:lock> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
</ul> PREFIX akt: <http://www.aktors.org/ontology/portal#>
PREFIX bibo: <http://purl.org/ontology/bibo/>
PREFIX core: <http://vivoweb.org/ontology/core#>
<ul> PREFIX obo: <http://purl.obolibrary.org/obo/>
<!-- SELECT DISTINCT ?author1 ?author2 WHERE {
Co-Investigator Linkage ?author1 rdf:type core:Authorship .
--> ?author2 rdf:type core:Authorship .
<sparql:lock model="${applicationScope.jenaOntModel }"> ?author1 core:relates ?infor .
<sparql:sparql> ?author2 core:relates ?infor .
<sparql:select model="${applicationScope.jenaOntModel}" var="copis"> ?infor rdf:type obo:IAO_0000030 .
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> FILTER (str(?author1) < str(?author2))
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> }
PREFIX akt: <http://www.aktors.org/ontology/portal#> </sparql:select>
PREFIX bibo: <http://purl.org/ontology/bibo/> <li><a href="#">Unique co-author linkages</a> (${fn:length(discoauthors.rows)})</li>
PREFIX core: <http://vivoweb.org/ontology/core#> </sparql:sparql>
SELECT (count(*) as ?counts) WHERE { </sparql:lock>
?grant core:hasInvestigator ?pi1 . </ul>
?grant core:hasInvestigator ?pi2 .
FILTER (str(?pi1) < str(?pi2))
} <ul>
</sparql:select> <!--
<c:forEach items="${copis.rows}" var="copi" varStatus="counter"> Co-Investigator Linkage
<li><a href="#">Total co-investigator linkages</a> (${copi.counts.string})</li> -->
</c:forEach> <sparql:lock model="${applicationScope.jenaOntModel }">
</sparql:sparql> <sparql:sparql>
</sparql:lock> <sparql:select model="${applicationScope.jenaOntModel}" var="copis">
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
<!-- PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
Distinct Co-Investigator Linkage PREFIX akt: <http://www.aktors.org/ontology/portal#>
--> PREFIX bibo: <http://purl.org/ontology/bibo/>
<sparql:lock model="${applicationScope.jenaOntModel }"> PREFIX core: <http://vivoweb.org/ontology/core#>
<sparql:sparql> SELECT (count(*) as ?counts) WHERE {
<sparql:select model="${applicationScope.jenaOntModel}" var="discopis"> ?grant core:relates ?pi1 .
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> ?pi1 rdf:type core:InvestigatorRole .
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> ?grant core:relates ?pi2 .
PREFIX akt: <http://www.aktors.org/ontology/portal#> ?pi1 rdf:type core:InvestigatorRole .
PREFIX bibo: <http://purl.org/ontology/bibo/> FILTER (str(?pi1) < str(?pi2))
PREFIX core: <http://vivoweb.org/ontology/core#> }
SELECT DISTINCT ?pi1 ?pi2 WHERE { </sparql:select>
?grant core:hasInvestigator ?pi1 . <c:forEach items="${copis.rows}" var="copi" varStatus="counter">
?grant core:hasInvestigator ?pi2 . <li><a href="#">Total co-investigator linkages</a> (${copi.counts.string})</li>
FILTER (str(?pi1) < str(?pi2)) </c:forEach>
} </sparql:sparql>
</sparql:select> </sparql:lock>
<li><a href="#">Unique co-investigator linkages</a> (${fn:length(discopis.rows)})</li>
</sparql:sparql> <!--
</sparql:lock> Distinct Co-Investigator Linkage
-->
</ul> <sparql:lock model="${applicationScope.jenaOntModel }">
<sparql:sparql>
</div> <sparql:select model="${applicationScope.jenaOntModel}" var="discopis">
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX akt: <http://www.aktors.org/ontology/portal#>
PREFIX bibo: <http://purl.org/ontology/bibo/>
PREFIX core: <http://vivoweb.org/ontology/core#>
SELECT DISTINCT ?pi1 ?pi2 WHERE {
?grant core:relates ?pi1 .
?pi1 rdf:type core:InvestigatorRole .
?grant core:relates ?pi2 .
?pi1 rdf:type core:InvestigatorRole .
FILTER (str(?pi1) < str(?pi2))
}
</sparql:select>
<li><a href="#">Unique co-investigator linkages</a> (${fn:length(discopis.rows)})</li>
</sparql:sparql>
</sparql:lock>
</ul>
</div>