-
Notifications
You must be signed in to change notification settings - Fork 1
/
triples.html
125 lines (99 loc) · 4.03 KB
/
triples.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>FooWiki</title>
<link rel="stylesheet" href="css/columns.css" />
<link rel="stylesheet" href="css/normalize.css" />
<link rel="stylesheet" href="css/common.css" />
<link href="css/jquery.tagit.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="css/tagit.ui-zendesk.css">
<link rel="stylesheet" type="text/css" href="css/jquery-ui.min.css" />
<script src="js/lib/jquery-1.10.2.js"></script>
<script src="js/lib/jquery-ui.min.js" type="text/javascript" charset="utf-8"></script>
<!-- from https://github.com/aehlke/tag-it -->
<script src="js/lib/tag-it.js" type="text/javascript" charset="utf-8"></script>
<!-- markdown processor -->
<script src="js/lib/marked.js"></script>
<!-- mustache template compiler -->
<script src="js/lib/hogan-3.0.2.js"></script>
<!-- script src="js/jquery-ui.js"></script>
<script src="js/jquery.fileupload.js"></script>
<script src="js/jquery.iframe-transport.js"></script -->
<!-- date formatting -->
<script src="js/lib/moment.js"></script>
<!-- FooWiki scripts -->
<script src="js/foowiki/config.js"></script>
<script src="js/foowiki/sparql-templates.js"></script>
<script src="js/foowiki/html-templates.js"></script>
<script src="js/foowiki/utils.js"></script>
<script src="js/foowiki/core.js"></script>
<script src="js/foowiki/index.js"></script>
<script src="js/foowiki/edit.js"></script>
<script src="js/foowiki/sparql-connector.js"></script>
<script type="text/javascript" language="javascript">
var getResourcesSparql = sparqlTemplater(getResourcesSparqlTemplate, {
"FooWiki.graphURI": FooWiki.graphURI
});
var getPagesUrl = FooWiki.sparqlQueryEndpoint + encodeURIComponent(getResourcesSparql) + "&output=xml";
$(function () {
setupErrorHandling();
spinner();
$("#graphName").attr("value", FooWiki.graphURI);
setupButtons();
var doneCallback = function (json) {
console.log("RESOURCES = " + JSON.stringify(json));
var rows = makeResourceListHTML(json, false);
$("#triples").replaceWith(rows);
// setupTagsPanel("#tagsPanelTagsContainer");
};
getJsonForSparqlURL(getPagesUrl, doneCallback);
// getDataForURL(doneCallback, getPagesUrl);
});
</script>
</head>
<body>
<!-- div id="container" -->
<div id="errorbox"></div>
<div id="header">FooWiki</div>
<div id="middle" class="column">
<table id="triplesTable">
<!-- refactor to use entryTableTemplate -->
<tr>
<th colspan="5"><a href="index.html">All</a> Pages</th>
</tr>
<tr>
<th class="center">Page</th>
<th class="center">Date</th>
<th class="center">Creator</th>
</tr>
<tr id="triples"></tr>
</table>
</div>
<div id="left" class="column">
<div class="tab"><a href="index.html">Page Index</a>
</div>
<!-- div class="tab"><a href="page.html?uri=http://hyperdata.it/wiki/">Home Page</a>
</div -->
</div>
<div id="right" class="column">
<div id='searchContainer'>
<button id='searchButton'>Search</button>
<!-- label for='searchText'>Search Text</label -->
<input id='searchText' type='text' value=''></input>
<div id='tagButtons'></div>
<ul id="results"></ul>
</div>
</div>
<!-- div id="tagsPanel">
<label for='tagsPanelTagsContainer'>Tags</label>
<ul id='tagsPanelTagsContainer'>
</ul>
</div -->
<!-- input id="fileupload" type="file" name="files[]" data-url="/foowiki/upload" multiple -->
<div id="footer"><em>hyperdata.it</em>
</div>
</div>
<div id="spinner" class="spinner"></div>
</body>
</html>