VIVO-360, VIVO-359 and VIVO-345
This commit is contained in:
parent
bf70899dd9
commit
f3249ac6f2
10 changed files with 343 additions and 493 deletions
|
@ -476,7 +476,7 @@ local:orgFaxContext a :ConfigContext ;
|
|||
local:orgFaxConfig a :ObjectPropertyDisplayConfig ;
|
||||
:listViewConfigFile "listViewConfig-faxNumber.xml"^^xsd:string ;
|
||||
:displayName "fax" ;
|
||||
vitro:displayRankAnnot 10;
|
||||
vitro:displayRankAnnot 20;
|
||||
vitro:hiddenFromDisplayBelowRoleLevelAnnot role:public ;
|
||||
vitro:prohibitedFromUpdateBelowRoleLevelAnnot role:public ;
|
||||
vitro:customEntryFormAnnot "edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.SubjectHasPhoneFaxNumberGenerator"^^<http://www.w3.org/2001/XMLSchema#string> ;
|
||||
|
@ -688,3 +688,18 @@ local:grantRelatesConfig a :ObjectPropertyDisplayConfig ;
|
|||
vitro:hiddenFromDisplayBelowRoleLevelAnnot role:public ;
|
||||
vitro:prohibitedFromUpdateBelowRoleLevelAnnot role:public ;
|
||||
:propertyGroup <http://vivoweb.org/ontology#vitroPropertyGroupbiography> .
|
||||
|
||||
|
||||
|
||||
local:testRemovalContext a :ConfigContext ;
|
||||
:hasConfiguration local:testRemovalConfig ;
|
||||
:configContextFor <http://purl.obolibrary.org/obo/RO_0000053> ;
|
||||
:qualifiedByDomain <http://xmlns.com/foaf/0.1/Person> ;
|
||||
:qualifiedBy <http://purl.obolibrary.org/obo/BFO_0000001> .
|
||||
|
||||
local:testRemovalConfig a :ObjectPropertyDisplayConfig ;
|
||||
:listViewConfigFile "listViewConfig-default.xml"^^xsd:string ;
|
||||
:displayName "related by" ;
|
||||
vitro:hiddenFromDisplayBelowRoleLevelAnnot role:root ;
|
||||
vitro:prohibitedFromUpdateBelowRoleLevelAnnot role:root ;
|
||||
:propertyGroup <http://vivoweb.org/ontology#vitroPropertyGroupother> .
|
||||
|
|
|
@ -20,3 +20,6 @@ local:authorInAuthorshipConfig a :ObjectPropertyDisplayConfig ;
|
|||
|
||||
local:informationResourceInAuthorshipConfig a :ObjectPropertyDisplayConfig ;
|
||||
:deleteLinkSuppressed "true"^^xsd:boolean .
|
||||
|
||||
local:informationResourceInEditorshipConfig a :ObjectPropertyDisplayConfig ;
|
||||
:deleteLinkSuppressed "true"^^xsd:boolean .
|
||||
|
|
|
@ -25,11 +25,14 @@ display:getDepartmentDataGetter
|
|||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
SELECT DISTINCT (str(?departmentLabel) AS ?deptLabel) ?dept
|
||||
WHERE {
|
||||
?individualURI vivo:researchAreaOf ?person .
|
||||
?person vivo:personInPosition ?posn .
|
||||
?posn vivo:positionInOrganization ?dept .
|
||||
?person vivo:relatedBy ?posn .
|
||||
?posn a vivo:Position .
|
||||
?posn vivo:relates ?dept .
|
||||
?dept a foaf:Organization .
|
||||
?dept rdfs:label ?departmentLabel
|
||||
OPTIONAL { ?posn vivo:dateTimeInterval ?dti
|
||||
OPTIONAL { ?dti vivo:end ?end .
|
||||
|
@ -44,19 +47,20 @@ display:getDepartmentDataGetter
|
|||
|
||||
## detail page for dept research areas ##
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n55553333>
|
||||
<http://vitro.mannlib.cornell.edu/ns/default/page#AffiliatedDepartments>
|
||||
a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Page> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter> <http://vitro.mannlib.cornell.edu/ns/default#n55552222> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter> <http://vitro.mannlib.cornell.edu/ns/default/datagetter#AffiliatedDepartmentsDG> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#requiresBodyTemplate> "individual-affiliated-dept-details.ftl" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#title> "Affiliated Departments" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#urlMapping> "/affiliatedDepartments" .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n55552222>
|
||||
<http://vitro.mannlib.cornell.edu/ns/default/datagetter#AffiliatedDepartmentsDG>
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#query>
|
||||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
SELECT DISTINCT (str (?prsnLabel) AS ?personLabel)
|
||||
?person
|
||||
(Str(?researchAreaLabel) AS ?raLabel)
|
||||
|
@ -64,9 +68,11 @@ display:getDepartmentDataGetter
|
|||
?raURI
|
||||
?orgURI
|
||||
WHERE {
|
||||
?orgURI vivo:organizationForPosition ?posn .
|
||||
?orgURI vivo:relatedBy ?posn .
|
||||
?posn a vivo:Position .
|
||||
?orgURI rdfs:label ?orgLabel .
|
||||
?posn vivo:positionForPerson ?person .
|
||||
?posn vivo:relates ?person .
|
||||
?person a foaf:Person .
|
||||
?person rdfs:label ?prsnLabel .
|
||||
?person vivo:hasResearchArea ?raURI .
|
||||
?raURI rdfs:label ?researchAreaLabel
|
||||
|
|
|
@ -32,10 +32,13 @@ display:getResearchAreaDataGetter
|
|||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
SELECT DISTINCT (str(?researchAreaLabel) AS ?raLabel) ?ra
|
||||
WHERE {
|
||||
?individualURI vivo:organizationForPosition ?posn .
|
||||
?posn vivo:positionForPerson ?person .
|
||||
?individualURI vivo:relatedBy ?posn .
|
||||
?posn a vivo:Position .
|
||||
?posn vivo:relates ?person .
|
||||
?person a foaf:Person .
|
||||
?person vivo:hasResearchArea ?ra .
|
||||
?ra rdfs:label ?researchAreaLabel
|
||||
OPTIONAL { ?posn vivo:dateTimeInterval ?dti
|
||||
|
@ -51,19 +54,20 @@ display:getResearchAreaDataGetter
|
|||
|
||||
## detail page for non-academic department research areas ##
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n55550000>
|
||||
<http://vitro.mannlib.cornell.edu/ns/default/page#AffiliatedResearchAreas>
|
||||
a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Page> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter> <http://vitro.mannlib.cornell.edu/ns/default#n55551111> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter> <http://vitro.mannlib.cornell.edu/ns/default/datagetter#AffiliatedResearchAreasDG> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#requiresBodyTemplate> "individual-affiliated-res-area-details.ftl" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#title> "Affiliated Research Areas" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#urlMapping> "/affiliatedResearchAreas" .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n55551111>
|
||||
<http://vitro.mannlib.cornell.edu/ns/default/datagetter#AffiliatedResearchAreasDG>
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#query>
|
||||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
SELECT DISTINCT (str (?prsnLabel) AS ?personLabel)
|
||||
?person
|
||||
(str(?researchAreaLabel) AS ?raLabel)
|
||||
|
@ -71,9 +75,11 @@ display:getResearchAreaDataGetter
|
|||
?raURI
|
||||
?orgURI
|
||||
WHERE {
|
||||
?orgURI vivo:organizationForPosition ?posn .
|
||||
?orgURI vivo:relatedBy ?posn .
|
||||
?posn a vivo:Position .
|
||||
?orgURI rdfs:label ?organizationLabel .
|
||||
?posn vivo:positionForPerson ?person .
|
||||
?posn vivo:relates ?person .
|
||||
?person a foaf:Person .
|
||||
?person rdfs:label ?prsnLabel .
|
||||
?person vivo:hasResearchArea ?raURI .
|
||||
?raURI rdfs:label ?researchAreaLabel
|
||||
|
@ -84,19 +90,20 @@ display:getResearchAreaDataGetter
|
|||
|
||||
## detail page for academic department research areas ##
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n5100>
|
||||
<http://vitro.mannlib.cornell.edu/ns/default/page#DepartmentalResearchAreas>
|
||||
a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Page> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter> <http://vitro.mannlib.cornell.edu/ns/default#n3450> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter> <http://vitro.mannlib.cornell.edu/ns/default/datagetter#DepartmentalResearchAreasDG> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#requiresBodyTemplate> "individual-dept-res-area-details.ftl" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#title> "Departmental Research Areas" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#urlMapping> "/deptResearchAreas" .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n3450>
|
||||
<http://vitro.mannlib.cornell.edu/ns/default/datagetter#DepartmentalResearchAreasDG>
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#query>
|
||||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
SELECT DISTINCT (str (?prsnLabel) AS ?personLabel)
|
||||
?person
|
||||
(Str(?researchAreaLabel) AS ?raLabel)
|
||||
|
@ -104,9 +111,11 @@ display:getResearchAreaDataGetter
|
|||
?raURI
|
||||
?orgURI
|
||||
WHERE {
|
||||
?orgURI vivo:organizationForPosition ?posn .
|
||||
?orgURI rdfs:label ?orgLabel .
|
||||
?posn vivo:positionForPerson ?person .
|
||||
?orgURI vivo:relatedBy ?posn .
|
||||
?posn a vivo:Position .
|
||||
?orgURI rdfs:label ?organizationLabel .
|
||||
?posn vivo:relates ?person .
|
||||
?person a foaf:Person .
|
||||
?person rdfs:label ?prsnLabel .
|
||||
?person vivo:hasResearchArea ?raURI .
|
||||
?raURI rdfs:label ?researchAreaLabel
|
||||
|
@ -134,14 +143,18 @@ display:getGrantsDataGetter
|
|||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
SELECT DISTINCT ?activity
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
SELECT DISTINCT ?grant
|
||||
WHERE {
|
||||
?individualURI vivo:organizationForPosition ?posn .
|
||||
?posn vivo:positionForPerson ?person .
|
||||
?person ?roleProperty ?role .
|
||||
?roleProperty rdfs:subPropertyOf vivo:hasResearcherRole .
|
||||
?role vivo:roleContributesTo ?activity .
|
||||
?activity vivo:dateTimeInterval ?dti .
|
||||
?individualURI vivo:relatedBy ?posn .
|
||||
?posn a vivo:Position .
|
||||
?posn vivo:relates ?person .
|
||||
?person a foaf:Person .
|
||||
?person <http://purl.obolibrary.org/obo/RO_0000053> ?role .
|
||||
?role a vivo:ResearcherRole .
|
||||
?role vivo:relatedBy ?grant .
|
||||
?grant a vivo:Grant .
|
||||
?grant vivo:dateTimeInterval ?dti .
|
||||
?dti vivo:end ?end.
|
||||
?end vivo:dateTime ?dt
|
||||
FILTER (?dt > afn:now())
|
||||
|
@ -151,35 +164,39 @@ display:getGrantsDataGetter
|
|||
|
||||
## data getter for the grants detail page ##
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n1697>
|
||||
<http://vitro.mannlib.cornell.edu/ns/default/page#DepartmentalGrants>
|
||||
a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Page> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter> <http://vitro.mannlib.cornell.edu/ns/default#n4170> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter> <http://vitro.mannlib.cornell.edu/ns/default/datagetter#DepartmentalGrantsDG> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#requiresBodyTemplate> "individual-dept-active-grants.ftl" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#title> "Departmental Grants" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#urlMapping> "/deptGrants" .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default#n4170>
|
||||
<http://vitro.mannlib.cornell.edu/ns/default/datagetter#DepartmentalGrantsDG>
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#query>
|
||||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
SELECT DISTINCT (str (?actLabel) AS ?activityLabel) ?dt (str(?departmentLabel) AS ?deptLabel) ?activity
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
SELECT DISTINCT (str (?gLabel) AS ?grantLabel) ?dt (str(?departmentLabel) AS ?deptLabel) ?grant
|
||||
WHERE {
|
||||
?individualURI vivo:organizationForPosition ?posn .
|
||||
?individualURI vivo:relatedBy ?posn .
|
||||
?posn a vivo:Position .
|
||||
?individualURI rdfs:label ?departmentLabel .
|
||||
?posn vivo:positionForPerson ?person .
|
||||
?person ?roleProperty ?role .
|
||||
?roleProperty rdfs:subPropertyOf vivo:hasResearcherRole .
|
||||
?role vivo:roleContributesTo ?activity .
|
||||
?activity rdfs:label ?actLabel .
|
||||
?activity vivo:dateTimeInterval ?dti .
|
||||
?posn vivo:relates ?person .
|
||||
?person a foaf:Person .
|
||||
?person <http://purl.obolibrary.org/obo/RO_0000053> ?role .
|
||||
?role a vivo:ResearcherRole .
|
||||
?role vivo:relatedBy ?grant .
|
||||
?grant a vivo:Grant .
|
||||
?grant rdfs:label ?gLabel .
|
||||
?grant vivo:dateTimeInterval ?dti .
|
||||
?dti vivo:end ?end.
|
||||
?end vivo:dateTime ?dt
|
||||
FILTER (?dt > afn:now())
|
||||
}
|
||||
ORDER BY ?activityLabel
|
||||
ORDER BY ?gLabel
|
||||
""" ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#saveToVar> "deptGrants" .
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue