@@ -22,6 +22,7 @@ limitations under the License.
22
22
<!ENTITY rdfs " http://www.w3.org/2000/01/rdf-schema#" >
23
23
<!ENTITY xsd " http://www.w3.org/2001/XMLSchema#" >
24
24
<!ENTITY owl " http://www.w3.org/2002/07/owl#" >
25
+ <!ENTITY srx " http://www.w3.org/2005/sparql-results#" >
25
26
<!ENTITY http " http://www.w3.org/2011/http#" >
26
27
<!ENTITY ldt " https://www.w3.org/ns/ldt#" >
27
28
<!ENTITY sd " http://www.w3.org/ns/sparql-service-description#" >
@@ -39,6 +40,7 @@ xmlns:ac="∾"
39
40
xmlns:rdf=" &rdf; "
40
41
xmlns:rdfs=" &rdfs; "
41
42
xmlns:owl=" &owl; "
43
+ xmlns:srx=" &srx; "
42
44
xmlns:http=" &http; "
43
45
xmlns:ldt=" &ldt; "
44
46
xmlns:dct=" &dct; "
@@ -103,22 +105,34 @@ exclude-result-prefixes="#all">
103
105
104
106
<xsl : template match =" /" >
105
107
<html lang =" {$ldt:lang}" >
106
- <xsl : variable name =" grouped-rdf" as =" document-node()" >
107
- <xsl : apply-templates select =" ." mode =" ac:GroupTriples" />
108
- </xsl : variable >
109
-
110
- <xsl : apply-templates select =" $grouped-rdf/rdf:RDF" mode =" xhtml:Head" />
111
-
112
- <xsl : apply-templates select =" $grouped-rdf/rdf:RDF" mode =" xhtml:Body" />
108
+ <xsl : apply-templates />
113
109
</html >
114
110
</xsl : template >
115
111
116
- <xsl : template match =" rdf:RDF" mode =" xhtml:Head" >
112
+ <xsl : template match =" rdf:RDF" >
113
+ <xsl : variable name =" grouped-rdf" as =" document-node()" >
114
+ <xsl : apply-templates select =" root(.)" mode =" ac:GroupTriples" />
115
+ </xsl : variable >
116
+
117
+ <xsl : for-each select =" $grouped-rdf/rdf:RDF" >
118
+ <xsl : apply-templates select =" ." mode =" xhtml:Head" />
119
+
120
+ <xsl : apply-templates select =" ." mode =" xhtml:Body" />
121
+ </xsl : for-each >
122
+ </xsl : template >
123
+
124
+ <xsl : template match =" srx:sparql" >
125
+ <xsl : apply-templates select =" ." mode =" xhtml:Head" />
126
+
127
+ <xsl : apply-templates select =" ." mode =" xhtml:Body" />
128
+ </xsl : template >
129
+
130
+ <xsl : template match =" rdf:RDF | srx:sparql" mode =" xhtml:Head" >
117
131
<head >
118
132
<xsl : apply-templates select =" ." mode =" xhtml:Meta" />
119
-
133
+
120
134
<xsl : apply-templates select =" ." mode =" xhtml:Title" />
121
-
135
+
122
136
<xsl : apply-templates select =" ." mode =" xhtml:Style" />
123
137
124
138
<xsl : apply-templates select =" ." mode =" xhtml:Script" />
@@ -141,6 +155,12 @@ exclude-result-prefixes="#all">
141
155
</body >
142
156
</xsl : template >
143
157
158
+ <xsl : template match =" srx:sparql" mode =" xhtml:Body" >
159
+ <body >
160
+ <xsl : apply-templates select =" ." mode =" xhtml:Table" />
161
+ </body >
162
+ </xsl : template >
163
+
144
164
<xsl : template match =" rdf:RDF" mode =" bs2:NavBar" >
145
165
<div class =" navbar navbar-fixed-top" >
146
166
<div class =" navbar-inner" >
@@ -267,7 +287,7 @@ exclude-result-prefixes="#all">
267
287
268
288
<!-- META -->
269
289
270
- <xsl : template match =" rdf:RDF" mode =" xhtml:Meta" >
290
+ <xsl : template match =" rdf:RDF | srx:sparql " mode =" xhtml:Meta" >
271
291
<meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
272
292
</xsl : template >
273
293
@@ -279,7 +299,7 @@ exclude-result-prefixes="#all">
279
299
</title >
280
300
</xsl : template >
281
301
282
- <xsl : template match =" rdf:RDF[ac:uri()]" mode =" xhtml:Title" priority =" 1" >
302
+ <xsl : template match =" rdf:RDF[ac:uri()] | srx:sparql " mode =" xhtml:Title" priority =" 1" >
283
303
<title >
284
304
<xsl : value-of >
285
305
<xsl : apply-templates select =" key('resources', ac:document-uri(ac:uri()))" mode =" ac:label" />
@@ -291,15 +311,15 @@ exclude-result-prefixes="#all">
291
311
292
312
<!-- STYLE -->
293
313
294
- <xsl : template match =" rdf:RDF" mode =" xhtml:Style" >
314
+ <xsl : template match =" rdf:RDF | srx:sparql " mode =" xhtml:Style" >
295
315
<link href =" {resolve-uri('static/css/bootstrap.css', $ac:contextUri)}" rel =" stylesheet" type =" text/css" />
296
316
<link href =" {resolve-uri('static/css/bootstrap-responsive.css', $ac:contextUri)}" rel =" stylesheet" type =" text/css" />
297
317
<link href =" {resolve-uri('static/com/atomgraph/client/css/bootstrap.css', $ac:contextUri)}" rel =" stylesheet" type =" text/css" />
298
318
</xsl : template >
299
319
300
320
<!-- SCRIPT -->
301
321
302
- <xsl : template match =" rdf:RDF" mode =" xhtml:Script" >
322
+ <xsl : template match =" rdf:RDF | srx:sparql " mode =" xhtml:Script" >
303
323
<script type =" text/javascript" src =" {resolve-uri('static/js/jquery.min.js', $ac:contextUri)}" defer =" defer" ></script >
304
324
<script type =" text/javascript" src =" {resolve-uri('static/js/bootstrap.js', $ac:contextUri)}" defer =" defer" ></script >
305
325
<script type =" text/javascript" src =" {resolve-uri('static/com/atomgraph/client/js/UUID.js', $ac:contextUri)}" defer =" defer" ></script >
0 commit comments