Changeset 35011 for main


Ignore:
Timestamp:
2021-04-04T20:17:24+12:00 (3 years ago)
Author:
davidb
Message:

Refactoring to specify collection in URIs with xsl-param

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/transform/pages/sparql.xsl

    r34972 r35011  
    110110          </textarea>
    111111         
    112           <div style="displayXXXX:none;">
     112          <div style="display:none;">
    113113        <div>
    114114          Output:
     
    165165
    166166SELECT ?subject ?predicate ?object WHERE {
    167   GRAPH &lt;http://localhost:4040/greenstone/data/eurovision-dev&gt;  {
     167  GRAPH &lt;http://localhost:4040/greenstone/data/</xsl:text><xsl:value-of select="$collName"/><xsl:text>&gt;  {
    168168    ?subject ?predicate ?object
    169169
     
    214214SELECT ?esc_entrant_uri ?country ?year WHERE {
    215215  GRAPH &lt;http://localhost:4040/greenstone/data/</xsl:text><xsl:value-of select="$collName"/><xsl:text>&gt;  {
    216     ?esc_entrant_uri dc:Relation.isPartOf &lt;http://127.0.0.1:8383/greenstone3/library/collection/eurovision&gt;.
     216    ?esc_entrant_uri dc:Relation.isPartOf &lt;http://127.0.0.1:8383/greenstone3/library/collection/</xsl:text><xsl:value-of select="$collName"/><xsl:text>&gt;.
    217217
    218218    ?esc_entrant_uri gsdlextracted:Year ?year.
     
    234234SELECT ?country ?year ?total WHERE {
    235235  GRAPH &lt;http://localhost:4040/greenstone/data/</xsl:text><xsl:value-of select="$collName"/><xsl:text>&gt;  {
    236     ?esc_entrant_uri dc:Relation.isPartOf &lt;http://127.0.0.1:8383/greenstone3/library/collection/eurovision&gt;.
     236    ?esc_entrant_uri dc:Relation.isPartOf &lt;http://127.0.0.1:8383/greenstone3/library/collection/</xsl:text><xsl:value-of select="$collName"/><xsl:text>&gt;.
    237237
    238238    ?esc_entrant_uri gsdlextracted:SingVotesTotal ?total.
     
    258258SELECT ?country ?year ?jury_country ?jury_vote WHERE {
    259259  GRAPH &lt;http://localhost:4040/greenstone/data/</xsl:text><xsl:value-of select="$collName"/><xsl:text>&gt;  {
    260     ?esc_entrant_uri dc:Relation.isPartOf &lt;http://127.0.0.1:8383/greenstone3/library/collection/eurovision&gt;.
     260    ?esc_entrant_uri dc:Relation.isPartOf &lt;http://127.0.0.1:8383/greenstone3/library/collection/</xsl:text><xsl:value-of select="$collName"/><xsl:text>&gt;.
    261261
    262262    ?esc_entrant_uri ?gsdlextracted_jury_country_uri ?jury_vote.
Note: See TracChangeset for help on using the changeset viewer.