Hello all,
I have a little doubt, maybe we are doing something wrong.
According to this tutorial,
https://wiki.duraspace.org/display/VIVODOC19x/Enriching+profile+pages+using+SPARQL+query+DataGetters , we are modifiying some files in our vivo local instalation. After that a compilation and a deploy is needed.
so, I modified the individual-adminPanel.ftl to present the data results of some querys, like that---
<!-- departamentos del investigador -->
<#if posicionesInvestigador?has_content>
<h2 style="color:green">
Listado Departamentos propias del investigador y premios
</h2>
<ul role="list">
<#list posicionesInvestigador as resultRow>
<li class="raLink">
* ${resultRow["nombrePosition"]}
* ${resultRow["nombreOrganizacion"]}
</li>
</#list>
</ul>
<#else>
<p style="color:red;bold">5) error departamentos / posiciones </p>
</#if>
, where we interrrogate the vivo, like that (ourFile.n3)
# consulta de los departamentos del investigador (positions)
display:investigatorDepartaments
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter> ;
display:saveToVar "posicionesInvestigador";
select ?nombreOrganizacion ?nombrePosition
BIND (URI ( ?individualURI ) AS ?pers ) .
?position a vivo:FacultyPosition.
?position vivo:relates ?pers.
?pers a vivo:FacultyMember.
?position rdfs:label ?nombrePosition.
?position vivo:relates ?org.
?org a foaf:Organization.
?org rdfs:label ?nombreOrganizacion.
straightforward.
the problem is whe we try to interrogate another vivo entity, like Award. Writting just unther these funtions in the same files, we have in the .ftl file we have :
<#if variableDudas?has_content>
<#list variableDudas as resultRow>
* ${resultRow["nombrePosition"]}
<p style="color:red;bold">6) ¿¿¿ ERROR PREMIOS ???</p>
and in the .n3 :
[... other things... ]
# prueba basada en departamentos, tratando de cambiarlo por premios. no funciona
display:soloDepartamentos
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter> ;
display:saveToVar "variableDudas";
select (str(?pers) AS ?nombrePosition)
BIND (URI ( ?individualURI ) AS ?pers ) .
?awardReceipt vivo:relates ?award.
?awardReceipt vivo:relates ?pers.
#nombres de las variables.
?award rdfs:label ?nombreOrganizacion.
?pers rdfs:label nombrePosition.
wich returns nothing. the same sparql query is checked in the sparql editor and it returns info always, so... we are completely lost.
Is there any feature, that makes different the vivo:Award from other vivo entities? I asume not, so the mistake must be another thing, but I cannot see what.
thanks a lot