gonum.org/v1/gonum@v0.14.0/graph/formats/rdf/testdata/template.haml (about) 1 !!! 5 2 %html{lang: :en, prefix: "rdfn: http://json-ld.github.io/normalization/test-vocab# mf: http://www.w3.org/2001/sw/DataAccess/tests/test-manifest# rdft: http://www.w3.org/ns/rdftest#"} 3 %head 4 %meta{"http-equiv" => "Content-Type", content: "text/html;charset=utf-8"} 5 %meta{name: "viewport", content: "width=device-width, initial-scale=1.0"} 6 %link{rel: "stylesheet", type: "text/css", href: "https://www.w3.org/StyleSheets/TR/base"} 7 :css 8 body: {bacground-image: none;} 9 dl.test-detail, dl.test-options { 10 padding: 0.5em; 11 } 12 dl.test-detail>dt, dl.test-options>dt { 13 float: left; 14 clear: left; 15 text-align: right; 16 font-weight: bold; 17 color: green; 18 } 19 dl.test-detail>dt:after, dl.test-options>dt:after {content: ": "} 20 dl.test-detail>dd, dl.test-options>dd { 21 margin: 0 0 0 110px; 22 padding: 0 0 0.5em 0; 23 } 24 dl.test-description>dt {margin-top: 2em;} 25 dd {margin-left: 0;} 26 dd code {display: inline;} 27 footer {text-align: center;} 28 %title 29 = man['label'] 30 :css 31 em.rfc2119 { 32 text-transform: lowercase; 33 font-variant: small-caps; 34 font-style: normal; 35 color: #900; 36 } 37 a.testlink { 38 color: inherit; 39 text-decoration: none; 40 } 41 a.testlink:hover { 42 text-decoration: underline; 43 } 44 45 %body{resource: man['id'], typeof: man['type']} 46 %p 47 %a{href: "http://www.w3.org/"} 48 %img{src: "http://www.w3.org/Icons/w3c_home", alt: "W3C", height: 48, width: 72} 49 %h1{property: "rdfs:label"}<= man['label'] 50 %p{property: "rdfs:comment"}<= man['comment'] 51 :markdown 52 This page describes RDF Dataset Normalization tests for URGNA2012 and URDNA2015 profiles. These tests are also described in [JSON-LD](manifest.jsonld) and [Turtle](manifest.ttl) formats for convenience. The manifest vocabulary is described in the [RDF Dataset Normalization Test Vocabulary](vocab.html) ([JSON-LD](vocab.jsonld), [Turtle](vocab.ttl)) and is based on the [RDF Test Vocabulary](http://www.w3.org/TR/2014/NOTE-rdf11-testcases-20140225/). 53 54 ## General instructions for running the RDF Dataset Normalization Test suites 55 FIXME 56 57 ## Contributing Tests 58 The test manifests and entries are built automatically from [manifest.csv](manifest.csv) using [mk_manifest.rb](mk_manifest.rb), where each row defines a combination of RDF, JSON and Validation tests for the same _action_ and implicit files. Tests may be contributed via pull request to [https://github.com/json-ld/normalization](https://github.com/json-ld/normalization) with suitable changes to the [manifest.csv](manifest.csv) and necessary _action_ and _result_ files. Tests will also be considered if a contribution is sent to [public-credentials@w3.org](mailto:public-credentials@w3.org). 59 60 ## Distribution 61 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). 62 63 ## Disclaimer 64 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. 65 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. 66 67 %section.contents 68 %h2="Contents" 69 %ol 70 - manifests.each do |id, man| 71 %li 72 %a{href: "##{id}"}<=man['label'] 73 = "– #{man['entries'].count} entries" 74 - manifests.each do |id, man| 75 %section{id: id, property: "mf:entry", inlist: true, resource: id, typeof: man['type']} 76 %h2<= "#{man['label']} (#{man['entries'].count} entries)" 77 %p{property: "rdfs:comment"}<= man['comment'] 78 %p 79 - if id =~/urgna2012/ 80 Instructions specific to running URGNA2012 tests. 81 - elsif id =~ /urdna2016/ 82 Instructions specific to running URDNA2015 tests. 83 %dl.test-description 84 - man['entries'].each do |test| 85 %dt{id: test['id']} 86 %a.testlink{href: "##{test['id']}"} 87 = "#{test['id']}:" 88 %span{about: test['id'], property: "mf:name"}<~test['name'] 89 %dd{property: "mf:entry", inlist: true, resource: test['id'], typeof: test['type']} 90 %div{property: "rdfs:comment"} 91 :markdown 92 #{test['comment'].to_s.gsub(/(MUST|MUST NOT|SHOULD|SHOULD NOT|MAY)/, '<em class="rfc2119">\\1</em>')} 93 %dl.test-detail 94 %dt="type" 95 %dd<~test['type'] 96 %dt="approval" 97 %dd{property: "mf:approval", resource: test['approval']}<~test['approval'] 98 - if test['action'] 99 %dt="action" 100 %dd 101 %a{property: "mf:action", href: test['action']}<~test['action'] 102 - if test['result'] 103 %dt="result" 104 %dd 105 %a{property: "mf:result", href: test['result']}<~test['result'] 106 107 %footer 108 :markdown 109 [Copyright ©](http://www.w3.org/Consortium/Legal/ipr-notice#Copyright) 2015 [W3C](http://www.w3.org/)® ([MIT](http://www.csail.mit.edu/), [ERCIM](http://www.ercim.org/), [Keio](http://www.keio.ac.jp/), [Beihang](http://ev.buaa.edu.cn/)). W3C® [liability](http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer), [trademark](http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks) and [document use](http://www.w3.org/Consortium/Legal/copyright-documents) rules apply.