-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
175 lines (165 loc) · 5.01 KB
/
index.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>SPARQL support</title>
<script type="text/javascript" src="./node_modules/codemirror/lib/codemirror.js"></script>
<script type="text/javascript" src="./node_modules/codemirror/addon/edit/matchbrackets.js"></script>
<script type="text/javascript" src="./node_modules/codemirror/addon/edit/closebrackets.js"></script>
<script type="text/javascript" src="./node_modules/codemirror/addon/fold/foldcode.js"></script>
<script type="text/javascript" src="./node_modules/codemirror/addon/fold/foldgutter.js"></script>
<script type="text/javascript" src="./node_modules/codemirror/addon/search/match-highlighter.js"></script>
<link rel="stylesheet" type="text/css" href="./node_modules/codemirror/addon/fold/foldgutter.css">
<link rel="stylesheet" type="text/css" href="./node_modules/codemirror/lib/codemirror.css">
<script type="text/javascript" src="./js/sparql-support.js"></script>
<script type="text/javascript" src="./js/sparql.js"></script>
<script type="text/javascript" src="./js/sparql-fold.js"></script>
<link rel="stylesheet" type="text/css" href="./css/base.css">
<style type="text/css">
body {
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px ;
font-family: "Hiragino Kaku Gothic ProN", Meiryo, Osaka, sans-serif;
}
div#head{
color: #ffffff;
background-color: #86b9d9;
margin: 0px 0px 0px 0px;
margin-top: 0px;
width: 100%;
height: 80px;
}
img#logo{
position: relative;
top: 20px;
float:left;
margin:0px 20px 0px 20px;
}
div#header_r{
float: right;
text-align: right;
margin-right: 0px;
}
img#poweredbydbcls{
margin-top: 12px;
}
div#main {
margin-top: 20px;
}
div.hr {
background-color: #86b9d9;
width: 100%;
margin-top: 0px;
height: 20px;
}
h1 {
font-size: 24px;
margin: 0px;
padding: 40px 20px 0px 20px;
}
h2 {
font-size: 20px;
color: #555555;
}
h3 {
margin-left:20px;
font-size: 16px;
color: #555555;
}
a {
color: #4886ad;
}
.ml50 {
margin-left: 50px;
}
.ml100 {
margin-left: 100px;
}
pre {
margin: 0px 70px 0px 70px;
padding: 10px 30px 10px 30px;
font-family: Consolas, 'Courier New', Courier, Monaco, monospace;
font-size: 14px;
}
div#main {
width: 100%;
}
div.form {
width: 80%;
margin: 0 auto;
}
div.link {
margin-top: 40px;
margin-bottom: 16px;
}
form#form {
margin-top: 30px;
}
textarea#query {
width: 100%;
height: 400px;
}
input.button {
font-size: 20px;
margin-bottom: 20px;
cursor:pointer;
}
#dbcls-common-header nav.gnav {
margin: 0;
}
</style>
</head>
<body>
<div id="head">
<h1>SPARQL support</h1>
</div>
<div id="main">
<div class="form">
<form method="get" id="form">
<textarea id="query" name="query">## endpoint https://dbpedia.org/sparql
PREFIX dbpedia: <http://dbpedia.org/resource/>
SELECT DISTINCT *
WHERE {
<http://dbpedia.org/resource/Tokyo> ?p ?o .
}
LIMIT 10</textarea>
<br>
<input type="submit" id="submit_query" class="button" value="Run Query" />
</form>
<div class="link" id="foot">
<p style="margin-left: 20px;">
<a href="https://sparql-support.dbcls.jp/sparql-support.html" id="reflink">about SPARQL support</a>
</p>
</div>
</div>
</div>
<div class="hr"></div>
<script language="javascript">
if(window.navigator.languages && window.navigator.languages[0] == "ja"){
document.getElementById("reflink").href = "https://sparql-support.dbcls.jp/sparql-support_j.html";
}
var id = "query";
var editor = CodeMirror.fromTextArea(document.getElementById(id), {
mode: "application/sparql-query",
matchBrackets: true,
autoCloseBrackets: true,
lineNumbers: true,
sparqlSupportAutoComp: true, // Auto completion
sparqlSupportQueries: true, // Tabbed interface
sparqlSupportInnerMode: true, // Inner mode
extraKeys: {"Tab": function(instance) { return false; },
"Ctrl-Space": function(instance) { return false; },
"Ctrl-Q": function(cm){ cm.foldCode(cm.getCursor()); }},
foldGutter: true,
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
highlightSelectionMatches: {showToken: /[\w:]/}
});
</script>
<script type="text/javascript" src="https://dbcls.rois.ac.jp/DBCLS-common-header-footer/v2/script/common-header-and-footer.js" style="display: block" id="common-header-and-footer__script" data-header-menu-type="deployed" data-show-footer="true" data-show-footer-links="true" data-year="2015"></script>
<style>
#dbcls-common-header nav.gnav {
margin-left: 30px;
}
</style>
</body>
</html>