-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathtemplate.haml
More file actions
133 lines (123 loc) · 6.58 KB
/
template.haml
File metadata and controls
133 lines (123 loc) · 6.58 KB
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
!!! 5
%html{lang: :en, prefix: "mf: http://www.w3.org/2001/sw/DataAccess/tests/test-manifest# rdft: http://www.w3.org/ns/rdftest#"}
/ This file is generated automatically from manifest.ttl, and should not be edited directly.
%head
%meta{"http-equiv" => "Content-Type", content: "text/html;charset=utf-8"}
%meta{name: "viewport", content: "width=device-width, initial-scale=1.0"}
%link{rel: "alternate", type: "text/turtle", href: ttl}
%link{rel: "stylesheet", type: "text/css", href: "https://www.w3.org/StyleSheets/TR/base"}
:css
body {background-image: none;}
dl.editor>dd {
margin: 0 0 0 40px;
}
dl.test-detail {
padding: 0.5em;
}
dl.test-detail>dt {
float: left;
clear: left;
text-align: right;
font-weight: bold;
color: green;
}
dl.test-detail>dt:after {content: ": "}
dl.test-detail>dd {
margin: 0 0 0 110px;
padding: 0 0 0.5em 0;
}
dl.test-description>dt {margin-top: 2em;}
dd {margin-left: 0;}
dd code {display: inline;}
footer {text-align: center;}
%title
= man['label'].is_a?(Hash) ? man['label']['@value'] : man['label']
:css
em.rfc2119 {
text-transform: lowercase;
font-variant: small-caps;
font-style: normal;
color: #900;
}
a.testlink {
color: inherit;
text-decoration: none;
}
a.testlink:hover {
text-decoration: underline;
}
.warning {color: orange;}
.error {color: red;}
%body{resource: man['@id'], typeof: man['@type']}
%p
%a{href: "http://www.w3.org/"}
%img{src: "http://www.w3.org/Icons/w3c_home", alt: "W3C", height: 48, width: 72}
%h1{property: "rdfs:label"}<= man['label'].is_a?(Hash) ? man['label']['@value'] : man['label']
:markdown
[Copyright](http://www.w3.org/Consortium/Legal/ipr-notice#Copyright) © 2004-2026 [World Wide Web Consortium](https://www.w3.org/). <abbr title="World Wide Web Consortium">W3C</abbr><sup>®</sup> [liability](https://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer), [trademark](https://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks) and [permissive document license](https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document) rules apply.
%hr{title: "Separator for header"}
%div
%h2{id: "abstract"}="Abstract"
- if man.key?('comment')
%p{property: "rdfs:comment"}
:markdown
#{Array(man['comment']).join(' ').gsub(/\s+/m, ' ').strip.gsub(/(MUST|SHOULD|MAY)/, '<em class="rfc2119">\\1</em>')}
:markdown
This page describes W3C RDF test suite, comprising tests for RDF 1.1 and RDF 1.2.
%h3#contributing-tests="Contributing Tests"
:markdown
The test manifests and entries are built automatically from [manifest.ttl](manifest.ttl) using a Rake task. Tests may be contributed via pull request to [https://github.com/w3c/rdf-tests](https://github.com/w3c/rdf-tests) with suitable changes to the [manifest.ttl](manifest.ttl) and referenced files.
%h3#distribution="Distribution"
:markdown
Distributed under both the [W3C Test Suite License](http://www.w3.org/Consortium/Legal/2008/04-testsuite-license) and the [W3C 3-clause BSD License](http://www.w3.org/Consortium/Legal/2008/03-bsd-license). To contribute to a W3C Test Suite, see the [policies and contribution forms](http://www.w3.org/2004/10/27-testcases).
%h3#disclaimer="Disclaimer"
:markdown
UNDER BOTH MUTUALLY EXCLUSIVE LICENSES, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.
- if man['include']
%div
%h2
Referenced Manifests
%ul
- Array(man['include']).map{|m| m.sub('manifest.ttl', '')}.each do |uri|
%li
%a{property: 'mf:include', inlist: true, href: "#{uri}index.html"}=uri
- if man['entries']
%div
%h2
Test Descriptions
%dl.test-description
- man['entries'].each do |test|
- test_id = test['@id'].split('#').last
%dt{id: test_id}
%a.testlink{href: "##{test_id}"}
= "#{test_id}:"
%span{about: test['@id'], property: "mf:name"}<~test['name']
%dd{property: "mf:entry", inlist: true, resource: test['@id'], typeof: test['@type']}
%div{property: "rdfs:comment"}
:markdown
#{Array(test['comment']).join(' ').gsub(/\s+/m, ' ').strip.gsub(/(MUST|SHOULD|MAY)/, '<em class="rfc2119">\\1</em>')}
- if test['type'] =~ /Negative/
%p.error
Negative Test
%dl.test-detail
%dt="type"
%dd<~test['@type']
%dt="approval"
%dd{property: "mf:approval", resource: test['approval']}<~test['approval']
- if test_map[test_id]
%dt="references"
%dd
- links = test_map[test_id].map.with_index {|l, r| %(<a href="#{l}">#{r+1}</a>)}
!= "(#{links.join(' ')})"
- if test['action']
%dt="action"
%dd
%a{property: "mf:action", href: test['action']}<~test['action']
- if test['result']
%dt="result"
%dd
%a{property: "mf:result", href: test['result']}<~test['result']
%footer
:markdown
[Copyright](http://www.w3.org/Consortium/Legal/ipr-notice#Copyright) © 2004-2026 [World Wide Web Consortium](https://www.w3.org/). <abbr title="World Wide Web Consortium">W3C</abbr><sup>®</sup> [liability](https://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer), [trademark](https://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks) and [permissive document license](https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document) rules apply.