Changeset 29429


Ignore:
Timestamp:
11/13/14 15:38:13 (6 years ago)
Author:
sjs49
Message:

Altered overview SPARQL query so that Relation.isPartOf is no longer used. GRAPH keyword is used instead. Also removed a hard-coded collection name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/von-sparql/transform/pages/about.xsl

    r28915 r29429  
    2121    <xsl:template name="overview">
    2222
    23         <link rel="stylesheet" type="text/css" href="sites/von-sparql/transform/pages/style.css"/>
     23        <link rel="stylesheet" type="text/css" href="sites/{$site_name}/transform/pages/style.css"/>
    2424        <link rel="stylesheet" type="text/css" href="sites/{$site_name}/js/jquery-ui-extra/turnstyle-block.css"/>
    2525
     
    3636        <xsl:variable name="endpointPath" select="concat($protocol,':',$domain,':3030/greenstone/query')"/>
    3737
     38        <div class="collectionName" >
     39            <span>Collection Exploration (<xsl:value-of select="$coll_name_short"/>)</span>
     40        </div>
     41
    3842        <div id="div_PredicateOverview" >
    3943            <div id="sgvzl_PredicateOverview"
     
    4549              <xsl:attribute name="data-sgvizler-query">
    4650
     51            PREFIX gsdl: &lt;http://localhost:3030/greenstone/data/&gt;
    4752              SELECT (?p as ?Predicate) (COUNT (?s) as ?Total)WHERE
    4853              {
    49                      ?s &lt;http://purl.org/dc/elements/1.1/Relation.isPartOf&gt; &lt;http://localhost:8989/greenstone3/library/collection/<xsl:value-of select="$coll_name_short"/>&gt;;
    50                           ?p ?o
     54                GRAPH gsdl:<xsl:value-of select="$coll_name_short"/>{
     55                    ?s ?p ?o
     56                }
    5157              }
    5258              GROUP BY ?p
Note: See TracChangeset for help on using the changeset viewer.