VIVO-263: corrected counts on map display and updated us-states.rdf file to include relationship between states and the US.

This commit is contained in:
tworrall 2013-08-23 16:27:10 -04:00
parent 706e0ae1c1
commit 621be26e73
6 changed files with 47 additions and 7 deletions

View file

@ -29,3 +29,23 @@ display:academicDeptsDataGetter
""" .
<freemarker:lib-home-page.ftl> display:hasDataGetter display:researcherCountDataGetter .
display:researcherCountDataGetter
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter> ;
display:saveToVar "researcherCountDG" ;
display:query """
PREFIX geo: <http://aims.fao.org/aos/geopolitical.owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX vivoc: <http://vivo.library.cornell.edu/ns/0.1#>
SELECT DISTINCT (COUNT(?person) AS ?count)
WHERE {
?person rdf:type foaf:Person .
FILTER (EXISTS {?person core:geographicFocus ?focus})
}
""" .