<!-- FM_BEGIN siteAdmin-advancedDataTools.ftl -->
<!-- FM_END siteAdmin-advancedDataTools.ftl -->
Hi Pedro,
Tim’s suggestion is a good way to start looking at which templates are being used in the pages you wish to modify.
To answer the second question regarding rebuilding/redeploying, you need to redeploy the application if you’re using Steps 3-5 since there you need to define the data getter with the query you wish to execute and the association between the data getter and a particular class (in this case Academic Department).
In step 6, Page Management allows for specifying the data getter query and associating the query with a particular template and page/URL for displaying results. (The content type dropdown in the image should show “Sparql Query Results” for the sparql query data getters). With Step 6, whether or not you need to redeploy depends on whether the freemarker template you wish to use to display your results is already deployed before you use Page Management to define the query and link the template to display the query results. If you use Page Management but haven’t already deployed the template file you want to use, then you will have to redeploy after you have added the template, otherwise you should not have to.
For the example in Steps 3-5, you not only have to define the data getter query but also link it with a particular class, and that connection needs to be in an N3 file you have to define manually and is not something you can define using the current Page Management interface for defining Sparql Query pages.
For the specific (or similar to) files in the example for Steps 3-5, you can look at the following:
a) The RDF that defines connections between different classes and the “getResearchAreaDataGetter” (lines 15-21) as well as the query (lines 26-51) itself here: https://github.com/vivo-project/VIVO/blob/develop/home/src/main/resources/rdf/display/everytime/vivoOrganizationDataGetters.n3 . Query results are saved in a variable named “researchAreaResults” that are then made available to the templates linked to the class (in this case, organization).
b) The page used to display organization info is here:
This incorporates https://github.com/vivo-project/VIVO/blob/develop/webapp/src/main/webapp/templates/freemarker/body/partials/individual/individual-affiliated-research-areas.ftl which references researchAreaResults and displays them.
Freemarker template files are referenced just by name and not by full path in these examples. If a matching template is found with that name, then that one is used.
Tim and others who worked on the research areas example I linked to above, please feel free to correct any of this if need be. vivoOrganizationDataGetters.n3 (linked above) has other examples of data getters as well.
Pedro, feel free to attend our developer call or reach out again and we can try to walk through more of this with you if need be.
Huda
From: vivo...@googlegroups.com <vivo...@googlegroups.com> On Behalf Of Pedro Moreo
Sent: Wednesday, July 11, 2018 9:47 AM
To: VIVO Tech <vivo...@googlegroups.com>
--
You received this message because you are subscribed to the Google Groups "VIVO Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
vivo-tech+...@googlegroups.com.
To post to this group, send email to
vivo...@googlegroups.com.
Visit this group at https://groups.google.com/group/vivo-tech.
To view this discussion on the web visit https://groups.google.com/d/msgid/vivo-tech/c01e5030-b056-49ad-88a4-ae57791edaba%40googlegroups.com.