Ignore:
Timestamp:
2013-08-06T13:06:43+12:00 (11 years ago)
Author:
davidb
Message:

Next round of changes after fruther testing and extra example development

Location:
gs2-extensions/afrepo/trunk/src/src/html
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/afrepo/trunk/src/src/html/css/core-style.css

    r27943 r27984  
    3333
    3434    background: #e0e0e0;
    35     font: 14px/1.6 verdana, sans-serif;
     35    font: 14px/1.6 arial, verdana, sans-serif;
    3636
    3737
     
    168168}
    169169
     170#content pre {
     171    line-height: 1.1;
     172    background-color: #eeeeee;
     173    padding: 5px;
     174}
     175
    170176
    171177#section-navigation ul
  • gs2-extensions/afrepo/trunk/src/src/html/index.php

    r27943 r27984  
    3333      <li class="selected"><a href="#">Home</a></li>
    3434      <li><a href="sparql.php">SPARQL</a></li>
     35      <li><a href="examples.php">Examples</a></li>
    3536      <li><a href="contact.php">Contact</a></li>
    3637    </ul>
  • gs2-extensions/afrepo/trunk/src/src/html/sparql.php

    r27943 r27984  
    2626          type: "GET",
    2727       
     28        /*
    2829      beforeSend: function (request) {
    2930        //request.setRequestHeader("Authority", authorizationToken);
    3031        //request.setRequestHeader("origin", "http://nema.lis.illinois.edu");
    3132        },
    32 
    33       url: "<?php echo $repo->getSparqlEndpoint();?>",
    34         data: { "query": $('#rdf-query').val(), "output": $('#rdf-output').val() },
    35         //processData: false,
     33        */
     34
     35        url: "<?php echo $repo->getSparqlEndpoint();?>",
     36        data: { "query": $('#rdf-query').val(), "output": $('#rdf-output').val(), "soft-limit": $('#rdf-soft-limit').val() },
     37           //processData: false,
     38
    3639
    3740        /*
     
    5659
    5760    error: function(err) {
    58         alert(err.toString());
    59         if (err.status == 200) {
    60           ParseResult(err);
    61         }
    62         else { alert('Error:' + err.responseText + '  Status: ' + err.status); }
     61        //alert(err.toString());
     62        //if (err.status == 200) {
     63        //  ParseResult(err);
     64        //}
     65        //else { }
     66
     67        alert('Error:' + err.responseText + '  Status: ' + err.status);
    6368      }
    6469
    6570      });
     71
    6672
    6773      return false;
     
    8894      <li><a href="index.php">Home</a></li>
    8995      <li class="selected"><a href="#">SPARQL</a></li>
     96      <li><a href="examples.php">Examples</a></li>
    9097      <li><a href="contact.php">Contact</a></li>
    9198    </ul>
     
    110117PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
    111118PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
     119PREFIX mo: <http://purl.org/ontology/mo/>
     120PREFIX salami: <http://nema.lis.illinois.edu/salamiEndpoint/>
    112121
    113122SELECT * WHERE {
    114  ?s ?p ?o
    115 } LIMIT 10
     123 ?s ?p ?o.
     124}
    116125        </textarea>
    117126        <br/>
     
    128137   <span style="margin: 5px 20px 5px 20px;">
    129138     Maximum results returned:
    130      <select name="soft-limit">
     139     <select name="soft-limit" id="rdf-soft-limit">
    131140       <option>10</option>
    132141       <option>100</option>
    133142       <option>1000</option>
     143       <option>10000</option>
     144       <option>50000</option>
    134145     </select>
    135146   </span>
Note: See TracChangeset for help on using the changeset viewer.