File: create-virtuoso.xsl

package info (click to toggle)
virtuoso-opensource 7.2.5.1%2Bdfsg1-0.3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 285,240 kB
  • sloc: ansic: 641,220; sql: 490,413; xml: 269,570; java: 83,893; javascript: 79,900; cpp: 36,927; sh: 31,653; cs: 25,702; php: 12,690; yacc: 10,227; lex: 7,601; makefile: 7,129; jsp: 4,523; awk: 1,697; perl: 1,013; ruby: 1,003; python: 326
file content (228 lines) | stat: -rw-r--r-- 5,799 bytes parent folder | download | duplicates (3)
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF [
   <!ENTITY xsd  "http://www.w3.org/2001/XMLSchema#" >
 ]>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:sparql="http://www.w3.org/2005/sparql-results#" 
	xmlns="http://www.w3.org/1999/xhtml">

	<xsl:include href="../locale/messages.xsl" />

	<xsl:variable name="title">
		<xsl:value-of select="$repository-create.title" />
	</xsl:variable>

	<xsl:include href="template.xsl" />

	<xsl:template match="sparql:sparql">
		<form action="create" method="post">
			<table class="dataentry">
				<tbody>
					<tr>
						<th>
							<xsl:value-of
								select="$repository-type.label" />
						</th>
						<td>
							<select id="type" name="type">
								<option value="virtuoso">
									Virtuoso RDF Store
								</option>
							</select>
						</td>
						<td></td>
					</tr>
					<tr>
						<th>
							<xsl:value-of select="$repository-id.label" />
						</th>
						<td>
							<input type="text" id="id"
								name="Repository ID" size="16" 
								value="myvirtuoso" />
						</td>
						<td></td>
					</tr>
					<tr>
						<th>
							<xsl:value-of
								select="$repository-title.label" />
						</th>
						<td>
							<input type="text" id="title"
								name="Repository title" size="48"
								value="Virtuoso RDF store" />
						</td>
						<td></td>
					</tr>
					<tr>
						<th>
							Virtuoso connection host list
						</th>
						<td>
							<input type="text" id="hostList"
								name="Host list" size="48"
								value="localhost:1111" />
						</td>
						<td></td>
					</tr>
					<tr>
						<th>
							Username
						</th>
						<td>
							<input type="text" id="username"
								name="Username" size="24"
								value="dba" />
						</td>
						<td></td>
					</tr>
					<tr>
						<th>
							Password
						</th>
						<td>
							<input type="password" id="password"
								name="Password" size="24"
								value="dba" />
						</td>
						<td></td>
					</tr>
					<tr>
						<th>
							Default graph name
						</th>
						<td>
							<input type="text" id="defGraph"
								name="Default graph name" size="48"
								value="sesame:nil" />
						</td>
						<td></td>
					</tr>
					<tr>
						<td>
						        Enable using batch optimization
						</td>
						<td>
							<input type="radio" id="useLazyAdd"
								name="Enable using batch optimization" size="48" value="true" />
							<xsl:value-of select="$true.label" />
							<input type="radio" id="useLazyAdd"
								name="Enable using batch optimization" size="48" value="false" checked="true" />
							<xsl:value-of select="$false.label" />
						</td>
						<td></td>
					</tr>
					<tr>
						<th>
						        Batch buffer size
						</th>
						<td>
							<input type="text" id="batchSize"
								name="Batch buffer size" size="4" value="5000" />
						</td>
						<td></td>
					</tr>
					<tr>
						<td>
						        Use RoundRobin for connection
						</td>
						<td>
							<input type="radio" id="roundRobin"
								name="Use RoundRobin for connection" size="48" value="true" />
							<xsl:value-of select="$true.label" />
							<input type="radio" id="roundRobin"
								name="Use RoundRobin for connection" size="48" value="false" checked="true" />
							<xsl:value-of select="$false.label" />
						</td>
						<td></td>
					</tr>
					<tr>
						<th>
						        Buffer fetch size
						</th>
						<td>
							<input type="text" id="fetchSize"
								name="Buffer fetch size" size="4" value="100" />
						</td>
						<td></td>
					</tr>
					<tr>
						<th>
						        Inference RuleSet name
						</th>
						<td>
							<input type="text" id="ruleSet"
								name="Inference RuleSet name" size="48" value="null" />
						</td>
						<td></td>
					</tr>
					<tr>
						<td>
						        Insert BNode as Virtuoso IRI
						</td>
						<td>
							<input type="radio" id="insertBNodeAsVirtuosoIRI"
								name="Insert BNode as Virtuoso IRI" size="48" value="true" />
							<xsl:value-of select="$true.label" />
							<input type="radio" id="insertBNodeAsVirtuosoIRI"
								name="Insert BNode as Virtuoso IRI" size="48" value="false" checked="true" />
							<xsl:value-of select="$false.label" />
						</td>
						<td></td>
					</tr>
					<tr>
						<th>
						        Inference MacroLib name
						</th>
						<td>
							<input type="text" id="macroLib"
								name="Inference MacroLib name" size="48" value="null" />
						</td>
						<td></td>
					</tr>
					<tr>
						<th>
						        Concurrency Mode
						</th>
						<td>
							<input type="text" id="concurrency"
								name="Concurrency Mode" size="4" value="0" />
						</td>
						<td></td>
					</tr>
					<tr>
						<td>
						        Use defGraph with SPARQL queries, if query default graphs weren't set
						</td>
						<td>
							<input type="radio" id="useDefGraphForQueries"
								name="Use defGraph for Queries" size="48" value="true" />
							<xsl:value-of select="$true.label" />
							<input type="radio" id="useDefGraphForQueries"
								name="Use defGraph for Queries" size="48" value="false" checked="true" />
							<xsl:value-of select="$false.label" />
						</td>
						<td></td>
					</tr>


					<tr>
						<td></td>
						<td>
							<input type="button" value="{$cancel.label}" style="float:right"
								data-href="repositories"
                                                                onclick="document.location.href=this.getAttribute('data-href')" />
							<input id="create" type="button" value="{$create.label}"
								onclick="checkOverwrite()" />
						</td>
					</tr>
				</tbody>
			</table>
		</form>
		<script src="../../scripts/create.js" type="text/javascript">
		</script>
	</xsl:template>

</xsl:stylesheet>