Changeset 34966


Ignore:
Timestamp:
2021-03-15T23:21:05+13:00 (3 years ago)
Author:
davidb
Message:

Additional notes for Apache Jena v1.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/apache-jena/trunk/src/README.txt

    r34683 r34966  
    4545<base href="/greenstone3-lod/" />
    4646
    47 and changing the control-panel.tpl form action to be:
     47and changing the 'control-panel.tpl' form action to be:
    4848
    4949 <form action="/greenstone3-lod/${action}" method="post">
     
    5757For a proxied install you would (continuing the example) do:
    5858
    59   http://sowemustthink.space/greenstone3-lod/greenstone/query?query=select+*+where+%7B+%3Fs+%3Fo+%3Fp+%7D+limit+100&output=text&stylesheet=
    60  
     59http://sowemustthink.space/greenstone3-lod/greenstone/query?query=select+*+where+%7B+%3Fs+%3Fo+%3Fp+%7D+limit+100&output=text&stylesheet=
     60
     61
     62Factoring in these details, it is possible to setup a transform/page/sparql.xsl page in Greenstone3 this is fully operational,
     63even in the ReverseProxying situation.
     64
     65One key step in sparql.xsl is to updated the form input argument for 'stylesheet' to specify the proxied prefix URL:
     66
     67  stylesheet=/greenstone3-lod/xml-to-html-links.xsl
     68  stylesheet=%2Fgreenstone3-lod%2Fxml-to-html-links.xsl
     69
     70
     71When asking for the SPARQL XML result to be transformed to html-links, the hyperlinks in the page generated
     72also need some tweaking.  The Greenstone3 sparql.xsl page helps plumb the static files used back to the
     73/greenstone3-lod/ url, but inside 'xml-to-html-links.xsl' this sets another 'stylesheet=' argument that
     74needs to be updated to the ReverseProxy setup
     75
     76
     77    <a href="?query={$query}&amp;output=xml&amp;stylesheet=%2Fxml-to-html-links.xsl">
     78->   
     79    <a href="?query={$query}&amp;output=xml&amp;stylesheet=%2Fgreenstone3-lod%2Fxml-to-html-links.xsl">
     80
     81You might need to reload the xml-to-html-links.xsl file in the browser if it has been cached before the change
     82
     83
     84% fgrep -rl xml-to-html etc/
     85  etc/pages/sparql.html
     86  etc/pages/sparql.tpl
     87  etc/pages/xml-to-html-links.xsl
     88
     89
     90
    6191
    6292#----
Note: See TracChangeset for help on using the changeset viewer.