source: gs2-extensions/afrepo/trunk/src/src/html/index.php@ 27679

Last change on this file since 27679 was 27679, checked in by davidb, 8 years ago

Embelishment of the web content

File size: 2.1 KB
Line 
1<?php
2
3require_once "setup.php";
4$base = parse_url($repo->getURIPrefix());
5$basepath = $base["path"];
6
7?>
8<!DOCTYPE HTML>
9<html>
10 <head>
11 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
12
13 <link rel="stylesheet" href="css/core-style.css" type="text/css" media="screen" />
14
15
16 <title>SALAMI RDF Endpoint: <?php echo htmlspecialchars($repo->getName()); ?></title>
17 </head>
18
19 <body>
20 <div id="container">
21
22 <div id="header">
23 <h1>The SALAMI RDF Endpoint</h1>
24 </div>
25
26 <div id="navigation">
27 <ul>
28 <li class="selected"><a href="#">Home</a></li>
29 <li><a href="sparql.php">SPARQL</a></li>
30 <li><a href="contact.php">Contact</a></li>
31 </ul>
32 </div>
33
34 <div id="content-container">
35
36 <div id="content">
37
38
39<!--
40 <h1><?php echo htmlspecialchars($repo->getName()); ?></h1>
41-->
42
43 <p>
44 <a href="images/trouble-blues_buddy-guy_annotator1_cropped.png">
45 <img src="images/trouble-blues_buddy-guy_annotator1_cropped_scaled.png" />
46 </a>
47 </p>
48
49 <p>
50 Welcome to the RDF Endpoint to the
51 <a href="http://ddmal.music.mcgill.ca/salami">SALAMI</a>
52 (Structural Analysis of Large Amounts of Music Information)
53 project&mdash;the culmination of collaborative work in music content analaysis
54 by Universities of Illinois, McGill, Oxford and Queen Mary.
55 Through this page you can access RDF data to a corpus of X million songs.
56 </p>
57
58 <p>
59 The data is available in both static form, and dynamically through
60 a SPARQL endpoint.
61 </p>
62
63
64
65 <p>Requests are of the form
66 <code><?php echo htmlspecialchars($basepath); ?><em>audiofile-id</em></code>
67 where <em>audiofile-id</em> is the 32-digit hexidecimal identifier of
68 the audiofile.</p>
69
70 <p>The <code>Accept</code> header you send is taken into account.
71 Various types of RDF are available, plus an HTML representation and
72 potentially the audio data (use <code>audio/*</code> to accept any
73 format of audio).</p>
74 <?php if ($repo->getSparqlEndpoint()) { ?>
75 <p>A Sparql endpoint is available at
76 <code><?php echo htmlspecialchars($repo->getSparqlEndpoint()); ?></code>.</p>
77 <?php } ?>
78 </body>
79</html>
Note: See TracBrowser for help on using the repository browser.