lcnp / GSIP

Groundwater Surface water Interop Experiment
MIT License
1 stars 0 forks source link

SPARQL templating should be configurable #13

Open denevers opened 2 weeks ago

denevers commented 2 weeks ago

HTML templates are configurable in configuration.xml

        <p:parameter name="infoTemplate">infohtml.ftl</p:parameter><!--  info from id  -->
        <p:parameter name="infoInfoTemplate">infoinfohtml.ftl</p:parameter> <!-- info from info -->
        <!--  special template for geologic units (pattern starts after /id/) -->
        <p:parameter name="infoTemplate" pattern="http.*/geologicUnits/.*">geounits.ftl</p:parameter>

and the associated SPARQL queries are not (hardcoded InformationUri.java) while there is an obvious relationship between them. Configuration should pair them.

        <p:parameter name="infoTemplate" query="describe.ftl">infohtml.ftl</p:parameter><!--  info from id  -->